Skip to navigation

Get recordings

View as Markdown

Returns the call recording as a WAV file (audio/wav), not JSON. Returns 404 if the interaction has no recording.

curl "https://apps.sarvam.ai/api/analytics/v1/$ORG_ID/$WORKSPACE_ID/$APP_ID/recordings/$INTERACTION_ID" \
-H "X-API-Key: $SARVAM_API_KEY" \
-o call.wav

Path parameters

org_idstringRequired
Organization ID.
workspace_idstringRequired
Workspace ID.
app_idstringRequired

Agent ID. Copy it from the agent’s ··· menu in the dashboard (Copy agent ID).

interaction_idstringRequiredformat: "^[0-9]{8}/.+$"

From List interactions, in the form <YYYYMMDD>/<id>, e.g. 20261007/9f1c2a7e-4b3d-4e8a-a1f0-6c2d9b7e5a14. Send the slash as is or as %2F.

Headers

X-API-KeystringRequired
Your workspace API key.

Response headers

Content-DispositionstringOptional

Always inline.

Accept-RangesstringOptional

Always bytes.

Response

The recording as a WAV audio stream.

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
422
Unprocessable Entity Error
429
Too Many Requests Error
500
Internal Server Error
503
Service Unavailable Error