Upload hold music (MP3/WAV, 5 MB, 10 minutes) with a rights attestation
POST
/v1/mobile/workspace/hold-music
const url = 'https://api.vocapable.com/v1/mobile/workspace/hold-music';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"name":"example","content_base64":"example","content_type":"audio/mpeg","rights_attested":true}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.vocapable.com/v1/mobile/workspace/hold-music \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "name": "example", "content_base64": "example", "content_type": "audio/mpeg", "rights_attested": true }'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
SharedPhoneHoldMusicUpload
Upload a hold track: MP3 or WAV, at most 5 MB and 10 minutes (E4-R4).
rights_attested must be true: the uploader confirms the company holds the rights
to play this recording to callers (public performance), which is recorded with them.
Responses
Section titled “Responses”Successful Response
Media typeapplication/json
SharedPhoneHoldMusicTrack
object
Examplegenerated
{ "id": "example", "name": "example", "duration_ms": 1, "size_bytes": 1, "rights_attested_at": "2026-04-15T12:00:00Z", "rights_attested_by_name": "example", "created_at": "2026-04-15T12:00:00Z"}Validation Error
Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object
Examplegenerated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example", "input": "example", "ctx": {} } ]}