Skip to main content
An agent (agt_…) is the identity of an AI agent your platform runs. Your server creates and manages it with a platform secret key. The identity holds no access to any business: a business allows the agent through an agent grant request, and the agent’s keys are issued in the Ionic dashboard. For the full flow, see Manage your platform’s agents.

Attributes

string
Unique identifier for the agent (agt_…).
string
The Account that owns the agent.
string
The agent’s display name, up to 120 characters.
string
The agent’s permanent handle, with a leading @. It starts with your Account’s handle prefix.
string
What the agent does, up to 2,000 characters. An empty string when not set.
object
Up to 50 string entries for your own use.
integer | null
Hue of the agent’s tile, from 0 to 359. null uses the color derived from the handle.
string
active, suspended, or deactivated. See Statuses.
integer
Increases with each change to the identity. Send it as expected_version when you update, suspend, resume, or deactivate the agent.
string
The ID of the secret key (sk_…) that created the agent, or the dashboard user (user_…). It never contains a key’s secret.
integer | null
Unix timestamp of the agent’s most recent activity, or null before any.

Endpoints

Statuses

Rules

  • Use a platform secret key that holds agents:read, agents:write, or both, and send requests without Ionic-Account. Write access does not include read access.
  • Your Platform Program must allow delegated API access in the key’s mode and include the permission.
  • An agent identity belongs to both modes. A test key and a live key update, suspend, and deactivate the same agent.
  • An owner or admin claims your Account’s handle prefix once, permanently, under Agents in the dashboard. Creating an agent before then returns 409 AGENT_HANDLE_PREFIX_REQUIRED.
  • Send the agent’s current version as expected_version with every change. A stale version returns 409 AGENT_VERSION_CONFLICT: retrieve the agent and send a new request with a new Idempotency-Key.
  • Send an Idempotency-Key with every change. To retry, send the same key with the same body bytes. For at least 24 hours, a retry returns the original result without repeating the change. See Idempotency.
  • An agent connected through MCP cannot be changed with this API. Those changes return 403 AGENT_MCP_MANAGED.