Skip to content

Error Codes

Every error response from the Chronary API follows a consistent shape, making it straightforward to handle errors programmatically.

All errors return a JSON body with a single error object:

{
"error": {
"type": "validation_error",
"message": "Invalid request body",
"param": "start_time",
"request_id": "req_abc123"
}
}
FieldTypeDescription
typestringMachine-readable error type (see table below)
messagestringHuman-readable explanation of what went wrong
paramstring | nullThe specific parameter that caused the error, when applicable
request_idstringUnique identifier for the request, useful for debugging

The request body, query parameters, or path parameters failed validation.

Common causes:

  • Missing required fields
  • Invalid date format in start_time or end_time
  • Value out of allowed range (e.g., negative duration)
  • Unknown fields in the request body
  • An invalid recurrence_rule (unsupported RRULE key, COUNT and UNTIL together, start_time not matching the rule pattern), or expand=true without both time bounds
  • An occurrence_start that is not an active occurrence of the recurring series
  • An unknown timezone on an event, or a timezone, recurrence_rule and start_time that don’t match once merged (for example timezone sent without re-expressing BYDAY in local terms, or a start_time at the second instance of a repeated local time)

How to fix: Check the param field in the error response to identify which field is invalid. Refer to the API reference for the expected format.


Sign-up (POST /v1/agent/sign-up or a console account) was refused because the email address belongs to a disposable (throwaway) email service. param is "email".

{
"error": {
"type": "disposable_email",
"message": "Disposable email addresses can't be used to sign up. Use a permanent email address.",
"param": "email",
"request_id": "req_abc123"
}
}

How to fix: Don’t retry with the same address. Sign up with a permanent email address that the account owner reads: the verification code and account notices go there.


Sign-up (POST /v1/agent/sign-up, a console account, or a first sign-in with Google, GitHub or Microsoft) was refused because Chronary does not accept sign-ups from this email address. No email is sent. param is "email".

{
"error": {
"type": "signup_blocked",
"message": "Sign-up is not available for this address. Contact [email protected].",
"param": "email",
"request_id": "req_abc123"
}
}

How to fix: Don’t retry, and don’t retry with another address on the same domain. If you think this is a mistake, contact [email protected] with the request_id.


The API key is missing, malformed, or revoked.

Common causes:

  • Missing Authorization header entirely
  • Using Authorization: chr_sk_... instead of Authorization: Bearer chr_sk_...
  • Using a revoked or rotated API key
  • Sending a value that is not a Chronary key (keys start with chr_sk_ or chr_ak_), for example a placeholder or a truncated copy

How to fix: Verify the Authorization: Bearer <your_api_key> header is present and uses a valid, active key from the console. Retrying with the same key returns the same 401, so stop and replace the key instead of retrying in a loop.

401 or 429 for a bad key? A bad key normally gets 401 authentication_error. If one network keeps sending invalid keys, requests from it can get 429 rate_limit_error with Retry-After: 60 instead, for about a minute. Requests with a valid key that the API has recently accepted keep working during that time.


The API key was created with an expiry (expires_in) and its expires_at has passed. The message gives the expiry time.

How to fix: Roll the Organization key in the console, or create a new key, then update the places that use the old one. An expiry can’t be extended. See Key expiry.


The authenticated key does not have permission to perform the requested action.

Common causes:

  • Attempting to modify an event with source: "ical_subscription" (external events are read-only)
  • Accessing a resource that belongs to a different organization
  • Responding to a scheduling proposal (spr_) as an agent that is not a listed participant
  • Performing an action not allowed on your current plan
  • Creating an unbounded (or over-window) recurring rule on the Free plan — returned as type: "plan_required" with feature: "unbounded_recurrence" and an upgrade_url (Free rules must be bounded and end within 90 days of the series start)

How to fix: Check that the resource belongs to your organization and that the source field allows modification. External events synced via iCal subscriptions cannot be edited through the API. For proposals, confirm the responding agent’s id is in the proposal’s participant_agent_ids list.


The feature you called isn’t included in your current plan.

