Skip to main content
POST
Create an agent

Authorizations

Authorization
string
header
required

An API key minted in Command Center (Settings -> API Keys), sent as Authorization: Bearer 2501_ak_.... A Command Center session cookie is also accepted.

Body

application/json
org_id
string
required
specialty_id
string
required
name
string
Required string length: 1 - 100
main_engine
string | null

A model key, or null to inherit the default main engine of the organization, else of the tenant. Left out, it inherits.

Minimum string length: 1
secondary_engine
string | null

A model key, or null to inherit the default secondary engine of the organization, else of the tenant. Left out, it inherits.

Minimum string length: 1
host_id
string
central_id
string
central_ids
string[]

Assigned Centrals. Adds command environments alongside the Host; the first entry is the primary Central.

Maximum array length: 16
credential_config
object[]
plugin_ids
string[]

The plugins to assign; nothing else is assigned. A plugin the agent's organization cannot use, unknown, hidden from the caller or another organization's, returns 400 with details.plugin_ids.

required_plugin_ids
string[]

The plugins in plugin_ids that a task of the agent does not start without; the others are optional. Omitted: a plugin the agent keeps keeps its choice, and a new one is optional. An ID outside plugin_ids, or an HTTP API plugin, returns 400 with details.required_plugin_ids.

accessible_credential_ids
string[]

Response

The created agent

id
string
required
Example:

"agt_a9bf5a2b-..."

name
string
required
Example:

"linux-ops - web-01"

status
enum<string>
required
Available options:
idle,
running,
error,
archived
org_id
string
required
Example:

"org_460b541c-..."

tenant_id
string
required
Example:

"ten_115bea44-..."

host_id
string | null
required
Example:

"hst_8272f9b4-..."

specialty_id
string
required
Example:

"spc_9e274f8c-..."

specialty
object
required

null only on an archived agent whose specialty was deleted

main_engine
string
required

The model key the main engine uses: its own, else the inherited default

Example:

"qwen3-coder-480b"

main_engine_source
enum<string>
required

agent: the engine has a model of its own. organization or tenant: the engine inherits the default model of that level.

Available options:
agent,
organization,
tenant
secondary_engine
string
required

The model key the secondary engine uses: its own, else the inherited default

Example:

"qwen3-coder-30b"

secondary_engine_source
enum<string>
required

agent: the engine has a model of its own. organization or tenant: the engine inherits the default model of that level.

Available options:
agent,
organization,
tenant
credential_config
object[] | null
required
disabled_rule_ids
string[]
required
accessible_credential_ids
string[]
required
created_at
string<date-time>
required
Example:

"2026-08-26T10:00:26.380Z"

updated_at
string<date-time>
required
Example:

"2026-08-26T10:00:26.380Z"

plugin_count
integer

How many plugins are assigned to the agent, present on the agents list and search and on a host's agents

Required range: x >= 0
plugins
object[]

The plugins assigned to the agent, sorted by name, present on the agents list and search and on a host's agents