Upload voicemail greeting audio
upload_voicemail_greeting_audioSet the identity's voicemail greeting to a recording: MP3, or WAV as 16-bit PCM, at most 5 MB and 60 seconds. Send the file as upload_id (preferred: prepare_upload, then PUT the file from your shell so its bytes never pass through your context) or as content_base64 for a tiny file. The format is detected from the bytes. Replaces any text greeting and any earlier recording. Safe to repeat with the same file. Returns metadata only (size_bytes, sha256, duration) to compare with the local file; do not repeat base64 back to the user.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"identity_id": "<identity_id>"
},
"name": "upload_voicemail_greeting_audio"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | No | Optional original file name, kept as metadata. | |
| upload_id | No | A received upload from prepare_upload (purpose voicemail_greeting). Use this or content_base64, not both. | |
| identity_id | Yes | Identity id from list_identities. | |
| content_base64 | No | Base64 of the MP3 or WAV file bytes, for tiny files only; prefer upload_id. |