{
"error": {
"type": "plan_required",
"message": "Scoped keys require the Pro plan",
"request_id": "req_abc123",
"required_plan": "pro",
"feature": "scoped_keys",
"upgrade_url": "https://console.chronary.ai/settings/billing",
"docs_url": "https://docs.chronary.ai/resources/billing/"
}
}

required_plan is the cheapest plan that unlocks the feature and can be bought right now. Developer opens Agent keys, cross-agent availability, webhook replay and secret rotation, so those errors say "required_plan": "developer" and the message names “a Developer or Pro plan”. Scheduling proposals and temporal holds are Pro: "required_plan": "pro".

How to fix: Don’t retry. See What to do when you hit a plan limit.


Your organization is suspended. Every API key (Organization and Agent keys), MCP request and iCal feed of the organization is refused until it is restored. Your keys are not revoked: they work again, unchanged, once access is restored. The organization’s owner can still sign in to the console.

{
"error": {
"type": "org_suspended",
"message": "This organization is suspended. Contact [email protected] to restore access.",
"request_id": "req_abc123"
}
}

How to fix: Don’t retry. Contact [email protected].


The requested resource does not exist or is not accessible from your organization.

Common causes:

  • Typo in the resource ID (e.g., agt_ vs cal_ prefix mismatch)
  • The resource was deleted
  • The resource belongs to a different organization
  • The parent calendar for an event operation does not exist (“Calendar not found”)
  • The organizer or a listed participant on a proposal does not exist (“Organizer agent not found” / “One or more participant agents not found”)

How to fix: Verify the ID is correct and uses the right prefix (agt_ for agents, cal_ for calendars, evt_ for events, spr_ for scheduling proposals). Confirm the resource belongs to the same organization as your API key. For proposals, verify the organizer_agent_id and every participant_agent_ids entry reference existing agents.


The request conflicts with the current state of a resource.

Common causes:

  • Creating an agent with an email address already in use
  • Creating a hold that overlaps an existing hold with equal or higher priority (“An overlapping hold with equal or higher priority already exists”)
  • Calling PUT /v1/events/:id/confirm or /release on an event whose status is not hold (“Event is not in hold status”)
  • Calling PUT /v1/events/:id/confirm on a hold whose hold_expires_at has passed (“Hold has already expired”)
  • Responding to or resolving a scheduling proposal that is no longer in the pending state (“Proposal is not in a pending state”)
  • Resolving a scheduling proposal whose chosen slot conflicts with an existing hold (“The chosen slot conflicts with an existing hold”)
  • Submitting a second response from the same agent to the same proposal (“Agent has already responded to this proposal”)
  • Creating a duplicate webhook subscription for the same URL and event type
  • Passing occurrence_start on DELETE for an event that is not a recurring series (“Event is not a recurring series”)
  • Creating an Agent key for a deleted agent — returned as type: "agent_inactive" (“This agent has been deleted. Create keys only for active or paused agents.”)

How to fix: Inspect the error message to identify the specific conflict. For hold conflicts, raise hold_priority above the existing hold or create the event at a non-overlapping time. For stale proposals, re-fetch the proposal to see its current status before retrying. For duplicate responses, update the existing response rather than creating a new one.


An early-access invite link was used after Chronary became generally available. Invite links no longer create accounts.

{
"error": {
"type": "invite_closed",
"message": "Early-access invites closed when Chronary became generally available. Create an account with the normal sign-up instead.",
"sign_up_url": "https://console.chronary.ai/signup",
"request_id": "req_abc123"
}
}

How to fix: Don’t retry. Create an account at the sign_up_url, or let your agent sign itself up with POST /v1/agent/sign-up.


payload_too_large — 413 Content Too Large

Section titled “payload_too_large — 413 Content Too Large”

The request body is larger than the endpoint accepts. Authenticated API and MCP requests accept up to 1 MB; public sign-up, sign-in, invite, waitlist and booking-page forms accept up to 32 KB.

{
"error": {
"type": "payload_too_large",
"message": "Request body exceeds the 1048576-byte limit for this endpoint.",
"request_id": "req_abc123"
}
}

