curl -X POST https://api.telzino.com/v1/agents/123e4567-e89b-12d3-a456-426614174000/moh \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-F "[email protected]"
import requests
agent_id = '123e4567-e89b-12d3-a456-426614174000'
with open('hold-music.mp3', 'rb') as f:
res = requests.post(
f'https://api.telzino.com/v1/agents/{agent_id}/moh',
headers={'Authorization': 'Bearer YOUR_ACCESS_TOKEN'},
files={'file': ('hold-music.mp3', f, 'audio/mpeg')},
)
print(res.json())
{ "data": { "url": "https://telimatic-audio-samples-use1.s3.us-east-1.amazonaws.com/moh/123e4567-e89b-12d3-a456-426614174000/hold-music.mp3" } }
{ "error": "File must be under 4 MB" }
Agents
Upload Hold Music
Upload an MP3 or WAV file played to callers on hold during warm transfer
POST
/
v1
/
agents
/
{agentId}
/
moh
curl -X POST https://api.telzino.com/v1/agents/123e4567-e89b-12d3-a456-426614174000/moh \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-F "[email protected]"
import requests
agent_id = '123e4567-e89b-12d3-a456-426614174000'
with open('hold-music.mp3', 'rb') as f:
res = requests.post(
f'https://api.telzino.com/v1/agents/{agent_id}/moh',
headers={'Authorization': 'Bearer YOUR_ACCESS_TOKEN'},
files={'file': ('hold-music.mp3', f, 'audio/mpeg')},
)
print(res.json())
{ "data": { "url": "https://telimatic-audio-samples-use1.s3.us-east-1.amazonaws.com/moh/123e4567-e89b-12d3-a456-426614174000/hold-music.mp3" } }
{ "error": "File must be under 4 MB" }
Path Parameters
string
required
The unique identifier of the agent (UUID format)
Request Body
Send the file asmultipart/form-data.
file
required
MP3 or WAV audio file, maximum 4 MB. The file content is validated — a mislabeled file is rejected.
warm_transfer_moh_url. Uploading again replaces the previous file.
curl -X POST https://api.telzino.com/v1/agents/123e4567-e89b-12d3-a456-426614174000/moh \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-F "[email protected]"
import requests
agent_id = '123e4567-e89b-12d3-a456-426614174000'
with open('hold-music.mp3', 'rb') as f:
res = requests.post(
f'https://api.telzino.com/v1/agents/{agent_id}/moh',
headers={'Authorization': 'Bearer YOUR_ACCESS_TOKEN'},
files={'file': ('hold-music.mp3', f, 'audio/mpeg')},
)
print(res.json())
{ "data": { "url": "https://telimatic-audio-samples-use1.s3.us-east-1.amazonaws.com/moh/123e4567-e89b-12d3-a456-426614174000/hold-music.mp3" } }
{ "error": "File must be under 4 MB" }
