English Swedish
Auto Light Dark
Auto Light Dark
English Swedish
Breadcrumbs

The Call Recording API

The Call Recording API lets you list recorded calls, download the audio files and delete recordings. It is part of Call Recording Pro and covers the Call Recording APIs only. Use it to move recordings into an archive, a transcription tool or a compliance process.

Access

You create a token in the recording portal at recording.dstny.se. Only Super Users can do this, and only for Super Users and Restricted Users.

  1. Sign in at recording.dstny.se.

  2. Open Configuration, then Tokens.

  3. Select the plus sign to add a token.

  4. Pick the user, give the token a name and set an expiry date. Without one, a token lasts one month.

  5. Tick the permissions you need. Allow Recordings API gives access to recordings, and it is only available if the user has a recording licence.

  6. Add IP addresses if you want to restrict where the token can be used.

  7. Save and copy the token.

A new or changed token takes up to one hour to start working. Only the IP list, the permissions and the expiry date can be changed later. Deleting a token stops it at once.

Authenticate

The API uses basic authentication. The user name is the email address of the user the token belongs to. The password is the token, not the portal password.

Authorization: Basic {base64(email:token)}
Content-Type: application/json

All requests and responses use JSON. Every response has a Result object with an error code. 0x0000 means success.

Main endpoints

Requests go to https://recording.dstny.se/api/v4/{name}.

Endpoint

Purpose

POST GetRecordingsByDate

List recordings between two dates. Filter by extension, direction, number, minimum duration or flag

POST GetRecordingsByCLI

List recordings for one calling number in a date range

POST GetRecordingsByRecordID

List recordings from a range of record IDs

POST GetRecordingFile

Download one recording as an audio file, using its RecordID

POST DeleteCallRecording

Delete one recording, for example for a data protection request

Dates use the format yyyy-MM-dd HH:mm:ss. Directions are O for outgoing, I for incoming, Y for internal incoming and Z for internal outgoing.

Limits

  • Each response holds at most 1000 records. When you get 1000, request the next page with MinRecordId set from the last record you received.

  • Wait at least 5 seconds between calls with the same token. Faster calls return error 0x1009, too many requests.

  • Use HTTPS. Add IP whitelisting if the integration runs from fixed addresses.

Common errors

Code

Meaning

0x1006

Authentication failed. Check the email and the token

0x1009

Too many requests. Slow down

0x2008

Invalid token. It may have expired or been deleted

0x2027

Invalid record ID

0x3006

The recording is not available or was already deleted

Deleted recordings appear as masked records in the portal under Configuration, Compliance, Delete Recordings, where you can also see the audit log.

Deleting a recording cannot be undone. Check the record ID before you send the call.

API reference

The full reference with all fields and examples is in the Call Recording API specification.

To try the calls in Postman, import the Call Recording API Postman collection with File, Import. Fill in the variables email and token.

Last updated: