Diska
Agents

Get an agent

Returns one of the organization's agents with the configuration you can edit (configuration): prompt, greeting, language, personality, objections, notes and knowledge bases.
GET https://api.diska.ai/v1/agents/{agent_id}

Scope: agents:read

It is the draft — what the next publish freezes. has_unpublished_changes says whether it differs from the published version.

Parameters

Path

NameTypeRequiredDescription
agent_idstringYesThe agent's ID.

Examples

curl "https://api.diska.ai/v1/agents/<agent_id>" \
  -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/agents/{agent_id}
Starts with dsk_. It stays in this browser tab only.
path
Enter an API key (dsk_…).

Response 200

FieldTypeDescription
idstringAgent ID.
namestringAgent name.
slugstringReadable agent identifier.
descriptionstring | nullDescription, or null.
statusstringdraft, active, inactive or archived. A published agent is active.
agent_typestringinbound, outbound, voice_widget or chat.
editing_modestringprompt or flow (Flow Builder). It does not change after creation. Default: prompt.
versionintegerAgent version number. Default: 1.
phone_numberstring | nullNumber assigned to the agent, or null.
public_channel_enabledbooleantrue when the agent's public link is on. Default: false.
created_atstringCreation date (ISO 8601).
updated_atstringLast change date (ISO 8601).
configurationobjectThe editable configuration (the draft).
configuration.promptstring | nullThe agent's instructions (prompt-mode agents only; null for Flow Builder agents).
configuration.greetingobjectHow the conversation opens.
configuration.greeting.modestringagent_first (the agent speaks first) or human_first (it waits for the person). Default: agent_first.
configuration.greeting.messagestring | nullThe greeting, or null.
configuration.languagestring | nullConversation language, for example pt-PT.
configuration.personalitystring | nullPersonality and tone.
configuration.objectionsstring | nullHow to handle objections.
configuration.knowledge_notesstring | nullKnowledge notes written on the agent.
configuration.knowledge_base_idsarrayAssigned knowledge bases.
has_unpublished_changesbooleantrue when the draft differs from the published version. Default: false.
{
  "id": "5c2e8a14-7d3b-4f9e-a1c6-0b8d2f4e6a93",
  "name": "Exemplo",
  "slug": "recepcao",
  "description": "CRM — produção",
  "status": "draft",
  "agent_type": "inbound",
  "editing_mode": "prompt",
  "version": 3,
  "phone_number": "+244900000000",
  "public_channel_enabled": false,
  "created_at": "2026-10-25T18:40:00Z",
  "updated_at": "2026-10-25T18:40:00Z",
  "configuration": {
    "prompt": "…",
    "greeting": {
      "mode": "agent_first",
      "message": "…"
    },
    "language": "…",
    "personality": "…",
    "objections": "…",
    "knowledge_notes": "…",
    "knowledge_base_ids": [
      "…"
    ]
  },
  "has_unpublished_changes": false
}

Errors

CodeWhen
404Agente não encontrado. — the agent does not exist in this organization.

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

Copyright © 2026