English Swedish
Auto Light Dark
Auto Light Dark
English Swedish
Breadcrumbs

The Conversational Intelligence API

The Conversational Intelligence API gives your systems access to conversations in Dstny Copilot. You can fetch conversation details, summaries, transcripts and insights, and you can receive a webhook when a conversation has been processed.

Access

An administrator creates an API token in the Dstny Copilot app.

  1. Sign in at conversation.dstny.ai and open Settings, then API.

  2. Create a token.

  3. Choose the scopes the token needs.

  4. Copy the token. It starts with mt_.

The recordings scope needs two things: the scope itself, and the recordings option switched on when you create the token.

The API itself costs nothing extra. The API specification is at conversation.dstny.ai/rest-api, and you need to be signed in to Dstny Copilot to open it.

Authenticate

Send the token as a bearer token to https://conversation.dstny.ai/api/v1. In some cases the request also needs an X-Account-ID header with your account ID.

GET https://conversation.dstny.ai/api/v1/rest/conversations?limit=25
Authorization: Bearer {token}
Accept: application/json

Scopes

Scope

Gives access to

conversations

Conversation details and summaries

transcripts

Transcript with speakers and time stamps

insights

Insights and key figures from a conversation

recordings

A signed link to the recording

users

Active users

teams

Teams and their members

departments

Departments

Endpoints

Method and path

Scope

Returns

GET /rest/account

none

Account information

GET /rest/users

users

Active users

GET /rest/teams

teams

Teams and members

GET /rest/departments

departments

Departments

GET /rest/conversations

conversations

A list of conversations

GET /rest/conversations/{id}

conversations

One conversation with summary and participants

GET /rest/conversations/{id}/transcript

transcripts

The transcript

GET /rest/conversations/{id}/insights

insights

Insights for the conversation

GET /rest/conversations/{id}/recording-url

recordings

A signed recording link

GET /rest/webhooks/deliveries

none

Webhook deliveries from the last 7 days

The conversation list accepts the filters date_from, date_to, user_id, department_id and medium.

Paging and limits

  • Lists return at most 25 items. When more exist, the response contains has_more and a next_cursor. Send the cursor in the next request as cursor.

  • The default limits are 60 requests per minute and 1000 unique conversations per day for each token. Both can be configured. If you reach a limit, spread your requests out or use a webhook instead of polling.

Webhooks

Dstny Copilot can send a webhook when a conversation is complete. An administrator registers it in the app.

  1. Sign in at conversation.dstny.ai and open Settings, then API.

  2. Scroll down to Webhook Subscriptions and select Add webhook.

  3. Enter a name and the webhook URL.

  4. Choose the departments the webhook should apply to (department filter).

  5. Choose the event scopes you want to receive.

  6. Save.

The event for a finished conversation is conversation.completed. Each delivery is signed so you can check that it comes from Dstny Copilot:

  • X-Webhook-Signature holds sha256= followed by an HMAC SHA256 of the raw request body, made with the webhook secret.

  • X-Webhook-Event holds the event name.

  • X-Webhook-Delivery-Id holds a unique ID for the delivery.

  • X-Webhook-Timestamp holds a Unix time stamp.

The webhook means your system does not need to poll. The event is sent when the transcript, insights and summary are ready. Calculate the signature from the unmodified body and compare it with the header using a constant-time comparison before you trust the request. Reject deliveries that do not match, and deliveries with an old time stamp.

Data and storage

  • Dstny stores the data in the EU.

  • Transcripts, summaries and insights are kept for 12 months by default. An administrator can change this in the platform settings.

  • Recordings are kept for 7 days or 12 months, depending on the setting.

  • The API only gets data out. You cannot import your own recordings from other apps. The API returns a signed link to a recording, not the file itself.

Good to know

  • Revoke a token in the same place you created it if it leaks, and create a new one.

  • For automation that runs without a signed in user, use this API with a token. The MCP server needs a signed in user.

Last updated: