Diska
Calls

Download the recording

Gives the call's recording.
GET https://api.diska.ai/v1/calls/{call_id}/recording

Scope: recordings:read

By default it answers 302 to a signed link that lasts 5 minutes (curl -L -o recording.webm … follows it and saves the audio). With ?format=json it returns the link as JSON. Ask for a new link whenever you need the audio instead of storing it. Every access is recorded in the audit log.

Parameters

Path

NameTypeRequiredDescription
call_idstringYesThe call's ID.

Query string

NameTypeRequiredDescription
formatstringNoredirect (the default) or json. Default: redirect.

Examples

curl "https://api.diska.ai/v1/calls/<call_id>/recording?format=json" \
  -H "Authorization: Bearer $DISKA_API_KEY"

Try it

Send the request from this page, with your key. The key stays on this page: it is not stored and is only sent to api.diska.ai. Use a test key with the fewest scopes you need.

GEThttps://api.diska.ai/v1/calls/{call_id}/recording?format=json
Starts with dsk_. It stays in this browser tab only.
path
query
Enter an API key (dsk_…).

Response 200

FieldTypeDescription
call_idstringThe call.
urlstringSigned link to download the audio.
expires_inintegerSeconds until the link expires.
content_typestring | nullAudio format, for example audio/webm.
size_bytesinteger | nullSize in bytes.
duration_secondsinteger | nullDuration in seconds, when known.
{
  "call_id": "8d0c6a3e-2f14-4b7a-9c55-1e3f0a6d2b81",
  "url": "https://o-seu-sistema.com/hooks/diska",
  "expires_in": 0,
  "content_type": "…",
  "size_bytes": 48213,
  "duration_seconds": 95
}

Errors

CodeWhen
404Esta chamada não tem gravação. (no recording), or the recording is no longer available (for example, it expired).
502The link could not be generated. Try again.

Errors common to every endpoint (401, 403, 422, 429 and 5xx) are in Errors.

Copyright © 2026