Diska
Chat

List chats

Chats opened through the API, newest first, without their messages.
GET https://api.diska.ai/v1/chats

Scope: chats:write

Parameters

Query string

NameTypeRequiredDescription
agent_idstring | nullNoOnly chats with this agent. Up to 64 characters.
statusstring | nullNoactive or ended.
limitintegerNoHow many per page. Between 1 and 100. Default: 50.
offsetintegerNoHow many to skip. Minimum 0. Default: 0.

Examples

curl "https://api.diska.ai/v1/chats" \
  -H "Authorization: Bearer $DISKA_API_KEY"

Try it

Send the request from this page, with your key. The key stays on this page: it is not stored and is only sent to api.diska.ai. Use a test key with the fewest scopes you need.

GEThttps://api.diska.ai/v1/chats
Starts with dsk_. It stays in this browser tab only.
query
query
query
query
Enter an API key (dsk_…).

Response 200

FieldTypeDescription
itemsarrayThe chats.
items[].idstringChat ID (the same as GET /v1/calls/{call_id}).
items[].agent_idstringThe agent.
items[].statusstringactive or ended.
items[].contactstring | nullWho is chatting, as you stated it.
items[].metadataobjectYour metadata, returned as sent.
items[].created_atstringCreation date (ISO 8601).
items[].ended_atstring | nullWhen it ended.
items[].end_reasonstring | nullended_by_api, agent_ended or inactivity.
totalintegerTotal with these filters.
limitintegerPage size.
offsetintegerThis page's offset.
{
  "items": [
    {
      "id": "5c2e8a14-7d3b-4f9e-a1c6-0b8d2f4e6a93",
      "agent_id": "3f1c2a7e-5b9d-4c1e-8f3a-2d6b7e9c1a40",
      "status": "active",
      "contact": "+244900000000",
      "metadata": {},
      "created_at": "2026-10-25T18:40:00Z",
      "ended_at": "2026-10-25T18:41:35Z",
      "end_reason": "caller_hangup"
    }
  ],
  "total": 1,
  "limit": 50,
  "offset": 0
}

Errors

CodeWhen
403API chat is not switched on for the organization.

Errors common to every endpoint (401, 403, 422, 429 and 5xx) are in Errors.

Copyright © 2026