Diska

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 the Authorization: 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, PATCH and DELETE requests 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 apiKey variable.

Endpoints

Identity

MethodEndpointDescriptionScope
GET/v1/meGet the key and organization—

Agents

MethodEndpointDescriptionScope
GET/v1/agentsList agentsagents:read
GET/v1/agents/{agent_id}Get an agentagents:read
PATCH/v1/agents/{agent_id}Update an agentagents:write
POST/v1/agentsCreate an agentagents:write
POST/v1/agents/{agent_id}/publishPublish an agentagents:write

Calls

MethodEndpointDescriptionScope
GET/v1/callsList callscalls:read
GET/v1/calls/{call_id}Get a callcalls:read
GET/v1/calls/{call_id}/recordingDownload the recordingrecordings:read

Outbound calls

MethodEndpointDescriptionScope
POST/v1/outbound-callsMake an outbound callcalls:write
GET/v1/outbound-calls/{outbound_call_id}Get an outbound callcalls:read
POST/v1/outbound-calls/{outbound_call_id}/hangupHang up an outbound callcalls:write

Campaigns

MethodEndpointDescriptionScope
GET/v1/campaignsList campaignscampaigns:read
POST/v1/campaignsCreate a campaigncampaigns:write
GET/v1/campaigns/{campaign_id}Get a campaigncampaigns:read
POST/v1/campaigns/{campaign_id}/recipientsAdd recipientscampaigns:write
GET/v1/campaigns/{campaign_id}/recipientsList recipientscampaigns:read
POST/v1/campaigns/{campaign_id}/startStart a campaigncampaigns:write
POST/v1/campaigns/{campaign_id}/pausePause a campaigncampaigns:write
POST/v1/campaigns/{campaign_id}/resumeResume a campaigncampaigns:write
POST/v1/campaigns/{campaign_id}/cancelCancel a campaigncampaigns:write

Chat

MethodEndpointDescriptionScope
POST/v1/chatsCreate a chatchats:write
POST/v1/chats/{chat_id}/messagesSend a messagechats:write
GET/v1/chats/{chat_id}Get a chatchats:write
GET/v1/chatsList chatschats:write
POST/v1/chats/{chat_id}/endEnd a chatchats:write

Analytics

MethodEndpointDescriptionScope
GET/v1/analytics/overviewAnalytics overviewanalytics:read

Phone numbers

MethodEndpointDescriptionScope
GET/v1/phone-numbersList phone numbersphone-numbers:read

Knowledge

MethodEndpointDescriptionScope
GET/v1/knowledge-basesList knowledge basesknowledge:read
POST/v1/knowledge-basesCreate a knowledge baseknowledge:write
POST/v1/knowledge-bases/{knowledge_base_id}/documentsAdd a text documentknowledge:write
POST/v1/knowledge-bases/{knowledge_base_id}/documents/urlImport a web pageknowledge:write
POST/v1/knowledge-bases/{knowledge_base_id}/documents/pdfUpload a PDFknowledge:write

Webhooks

MethodEndpointDescriptionScope
GET/v1/webhook-endpointsList webhook endpointswebhooks:manage
POST/v1/webhook-endpointsCreate a webhook endpointwebhooks:manage
PATCH/v1/webhook-endpoints/{endpoint_id}Update a webhook endpointwebhooks:manage
DELETE/v1/webhook-endpoints/{endpoint_id}Delete a webhook endpointwebhooks:manage
POST/v1/webhook-endpoints/{endpoint_id}/testTest a webhook endpointwebhooks:manage
Copyright © 2026