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 Chronary does not accept sign-ups from is refused with 400 signup_blocked before any email is sent. Don’t retry: contact [email protected].

FieldTypeRequiredDescription
emailstringyesEmail address to send the verification code to
agent_namestringyesDisplay name of the signing-up agent (1–100 chars)
tos_versionstringyesExact ToS version string the caller has accepted
Terminal window
curl -X POST https://api.chronary.ai/v1/agent/sign-up \
-H "Content-Type: application/json" \
-d '{
"email": "[email protected]",
"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/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.

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 ProStarts on Prosame
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.