Skip to content
Kandaro
Book a demo

Send and read data

Decoy API

Read decoy incidents and events from your own tools, scripts or AI assistant. The API is read-only and covers Deception only: it has no endpoints for SOC cases, alerts or machines.

Before you start

  • Deception switched on for your organisation, on a trial or a paid plan.
  • The admin role, to create a key.

API keys

An admin creates keys in Settings → API & export. Each key has a name, one or more scopes and an optional end date, and an organisation can have up to 20 working keys. The key is shown once; Kandaro stores only a hash of it. Revoking a key takes effect at once, and each key’s first use, its first use each day and use from a new address are recorded in your audit log.

  • incidents:read for the incident endpoints.
  • events:read for the event endpoints.

Send the key as a bearer token. A key only ever sees the data of the organisation it was created in.

shell
curl https://api.kandaro.com/v1/incidents?status=open \
  -H "Authorization: Bearer kndk_0123abcd_…"

Endpoints

The base URL is https://api.kandaro.com.

  • GET /v1/incidents: incidents, most recent activity first. Query: status (open, closed or all, default all), limit (1 to 100, default 50), cursor.
  • GET /v1/incidents/{id}: one incident with up to 200 of its events, oldest first: the first 50 and the latest 150. When some are left out, bait use and the most severe events from between them take the place of some of the latest ones, so a flood of later events can't hide how the attack started. eventsTotal says how many it has and eventsOmitted how many are left out.
  • GET /v1/events: single decoy events, newest first. Query: sensorId, severity, type, sourceIp, from, to, limit, cursor.
  • GET /v1/events/{id}: one event.

Lists return data and nextCursor. Pass nextCursor back as cursor to get the next page; it is null on the last page. To poll for new incidents, request the first page and stop when you reach an incident you have already seen.

GET /v1/incidents
{
  "data": [
    {
      "id": "6f1c2e0a-…",
      "title": "Login attempts on decoy NAS from finance workstation",
      "severity": "high",
      "status": "open",
      "narrative": "A machine on the finance VLAN tried to log into…",
      "recommendedAction": "Isolate 10.20.4.77 and reset the backup-admin password.",
      "sensor": { "id": "…", "name": "nas-backup-01" },
      "sourceIp": "10.20.4.77",
      "eventCount": 7,
      "eventTypes": ["login_attempt"],
      "highConfidence": false,
      "firstSeenAt": "2026-10-08T02:14:07.000Z",
      "lastSeenAt": "2026-10-08T02:21:40.000Z",
      "resolvedAt": null,
      "url": "https://app.kandaro.com/incidents/6f1c2e0a-…",
      "techniques": [
        { "id": "T1110", "name": "Brute Force", "tactics": ["Credential Access"] }
      ]
    }
  ],
  "nextCursor": null
}
event
{
  "id": "…",
  "time": "2026-10-08T02:14:07.000Z",
  "sensor": { "id": "…", "name": "nas-backup-01" },
  "sourceIp": "10.20.4.77",
  "sourcePort": 51234,
  "service": "ssh",
  "port": 22,
  "type": "login_attempt",
  "action": "password",
  "severity": "medium",
  "confidence": "normal",
  "tags": [],
  "techniques": [
    { "id": "T1110", "name": "Brute Force", "tactics": ["Credential Access"] }
  ],
  "summary": "Someone tried to log in to ssh as \"backup-admin\"…",
  "attackerInput": {
    "username": "backup-admin",
    "password": { "masked": "••••••••", "length": 8, "fingerprint": "…" }
  }
}

attackerInput is what the attacker sent to the decoy, and title, narrative, recommendedAction and summary can quote it: follow the rule for text an attacker wrote.

Techniques

techniques lists MITRE ATT&CK techniques from a fixed table. In an incident list they come from the event types; on a single incident they also include techniques from the payload tags of its events.

Limits and errors

  • 120 requests per minute per key, on top of a limit per IP address. Above that you get 429 with a Retry-After header.
  • 401: the key is missing, wrong, revoked or expired. 403: the key lacks the scope, or Deception isn’t active for the organisation. 404: no such record in your organisation.
  • New fields may be added at any time; ignore fields you don’t recognise.

Download everything

An admin can download all incidents or all events at once with Download incidents and Download events in Settings → API & export: one record per line (newline-delimited JSON), in the same shapes as the API. Each download is recorded in your audit log.

Related

To have incidents pushed to you, use a SIEM connector or a signed webhook. To give your AI assistant direct access, use the MCP server.