API reference
Every DISKA API endpoint on its own page: parameters, schemas, examples in four languages and a form to try it.
Every DISKA API endpoint has a page with its parameters, body and response schemas, examples in cURL, Python, JavaScript and PHP, and a Try it form that sends the request from the page. This reference is generated from the OpenAPI specification.
Before you start
- Base URL:
https://api.diska.ai/v1. Every request carries the key in theAuthorization: Bearer dsk_…header — see Getting started. - Try it uses your key on this page only: it does not store it and only sends it to
api.diska.ai.POST,PATCHandDELETErequests change the organization's real data. Use a test key with the fewest scopes you need and revoke it when you are done. - Prefer Postman? Download the collection (Portuguese or English), import it under Import and fill in the
apiKeyvariable.
Endpoints
Identity
| Method | Endpoint | Description | Scope |
|---|---|---|---|
GET | /v1/me | Get the key and organization | — |
Agents
| Method | Endpoint | Description | Scope |
|---|---|---|---|
GET | /v1/agents | List agents | agents:read |
GET | /v1/agents/{agent_id} | Get an agent | agents:read |
PATCH | /v1/agents/{agent_id} | Update an agent | agents:write |
POST | /v1/agents | Create an agent | agents:write |
POST | /v1/agents/{agent_id}/publish | Publish an agent | agents:write |
Calls
| Method | Endpoint | Description | Scope |
|---|---|---|---|
GET | /v1/calls | List calls | calls:read |
GET | /v1/calls/{call_id} | Get a call | calls:read |
GET | /v1/calls/{call_id}/recording | Download the recording | recordings:read |
Outbound calls
| Method | Endpoint | Description | Scope |
|---|---|---|---|
POST | /v1/outbound-calls | Make an outbound call | calls:write |
GET | /v1/outbound-calls/{outbound_call_id} | Get an outbound call | calls:read |
POST | /v1/outbound-calls/{outbound_call_id}/hangup | Hang up an outbound call | calls:write |
Campaigns
| Method | Endpoint | Description | Scope |
|---|---|---|---|
GET | /v1/campaigns | List campaigns | campaigns:read |
POST | /v1/campaigns | Create a campaign | campaigns:write |
GET | /v1/campaigns/{campaign_id} | Get a campaign | campaigns:read |
POST | /v1/campaigns/{campaign_id}/recipients | Add recipients | campaigns:write |
GET | /v1/campaigns/{campaign_id}/recipients | List recipients | campaigns:read |
POST | /v1/campaigns/{campaign_id}/start | Start a campaign | campaigns:write |
POST | /v1/campaigns/{campaign_id}/pause | Pause a campaign | campaigns:write |
POST | /v1/campaigns/{campaign_id}/resume | Resume a campaign | campaigns:write |
POST | /v1/campaigns/{campaign_id}/cancel | Cancel a campaign | campaigns:write |
Chat
| Method | Endpoint | Description | Scope |
|---|---|---|---|
POST | /v1/chats | Create a chat | chats:write |
POST | /v1/chats/{chat_id}/messages | Send a message | chats:write |
GET | /v1/chats/{chat_id} | Get a chat | chats:write |
GET | /v1/chats | List chats | chats:write |
POST | /v1/chats/{chat_id}/end | End a chat | chats:write |
Analytics
| Method | Endpoint | Description | Scope |
|---|---|---|---|
GET | /v1/analytics/overview | Analytics overview | analytics:read |
Phone numbers
| Method | Endpoint | Description | Scope |
|---|---|---|---|
GET | /v1/phone-numbers | List phone numbers | phone-numbers:read |
Knowledge
| Method | Endpoint | Description | Scope |
|---|---|---|---|
GET | /v1/knowledge-bases | List knowledge bases | knowledge:read |
POST | /v1/knowledge-bases | Create a knowledge base | knowledge:write |
POST | /v1/knowledge-bases/{knowledge_base_id}/documents | Add a text document | knowledge:write |
POST | /v1/knowledge-bases/{knowledge_base_id}/documents/url | Import a web page | knowledge:write |
POST | /v1/knowledge-bases/{knowledge_base_id}/documents/pdf | Upload a PDF | knowledge:write |
Webhooks
| Method | Endpoint | Description | Scope |
|---|---|---|---|
GET | /v1/webhook-endpoints | List webhook endpoints | webhooks:manage |
POST | /v1/webhook-endpoints | Create a webhook endpoint | webhooks:manage |
PATCH | /v1/webhook-endpoints/{endpoint_id} | Update a webhook endpoint | webhooks:manage |
DELETE | /v1/webhook-endpoints/{endpoint_id} | Delete a webhook endpoint | webhooks:manage |
POST | /v1/webhook-endpoints/{endpoint_id}/test | Test a webhook endpoint | webhooks:manage |

