POST /create-asset
Changed onUpload an image or audio asset. Audio is normalized to headerless mono PCM16 at 24 kHz and can be referenced by custom_on_hold_music_asset_id on warm and agentic-warm transfer options. Accepted audio formats are MP3, WAV, WebM, OGG, M4A, AAC, and FLAC. The maximum upload size is 10 MB and audio duration is limited to 210 seconds.
Request
- Base URLhttps://api.retellai.com
- AuthHTTP bearer
Request body multipart/form-data
Response
Successfully created asset.
Example response
{
"asset_id": "asset_abc123def456",
"file_name": "screenshot.png",
"content_type": "image/png",
"file_size": 204800,
"url": "https://cdn.example.com/asset/org_123/asset_abc123def456/screenshot.png",
"created_timestamp": 1710000000000
}Changes
- info
endpoint added
- info