Skip to content

Get a call recording

GEThttps://api.voice-agent.gowajee.ai/api/call/:callId/record-url

Returns two fresh links to the call’s audio: one to play in a browser, and one to download as a file.

Name Description
callId The call ID.
curl "https://api.voice-agent.gowajee.ai/api/call/fc1c320d-d133-4d48-8118-5932d93149fd/record-url" \
-H "X-API-Key: $GOWAJEE_API_KEY"
# Download the file
curl -L -o recording.wav "<downloadUrl from the response>"

This endpoint returns its fields at the top level. There is no data wrapper.

{
"success": true,
"recordUrl": "https://storage.example.com/recordings/fc1c320d.wav?X-Amz-Expires=3600&X-Amz-Signature=...",
"downloadUrl": "https://storage.example.com/recordings/fc1c320d.wav?response-content-disposition=attachment...&X-Amz-Signature=..."
}
Field Type Description
success boolean true on 200.
recordUrl string A link to play the recording (opens in the browser).
downloadUrl string or null A link that downloads the file as recording-<callId>.<ext>.

The body is the usual error envelope.

Status code message Cause
400 INVALID_ID callId must be a valid UUID The ID in the path isn’t a UUID.
404 CALL_NOT_FOUND Call not found Wrong callId, or the call belongs to another organization.
404 RECORDING_NOT_FOUND No recording available for this call The call has no audio, for example NO_ANSWER, BUSY, or a call still in progress.
410 RECORDING_DELETED Recording deleted by data retention policy The recording was deleted by your data-retention policy, or because its campaign was deleted. expiredAt says when (UTC), or is null if unknown. It won’t come back.