How to fix: Don’t retry the same body. Send less data per request, for example by trimming metadata or splitting the work across several calls.


rate_limit_error — 429 Too Many Requests

Section titled “rate_limit_error — 429 Too Many Requests”

You have exceeded the per-key rate limit of 10 requests per second, a sign-up limit, or the limit on invalid API keys from one network.

Common causes:

  • Sending bursts of requests without throttling
  • Running parallel operations without a concurrency limit
  • Signing up too many accounts: sign-up is limited per network (one IPv4 address or IPv6 /64, per UTC hour and per UTC day) and, for agent sign-up, per email domain per UTC hour. Large consumer email providers are exempt from the per-domain limit. These waits can be long, so read Retry-After rather than retrying in a loop.
  • Sending many invalid API keys from one network: see authentication_error. Fix the key, then retry after Retry-After.

How to fix: Respect the Retry-After header in the response. Implement exponential backoff with jitter. See the Rate Limits page for a retry code example.


Your organization has exhausted its monthly quota for a specific resource.

Common causes:

  • Hitting the monthly event creation limit on the Free plan (100/mo)
  • Exceeding the monthly API call limit (1,000/mo on Free)
  • Reaching the concurrent active recurring-series cap (1 on Free, 250 on Pro) — delete an existing series to free a slot
{
"error": {
"type": "quota_exceeded",
"message": "Calendar limit of 10 reached on your plan.",
"metric": "calendars",
"limit": 10,
"upgrade_url": "https://console.chronary.ai/settings/billing",
"upgrade_plan": "pro",
"docs_url": "https://docs.chronary.ai/resources/rate-limits/#monthly-quotas-by-plan",
"request_id": "req_abc123"
}
}

Every quota error includes metric (the same value POST /v1/billing/upgrade-requests accepts), limit, docs_url, and request_id, plus one next step:

  • upgrade_url and upgrade_plan below Pro: the console page where a human upgrades, and the plan it leads to (the next plan up): developer from Free, pro from Developer.
  • contact_url on Pro and above: talk to us about a higher limit.
  • Neither on an agent signup whose email isn’t verified yet: verify the email first.

Monthly quotas reset at the start of each UTC calendar month.

Hard and soft limits: on Free and Developer the monthly event, availability-query, proposal, and webhook-delivery limits are hard: once reached, those requests are stopped until the limit resets or you upgrade. On Pro and Custom they are soft: requests past the limit are still served, with a RateLimit-Soft-Exceeded: true response header, and the account owner gets an email. The monthly API-call limit and the count limits (agents, calendars, and so on) are enforced on every plan.

How to fix: Check your current usage with GET /v1/usage. Upgrade your plan, or wait for the reset at the start of the next UTC calendar month. See What to do when you hit a plan limit and Rate Limits for quota details by plan.


internal_error — 500 Internal Server Error

Section titled “internal_error — 500 Internal Server Error”

Something went wrong on the Chronary server.

Common causes:

  • Transient infrastructure issue
  • Unexpected edge case in request processing

How to fix: Retry the request with exponential backoff. If the error persists after multiple retries, contact support with the request_id from the error response.

A 403 plan_required or a 429 quota_exceeded will not clear by retrying. An agent can’t pay, cancel, or change payment methods, but it can ask its human to upgrade:

  1. Don’t retry in a loop.
  2. GET /v1/billing — see the current plan and whether a request is already pending.
  3. POST /v1/billing/upgrade-requests — pass the feature (from plan_required) or metric (from quota_exceeded) and a short reason.
  4. Give the returned approval_url to your human. They complete a secure checkout.
  5. GET /v1/billing/upgrade-requests/{id} — poll at most once a minute until status is no longer pending.
  6. After status: completed, retry the original call about 15 seconds later.

