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.
Register an agent
Section titled “Register an agent”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/agentsRequest body
Section titled “Request body”| Field | Type | Required | Description |
|---|---|---|---|
name | string | Yes | 1–255 characters, after normalizing (see Names) |
type | string | Yes | ai, human, or resource |
description | string | No | Free-text description (max 5,000 characters) |
metadata | object | No | Key-value pairs, max 16KB JSON |
Example
Section titled “Example”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" } }'from chronary import Chronary
client = Chronary()
agent = client.agents.create( name="Sales Agent - Acme Corp", type="ai", description="Handles meeting scheduling for the sales team", metadata={"team": "sales"},)Response 201 Created
Section titled “Response 201 Created”{ "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.
Errors
Section titled “Errors”| Status | Type | Cause |
|---|---|---|
429 | quota_exceeded | Agent limit reached on your plan |
List agents
Section titled “List agents”GET /v1/agentsAgents 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.
Query parameters
Section titled “Query parameters”| Parameter | Type | Default | Description |
|---|---|---|---|
type | string | — | Filter by ai, human, or resource |
status | string | — | Filter by active, paused, or decommissioned |
q | string | — | 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 |
sort | string | created_at | created_at (newest first) or name (A to Z) |
include_decommissioned | boolean | false | Include decommissioned agents. Ignored when status is set |
include_counts | boolean | false | Add calendar_count and scoped_key_count to each agent |
cursor | string | — | The next_cursor from the previous page. Cannot be combined with a non-zero offset |
limit | integer | 50 | 1–200 |
offset | integer | 0 | Pagination offset, at most 10,000 |
Example
Section titled “Example”curl "https://api.chronary.ai/v1/agents?type=ai&status=active&limit=10" \ -H "Authorization: Bearer chr_sk_your_key_here"for agent in client.agents.list(type="ai", status="active", limit=10): print(agent.name)Response 200 OK
Section titled “Response 200 OK”{ "data": [ { "id": "agt_a1b2c3d4", "name": "Sales Agent - Acme Corp", "type": "ai", "status": "active", ... } ], "total": 3, "limit": 10, "offset": 0, "next_cursor": null}Get an agent
Section titled “Get an agent”GET /v1/agents/:idExample
Section titled “Example”curl https://api.chronary.ai/v1/agents/agt_a1b2c3d4 \ -H "Authorization: Bearer chr_sk_your_key_here"agent = client.agents.get("agt_a1b2c3d4")Errors
Section titled “Errors”| Status | Type | Cause |
|---|---|---|
404 | not_found | Agent not found |
Update an agent
Section titled “Update an agent”PATCH /v1/agents/:idRequest body
Section titled “Request body”| Field | Type | Description |
|---|---|---|
name | string | 1–255 characters, after normalizing (see Names) |
description | string | null | Max 5,000 characters. Set to null to clear |
metadata | object | Replaces existing metadata |
status | string | active 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.
Example
Section titled “Example”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" }'updated = client.agents.update("agt_a1b2c3d4", status="paused")Triggers an agent.updated webhook.
Errors
Section titled “Errors”| Status | Type | Cause |
|---|---|---|
404 | not_found | Agent not found |
429 | quota_exceeded | Restoring a decommissioned agent would go over your plan’s agent, calendar or recurring series limit (metric says which) |
Delete (decommission) an agent
Section titled “Delete (decommission) an agent”DELETE /v1/agents/:idSets 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
404like an unknown link until the agent is restored. You can still update, rotate or delete an existing page, but an update (evenactive: 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.
Example
Section titled “Example”curl -X DELETE https://api.chronary.ai/v1/agents/agt_a1b2c3d4 \ -H "Authorization: Bearer chr_sk_your_key_here"client.agents.delete("agt_a1b2c3d4")Errors
Section titled “Errors”| Status | Type | Cause |
|---|---|---|
404 | not_found | Agent not found |