Skip to content

Agent Auth

Agent self-signup lets an AI agent provision its own Chronary organization and API key without a human in the loop, then upgrade to a larger budget by verifying a one-time code sent to the signup email.

The flow is two requests:

  1. POST /v1/agent/sign-up — unauthenticated. Creates the org (or dedups) and emails a 6-digit code. New orgs get an API key on the sandbox tier (small but functional — see Sandbox tier vs. Free tier below).
  2. POST /v1/agent/verify — authenticated with the sandbox key. Submits the OTP to lift caps to the public Free tier (right away; before general availability, if early access is full, automatically once a spot opens).

The same api_key value is used before and after verification; only the org’s plan and status change.

POST /v1/agent/sign-up

Unauthenticated. IP-rate-limited at 5 requests per 60 seconds. Each network (one IPv4 address or IPv6 /64) has a sign-up budget, by default 20 per UTC hour and 50 per UTC day. Each email domain is limited to 10 sign-ups per UTC hour; large consumer providers (Gmail, Outlook, Yahoo, iCloud, Proton and similar) are exempt. Over any of these limits the response is 429 rate_limit_error with a Retry-After header saying when to try again.

Calling sign-up again for an email that hasn’t verified yet emails a new code, at most once per 60 seconds; a call inside that window returns the usual response and keeps the current code. One email can be signed up at most 3 times per hour and 10 times per day. Wrong codes add up across re-sends: after 30, the code stops working and no new one is sent for 24 hours.

Disposable (throwaway) email addresses are refused with 400 disposable_email. Sign up with a permanent address: the account and its verification code belong to whoever owns it.

An address at a domain that can’t receive email can be refused with 400 email_domain_unreachable before any email is sent: the verification code could never arrive. Check the address for a typo, or use a different one.

An address Chronary does not accept sign-ups from is refused with 400 signup_blocked before any email is sent. Don’t retry: contact support@chronary.ai.

FieldTypeRequiredDescription
emailstringyesEmail address to send the verification code to
agent_namestringyesDisplay name of the signing-up agent (1–100 chars, after normalizing; see below)
tos_versionstringyesExact ToS version string the caller has accepted
heard_aboutstringnoHow you (or your user) found Chronary, in plain text; kept to 200 characters

heard_about is optional and helps us learn which channels work. Control characters and invisible formatting characters (such as bidi controls) are removed and whitespace is collapsed. It is kept for a new organization only (a repeat sign-up ignores it) and is never returned by the API. A longer answer is cut to 200 characters, never refused. The SDKs take it as heard_about (Go: HeardAbout); the CLI and npx @chronary/agent-init take --heard-about (agent-init also reads CHRONARY_HEARD_ABOUT).

The API normalizes agent_name (also used as the organization name) the same way it normalizes calendar names: invisible characters removed, whitespace runs collapsed to one space, ends trimmed. A value with no visible character, or with a control character, returns 400 validation_error. See Names.

Terminal window
curl -X POST https://api.chronary.ai/v1/agent/sign-up \
-H "Content-Type: application/json" \
-d '{
"email": "alice@example.com",
"agent_name": "Alice Bot",
"tos_version": "2026-05-11"
}'
{
"org_id": "org_abc123",
"agent_id": "agt_abc123",
"api_key": "chr_sk_restricted_abc...",
"message": "Verification code sent to email"
}

The api_key runs on the sandbox tier (free-agent-unverified). It can call the Free-tier endpoints the agent is going to use — calendars, events, webhooks, availability — but on a small budget: 1 agent, 1 calendar, and per month 10 events, 100 webhook deliveries, 10 availability queries and 100 API calls, with 1 webhook endpoint. Recurring series, booking pages and iCal subscriptions are not available in the sandbox. Once any cap is hit you’ll get a quota_exceeded response; verifying the email lifts each monthly cap to the Free-tier value. Actions that need a paid plan (creating scheduling proposals, minting Agent keys, cross-calendar availability, creating and confirming holds) stay capability-gated regardless of verification status.

{
"message": "Verification code sent to email"
}

To prevent email enumeration, the same opaque message is returned whether or not an org already exists for that email. No credentials are leaked.

{
"waitlisted": true,
"message": "Sign-ups are paused, so no API key was issued. If this email is new, it's on the waitlist and an admin will activate the account. Already have an account? Use its existing API key."
}

While sign-ups are paused (waitlist mode, or early access is full) no key is issued. The body is the same for every email: new, already waitlisted, or with an existing account.

{
"error": {
"type": "tos_version_stale",
"message": "The submitted terms-of-service version is out of date",
"current_version": "2026-05-11",
"request_id": "req_..."
}
}

Re-fetch the current ToS version from GET /v1/auth/terms/current and retry.

POST /v1/agent/sign-up/anonymous

Unauthenticated. For an agent with no email inbox: it creates a claimable organization with its default agent and an Organization key that works at once, at sandbox limits, plus a one-time claim_url to hand to the person who should own the calendar.

  • The organization sends and receives no email, and it cannot create webhook endpoints, set an email or call POST /v1/agent/verify (403 anonymous_org_restricted).
  • Give claim_url to that person. Opening it while signed in to the console moves the agents, calendars and events into their account. The key stops working then, and each calendar gets a new subscribe URL.
  • Unclaimed, the key stops at expires_at (72 hours after sign-up) with 401 key_expired, and the organization and its data are deleted.