The upgrade_url on the error is the console page a human can open directly; approval_url is the better link to hand over because it takes them straight to your request. If you receive 409 unsupported_plan, the error includes a contact_url instead. If you receive 409 founding_offer_pending, the account joined during early access and Pro is still free — the founding member offer opens at launch, so don’t ask your human to pay yet. On a limit error, upgrade_plan says which plan upgrade_url leads to (developer or pro), so you can tell your human which one to choose. See Billing for the full API, and the SDK, CLI, and MCP equivalents:

  • TypeScript: client.billing.upgradeRequests.create(...); catch PlanRequiredError / QuotaExceededError and read err.upgradeUrl, err.requiredPlan, err.feature, err.metric, err.limit.
  • Python: client.billing.upgrade_requests.create(...); catch PlanRequiredError / QuotaExceededError and read e.upgrade_url, e.required_plan, e.feature, e.metric, e.limit.
  • Go: client.Billing.CreateUpgradeRequest(...); errors.Is(err, chronary.ErrPlanRequired) and read UpgradeURL from the *chronary.Error.
  • CLI: chronary billing request-upgrade --wait.
  • MCP: get_billing, then request_upgrade.

The Python SDK maps each error type to a specific exception class. All exceptions inherit from ChronaryError:

ChronaryError
└── APIError
├── APIConnectionError
│ └── APITimeoutError
└── APIStatusError
├── BadRequestError (400)
├── AuthenticationError (401)
├── PermissionDeniedError (403)
├── NotFoundError (404)
├── RateLimitError (429)
├── QuotaExceededError (429)
└── InternalServerError (500+)
from chronary import (
Chronary,
NotFoundError,
RateLimitError,
QuotaExceededError,
AuthenticationError,
BadRequestError,
APIError,
)
client = Chronary()
try:
agent = client.agents.get("agt_nonexistent")
except NotFoundError as e:
print(f"Not found: {e.message}")
print(f"Request ID: {e.request_id}")
except RateLimitError as e:
print(f"Rate limited: {e.message}")
except QuotaExceededError as e:
print(f"Quota exceeded: {e.message}")
except AuthenticationError as e:
print(f"Invalid API key: {e.message}")
except BadRequestError as e:
print(f"Validation error on '{e.param}': {e.message}")
except APIError as e:
# Catch-all for any API error
print(f"API error ({e.status_code}): {e.message}")

APIStatusError exceptions (and all subclasses) expose:

AttributeTypeDescription
status_codeintHTTP status code
messagestrHuman-readable error message
request_idstr | NoneUnique request ID for debugging
error_typestr | NoneMachine-readable error type
paramstr | NoneThe parameter that caused the error
upgrade_urlstr | NoneWhere a human can upgrade (plan_required, quota_exceeded)
docs_urlstr | NoneDocumentation link (plan_required)
required_planstr | NonePlan that includes the feature (plan_required)
featurestr | NoneThe gated feature (plan_required)
contact_urlstr | NoneContact link for plans that need a conversation
metricstr | NoneThe exhausted quota metric (quota_exceeded)
limitint | NoneThe quota limit that was hit (quota_exceeded)
bodyAnyThe raw response body

The SDK automatically retries on 429 and 5xx errors with exponential backoff:

# Increase retries for reliability-critical code
client = Chronary(max_retries=5, timeout=30.0)
# Disable retries entirely
client = Chronary(max_retries=0)

The Retry-After header is respected when present. See Rate Limits for more details.


Every API response — successful or not — includes a request_id in the response body and as the X-Request-Id response header. This ID uniquely identifies your request in Chronary’s logging infrastructure.

When contacting support about an error:

  1. Include the request_id from the error response
  2. Note the approximate time the error occurred
  3. Include the endpoint and method you called

This allows the support team to trace the exact request through the system and diagnose the issue quickly.

Terminal window
# The request_id appears in both the response body and headers
curl -v https://api.chronary.ai/v1/agents/agt_nonexistent \
-H "Authorization: Bearer chr_sk_your_key_here"
# Response header: X-Request-Id: req_abc123
# Response body:
# {
# "error": {
# "type": "not_found",
# "message": "Agent not found",
# "param": null,
# "request_id": "req_abc123"
# }
# }