Skip to content

Agents

Agents are the top-level entity in Chronary. Each agent can own multiple calendars and has its own availability.

The API normalizes a name before it stores it: invisible format characters (zero-width spaces, word joiners, bidi controls, soft hyphens) are removed, while zero-width joiners and non-joiners are kept because emoji sequences, Persian and Indic scripts need them, then Unicode NFC is applied, every run of whitespace (spaces, tabs, newlines, non-breaking spaces) is replaced by one space, and the ends are trimmed. " Front\u00A0office\n" is stored as "Front office". The length limit applies to the normalized name. A name with no visible character (whitespace only, only zero-width joiners, or only blank characters such as the braille blank), or one that contains a control character, returns 400 validation_error. Names stored before this rule are returned as they were stored.

Registers your agent with Chronary, creating a Chronary identity it can use to own calendars, events, and webhooks. The agent itself already exists in your system — this gives it a Chronary record.

POST /v1/agents
FieldTypeRequiredDescription
namestringYes1–255 characters, after normalizing (see Names)
typestringYesai, human, or resource
descriptionstringNoFree-text description (max 5,000 characters)
metadataobjectNoKey-value pairs, max 16KB JSON
Terminal window
curl -X POST https://api.chronary.ai/v1/agents \
-H "Authorization: Bearer chr_sk_your_key_here" \
-H "Content-Type: application/json" \
-d '{
"name": "Sales Agent - Acme Corp",
"type": "ai",
"description": "Handles meeting scheduling for the sales team",
"metadata": { "team": "sales" }
}'
{
"id": "agt_a1b2c3d4",
"orgId": "org_abc",
"name": "Sales Agent - Acme Corp",
"type": "ai",
"description": "Handles meeting scheduling for the sales team",
"status": "active",
"metadata": { "team": "sales" },
"createdAt": "2026-04-04T12:00:00Z",
"updatedAt": "2026-04-04T12:00:00Z"
}

Triggers an agent.created webhook.

StatusTypeCause
429quota_exceededAgent limit reached on your plan

GET /v1/agents

Agents are listed newest first by default. Page with limit and offset, or pass the next_cursor from the previous response as cursor; a cursor stays stable while agents are added. total always counts every matching agent.

ParameterTypeDefaultDescription
typestring—Filter by ai, human, or resource
statusstring—Filter by active, paused, or decommissioned
qstring—Search: a case-insensitive part of the name, or an exact agent ID (1–100 characters). Normalized like a stored name before matching, so a double space, a non-breaking space or an invisible character in q still finds the name
sortstringcreated_atcreated_at (newest first) or name (A to Z)
include_decommissionedbooleanfalseInclude decommissioned agents. Ignored when status is set
include_countsbooleanfalseAdd calendar_count and scoped_key_count to each agent
cursorstring—The next_cursor from the previous page. Cannot be combined with a non-zero offset
limitinteger501–200
offsetinteger0Pagination offset, at most 10,000
Terminal window
curl "https://api.chronary.ai/v1/agents?type=ai&status=active&limit=10" \
-H "Authorization: Bearer chr_sk_your_key_here"
{
"data": [
{
"id": "agt_a1b2c3d4",
"name": "Sales Agent - Acme Corp",
"type": "ai",
"status": "active",
...
}
],
"total": 3,
"limit": 10,
"offset": 0,
"next_cursor": null
}

GET /v1/agents/:id
Terminal window
curl https://api.chronary.ai/v1/agents/agt_a1b2c3d4 \
-H "Authorization: Bearer chr_sk_your_key_here"
StatusTypeCause
404not_foundAgent not found

PATCH /v1/agents/:id
FieldTypeDescription
namestring1–255 characters, after normalizing (see Names)
descriptionstring | nullMax 5,000 characters. Set to null to clear
metadataobjectReplaces existing metadata
statusstringactive or paused

At least one field must be provided.

Setting status on a decommissioned agent restores it and makes its calendars writable again. A restored agent, its calendars and their recurring series count toward your plan again, so the restore is refused with 429 quota_exceeded when it would put you over your plan’s agent limit, its calendars over your calendar limit, or their recurring series over your recurring series limit. The error’s metric says which limit. Make room (decommission another agent, or delete calendars you no longer need) or upgrade, then try again.

Terminal window
curl -X PATCH https://api.chronary.ai/v1/agents/agt_a1b2c3d4 \
-H "Authorization: Bearer chr_sk_your_key_here" \
-H "Content-Type: application/json" \
-d '{ "status": "paused" }'

Triggers an agent.updated webhook.

StatusTypeCause
404not_foundAgent not found
429quota_exceededRestoring a decommissioned agent would go over your plan’s agent, calendar or recurring series limit (metric says which)

DELETE /v1/agents/:id

Sets the agent status to decommissioned and revokes its Agent keys. Returns 204 No Content.

The agent’s calendars and events are kept, but its calendars and their recurring series no longer count toward your plan’s calendar and recurring series limits. You can’t add calendars to a decommissioned agent. To bring it back, update its status to active or paused; that is refused if it would put you over your plan’s limits.

While the agent stays decommissioned, its calendars are read-only:

  • Reads keep working: the calendar, its events, availability and availability rules, and the iCal feed.
  • Writes return 409 agent_inactive: creating, updating or deleting events (including holds and recurring-series occurrences), setting or clearing availability rules, updating the calendar, creating a booking page or a scheduling proposal on it (responding to or resolving a proposal on it fails the same way), creating, updating, syncing or resuming an iCal subscription, and creating a connection link.
  • Its booking pages are unavailable: the hosted page answers 404 like an unknown link until the agent is restored. You can still update, rotate or delete an existing page, but an update (even active: true) doesn’t bring the page back.
  • Its iCal subscriptions stop polling. You can still pause or delete them.
  • You can still delete the calendar.

Restoring the agent makes its calendars writable again.

Terminal window
curl -X DELETE https://api.chronary.ai/v1/agents/agt_a1b2c3d4 \
-H "Authorization: Bearer chr_sk_your_key_here"
StatusTypeCause
404not_foundAgent not found