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.
-
Sign in at conversation.dstny.ai and open Settings, then API.
-
Create a token.
-
Choose the scopes the token needs.
-
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 |
|---|---|---|
|
|
none |
Account information |
|
|
users |
Active users |
|
|
teams |
Teams and members |
|
|
departments |
Departments |
|
|
conversations |
A list of conversations |
|
|
conversations |
One conversation with summary and participants |
|
|
transcripts |
The transcript |
|
|
insights |
Insights for the conversation |
|
|
recordings |
A signed recording link |
|
|
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_moreand anext_cursor. Send the cursor in the next request ascursor. -
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.
-
Sign in at conversation.dstny.ai and open Settings, then API.
-
Scroll down to Webhook Subscriptions and select Add webhook.
-
Enter a name and the webhook URL.
-
Choose the departments the webhook should apply to (department filter).
-
Choose the event scopes you want to receive.
-
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-Signatureholdssha256=followed by an HMAC SHA256 of the raw request body, made with the webhook secret. -
X-Webhook-Eventholds the event name. -
X-Webhook-Delivery-Idholds a unique ID for the delivery. -
X-Webhook-Timestampholds 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.