Skip to main content
POST
Error

Authorizations

Authorization
string
header
required

A platform secret key (sk_…) sent as Authorization: Bearer <key>.

Scopes

agents:write

Headers

Idempotency-Key
string
required

A unique key for this change. To retry, send the same key with the same body bytes. Ionic keeps successful results for at least 24 hours and checks the key's current access before returning one.

Required string length: 1 - 255

Path Parameters

id
string
required

The agent's ID (agt_…).

Body

application/json
expected_version
integer
required

The agent's current version.

Required range: x >= 1
name
string

New display name.

Required string length: 1 - 120
description
string | null

New description. null clears it.

Maximum string length: 2000
metadata
object

Replaces the whole map. {} clears it.

avatar_hue
integer | null

New tile hue. null restores the color derived from the handle.

Required range: 0 <= x <= 359

Response

The updated agent.

An agent identity your Account owns.

id
string
required

Unique identifier for the agent.

Pattern: ^agt_[0-9A-Za-z]{14}$
object
enum<string>
required
Available options:
agent
owner_account_id
string
required

The Account that owns the agent.

Pattern: ^mer_[0-9A-Za-z]{14}$
name
string
required

The agent's display name.

Required string length: 1 - 120
handle
string
required

The agent's permanent handle, with a leading @, for example @acme-booking.

description
string
required

What the agent does. An empty string when not set.

Maximum string length: 2000
metadata
object
required

Up to 50 string entries for your own use. Keys are 1 to 40 bytes and values at most 500 bytes.

avatar_hue
integer | null
required

Hue of the agent's tile, from 0 to 359. null uses the color derived from the handle.

Required range: 0 <= x <= 359
status
enum<string>
required

active agents can act where a business allows them. suspended agents are paused by you or by Ionic. deactivated is permanent.

Available options:
active,
suspended,
deactivated
version
integer
required

Increases with each change to the identity. Send it as expected_version when you change the agent. Agent activity does not change it.

Required range: x >= 1
created_by
string
required

Who created the agent. The ID of the secret key (sk_…) for an agent created through the API, or the dashboard user (user_…). Never contains a key's secret.

Pattern: ^(user_.+|sk_[0-9A-Za-z]{24})$
created_at
integer<int64>
required

Unix timestamp when the agent was created.

updated_at
integer<int64>
required

Unix timestamp of the last change to the identity.

last_active_at
integer<int64> | null
required

Unix timestamp of the agent's most recent activity, or null before any.