Diska
Agents

Create an agent

Creates an agent, blank or from a Diska template (template_id).
POST https://api.diska.ai/v1/agents

Scope: agents:write

The agent starts as a draft (status: draft): publish it to make it available on your channels. The DISKA API does not list templates.

Request body

application/json

FieldTypeRequiredDescription
namestring | nullNoAgent name. Default: Novo agente, or the template's name. Up to 120 characters.
agent_typestring | nullNoAgent type. Default: inbound, or the template's type. One of: inbound, outbound, voice_widget, chat.
editing_modestring | nullNoDefault: prompt for a blank agent, flow from a template.
template_idstring | nullNoDiska agent template. Without it, the agent is created blank. Up to 64 characters.
{
  "name": "Recepção",
  "agent_type": "inbound",
  "editing_mode": "prompt"
}

Examples

curl -X POST "https://api.diska.ai/v1/agents" \
  -H "Authorization: Bearer $DISKA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"Recepção","agent_type":"inbound","editing_mode":"prompt"}'

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.

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

Response 201

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).
{
  "id": "3f1c2a7e-5b9d-4c1e-8f3a-2d6b7e9c1a40",
  "name": "Recepção",
  "slug": "recepcao",
  "description": "Atende as chamadas da recepção.",
  "status": "active",
  "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"
}

Errors

CodeWhen
404Modelo não encontrado. — the template_id does not exist.
422The template could not be installed.

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

Copyright © 2026