Limits: 5 requests per 60 seconds per client IP, 3 sign-ups per UTC hour and 10 per UTC day per network (one IPv4 address or IPv6 /64), with 429 rate_limit_error and Retry-After past them, and a daily cap across all callers (503 anonymous_signup_capacity). If that cap can’t be checked for a moment, the sign-up is refused with 503 temporarily_disabled and Retry-After; retry after the delay. A 503 temporarily_disabled does not use up one of your network’s sign-ups, but a 503 anonymous_signup_capacity does, so don’t retry that one before the next UTC day.

FieldTypeRequiredDescription
agent_namestringyesDisplay name of the agent (1–100 chars, after normalizing)
tos_versionstringyesExact current ToS version, from GET /v1/auth/terms/current

Sending the current tos_version accepts the Terms of Service for the person or organization the agent acts for. A person who claims the organization takes it on under the Terms they accepted for their own account.

{
"org_id": "a1b2c3d4-e5f6-7890-1234-567890abcdef",
"agent_id": "agt_abc123",
"api_key": "chr_sk_...",
"claim_url": "https://console.chronary.ai/claim/anonymous#token=...",
"expires_at": "2026-11-21T12:00:00.000Z",
"plan": "free-agent-unverified"
}

api_key and claim_url are shown once. The claim link works once, until expires_at.

Terminal window
curl -X POST https://api.chronary.ai/v1/agent/sign-up/anonymous \
-H "Content-Type: application/json" \
-d '{"agent_name": "Alice Bot", "tos_version": "2026-05-11"}'

The Claimable Calendars guide walks through the whole flow: handing over the claim link, what a claim moves, limits and expiry.

POST /v1/agent/verify

Authenticated with the restricted live key returned by sign-up. Body: { otp } — 6 numeric digits.

FieldTypeRequiredDescription
otpstringyesSix-digit numeric code from the verification email
Terminal window
curl -X POST https://api.chronary.ai/v1/agent/verify \
-H "Authorization: Bearer chr_sk_restricted_abc..." \
-H "Content-Type: application/json" \
-d '{"otp": "123456"}'
{
"verified": true,
"sandbox_promotion": "promoted",
"message": "Full access unlocked"
}

After a successful verify, the org transitions status: unverified → verified and the email is confirmed. What happens to the plan (capacity_full can only happen before general availability, while early-access capacity is limited):

sandbox_promotionMeaning
promotedThe plan moved from free-agent-unverified to free (or Pro during early access), and the same api_key gets the higher limits right away.
capacity_fullBefore general availability only: early access is full right now. The email is verified, but the org keeps sandbox limits. It leaves the sandbox automatically when a spot opens, to the plan it would have got with room (free, or Pro during early access), and subscribed webhooks receive org.plan_changed. The message says so.
nullThe org was not on the sandbox tier.
{
"error": {
"type": "validation_error",
"message": "Invalid or expired verification code",
"request_id": "req_..."
}
}

A generic 400 is returned for every failure mode (wrong OTP, expired, burned after 10 attempts) — no information leak between those cases. Re-call POST /v1/agent/sign-up with the same email to get a fresh code.

A claimable organization (from POST /v1/agent/sign-up/anonymous) has no email to verify: the call returns 403 anonymous_org_restricted. Give its claim_url to the person who should own it instead.

Agent self-signup starts on a sandbox tier (free-agent-unverified) that isn’t returned by GET /v1/plans, because it is an enforcement state, not a purchasable product. The sandbox is small but functional, so the operator can wire the API end-to-end before committing to verification. Verifying the email moves the org to the public free plan, which is enforced the same way for every org on it. Verifying multiplies each monthly volume by ten; agents, calendars and the webhook endpoint stay the same.

CapSandbox (before verifying)Free (after verifying)Verify gain
Agents11same
Calendars11same
Events / mo10100×10
API calls / mo1001,000×10
Availability queries / mo10100×10
Webhook deliveries / mo1001,000×10
Webhook endpoints11same
Recurring event seriesNone1unlocks
Booking pagesNone1unlocks
iCal subscriptionsNoneNonesame
Calendar connectionsNone1unlocks
Scheduling proposalsStarts on DeveloperStarts on Developersame
Agent keysStarts on DeveloperStarts on Developersame

The sandbox is sized to let an agent create real events, see a webhook fire and run a few availability queries, but not enough to run a real workload. Once you hit a cap, you’ll get a quota_exceeded response (HTTP 429) and need to verify the email to keep going.

Quotas are enforced the same way for the sandbox and for Free. There is no enforcement carve-out for agent-signed-up orgs; the sandbox caps you see above are the caps you’ll hit. api_calls is metered for every plan and behaves identically across tiers, except that POST /v1/agent/verify and the MCP handshake are never metered, so a sandbox can always verify.

After verification, the same api_key value is reused (no rotation needed); only the status and plan on the org change, and the caps immediately become the Free values above. Anything created during the sandbox window (calendars, events, webhooks) carries over; verification doesn’t reset state.