Upload Recording
If you cannot provide a publicly accessible URL for your recording (or the recording becomes available only after the call), first send the call with Send Call, then upload the audio file with this endpoint.
Path Parameters
Headers
Request Body
The body is the raw (binary) content of the audio file; it is not JSON or form data.
Example cURL
curl --request POST 'https://public-api.thinkvoice.ai/api/v1/webhooks/calls/20260410-143512-00042/audio' \
--header 'X-Api-Key: <API_KEY>' \
--header 'X-Api-Secret: <API_SECRET>' \
--header 'Content-Type: audio/wav' \
--data-binary '@recording.wav'Responses
| Message | HTTP | Description |
|---|---|---|
Audio body is empty. | 400 | The body is empty. |
Unregistered Tenant. | 401 | X-Api-Key / X-Api-Secret is missing, invalid or disabled. |
Call not found. | 404 | No call matches the callId. First make sure the Send Call request completed successfully. |
Unsupported media type: ... | 415 | Content-Type is not one of the allowed types. The allowed types are listed in the message. |
Failed to process audio file. ... | 500 | Unexpected error. Check the headers and body, then try again. |
If you send application/octet-stream as the Content-Type, the file format is detected automatically from its content.
If the upload request is made before the call record exists, 404 is returned. Upload only after receiving a successful response from the Send Call request.
Last updated: