Skip to main content
GET
Stream Conversation Audio
What it does: Retrieve the audio recording of a completed conversation as a binary stream. The response body contains the raw audio data (audio/mpeg) which can be streamed directly to an audio player, downloaded as an MP3, or processed programmatically for transcription or archiving.

Required Permission

conversations

Path Parameters

Minimum working example

Download the recording as an MP3 file:

Additional examples

Stream and play (JavaScript)

Stream and save (Python)

Response

Success (200)

Returns the audio recording as a binary stream with Content-Type: audio/mpeg. The response body is the raw MP3 data. Use GET (not HEAD) when checking availability — some deployments return 405 for HEAD requests.

Errors

403 Forbidden — Insufficient permissions
404 Not Found — Audio recording not available
The path in the message is server-specific. A 404 means no recording exists for this conversation.

Edge cases

Audio recordings may contain sensitive personal information. Ensure proper access controls are in place and comply with applicable data privacy regulations before storing or sharing recordings.
Save the requestId from every response. You will need it if you contact Gnani support to trace a specific request.

Authorizations

x-api-key
string
header
required

API key with 'conversations' permission

Path Parameters

conversationId
string
required

Unique identifier of the conversation.

Response

Audio recording returned as a binary stream

The response is of type file.