Chronary Calendars API
The Calendars API from Chronary — 4 operation(s) for calendars.
The Calendars API from Chronary — 4 operation(s) for calendars.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/chronary-ai:chronary-ai-calendars-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Chronary Calendars API
version: 1.0.0
description: 'Calendar-as-a-service API for AI agents.
Manage calendars, events, and availability for AI and human agents.
All endpoints require an API key passed as a Bearer token.
**Authentication:** `Authorization: Bearer chr_sk_...` or `Authorization: Bearer chr_ak_...`
**Rate limit:** 10 requests/second per API key. Exceeds return HTTP 429.
**Quotas:** Monthly operation limits by plan — see Billing & plans and Rate limits.
**Agent bootstrap:** Custom extensions prefixed `x-agent-*` describe the self-signup flow for AI agents. These are not part of any registered OpenAPI extension — they are a Chronary convention.'
contact:
name: Chronary Support
email: support@chronary.ai
url: https://docs.chronary.ai
servers:
- url: https://api.chronary.ai
description: Production
security:
- BearerAuth: []
tags:
- name: Calendars
paths:
/v1/agents/{agent_id}/calendars:
get:
operationId: listAgentCalendars
summary: List calendars for an agent
tags:
- Calendars
parameters:
- schema:
type: string
example: agt_01H9X4M2P5R8T6V0
description: Agent ID
required: true
description: Agent ID
name: agent_id
in: path
- schema:
type: string
enum:
- all
required: false
name: include
in: query
- schema:
type: integer
minimum: 1
maximum: 200
default: 50
required: false
name: limit
in: query
- schema:
type:
- integer
- 'null'
minimum: 0
default: 0
required: false
name: offset
in: query
responses:
'200':
description: List of calendars
content:
application/json:
schema:
$ref: '#/components/schemas/CalendarList'
'401':
description: Unauthorized — missing or invalid API key
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: Resource not found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: Rate limited — 10 requests per second per key exceeded
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'500':
description: Internal server error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
post:
operationId: createAgentCalendar
summary: Create a calendar for an agent
tags:
- Calendars
parameters:
- schema:
type: string
example: agt_01H9X4M2P5R8T6V0
description: Agent ID
required: true
description: Agent ID
name: agent_id
in: path
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/CreateCalendar'
responses:
'201':
description: Calendar created
content:
application/json:
schema:
$ref: '#/components/schemas/Calendar'
'400':
description: Validation error — invalid request body or query parameters
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
description: Unauthorized — missing or invalid API key
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
description: Forbidden — quota exceeded or operation not permitted
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: Resource not found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: Rate limited — 10 requests per second per key exceeded
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'500':
description: Internal server error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
/v1/calendars:
get:
operationId: listCalendars
summary: List calendars
description: By default, returns only agent-owned calendars. Pass `include=all` to include shared org-level calendars.
tags:
- Calendars
parameters:
- schema:
type: string
enum:
- all
required: false
name: include
in: query
- schema:
type: integer
minimum: 1
maximum: 200
default: 50
required: false
name: limit
in: query
- schema:
type:
- integer
- 'null'
minimum: 0
default: 0
required: false
name: offset
in: query
responses:
'200':
description: List of calendars
content:
application/json:
schema:
$ref: '#/components/schemas/CalendarList'
'401':
description: Unauthorized — missing or invalid API key
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: Rate limited — 10 requests per second per key exceeded
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'500':
description: Internal server error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
post:
operationId: createCalendar
summary: Create a calendar
description: Creates a shared (org-level) calendar not associated with any specific agent.
tags:
- Calendars
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/CreateCalendar'
responses:
'201':
description: Calendar created
content:
application/json:
schema:
$ref: '#/components/schemas/Calendar'
'400':
description: Validation error — invalid request body or query parameters
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
description: Unauthorized — missing or invalid API key
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
description: Forbidden — quota exceeded or operation not permitted
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: Rate limited — 10 requests per second per key exceeded
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'500':
description: Internal server error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
/v1/calendars/{id}:
get:
operationId: getCalendar
summary: Get a calendar
tags:
- Calendars
parameters:
- schema:
type: string
example: cal_01H9X4M2P5R8T6V0
description: Calendar ID
required: true
description: Calendar ID
name: id
in: path
responses:
'200':
description: Calendar details
content:
application/json:
schema:
$ref: '#/components/schemas/Calendar'
'401':
description: Unauthorized — missing or invalid API key
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: Resource not found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: Rate limited — 10 requests per second per key exceeded
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'500':
description: Internal server error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
patch:
operationId: updateCalendar
summary: Update a calendar
tags:
- Calendars
parameters:
- schema:
type: string
example: cal_01H9X4M2P5R8T6V0
description: Calendar ID
required: true
description: Calendar ID
name: id
in: path
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/UpdateCalendar'
responses:
'200':
description: Updated calendar
content:
application/json:
schema:
$ref: '#/components/schemas/Calendar'
'400':
description: Validation error — invalid request body or query parameters
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
description: Unauthorized — missing or invalid API key
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: Resource not found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: Rate limited — 10 requests per second per key exceeded
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'500':
description: Internal server error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
delete:
operationId: deleteCalendar
summary: Delete a calendar
description: Deletes a calendar and all its events.
tags:
- Calendars
parameters:
- schema:
type: string
example: cal_01H9X4M2P5R8T6V0
description: Calendar ID
required: true
description: Calendar ID
name: id
in: path
responses:
'204':
description: Calendar deleted
'401':
description: Unauthorized — missing or invalid API key
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: Resource not found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: Rate limited — 10 requests per second per key exceeded
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'500':
description: Internal server error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
/v1/calendars/{id}/context:
get:
operationId: getCalendarContext
summary: Get calendar temporal context
description: 'Returns a snapshot of the calendar''s temporal state: current event, next event, recent events, and upcoming events within 24 hours. Designed for agents that need situational awareness of a calendar.'
tags:
- Calendars
parameters:
- schema:
type: string
example: cal_01H9X4M2P5R8T6V0
description: Calendar ID
required: true
description: Calendar ID
name: id
in: path
responses:
'200':
description: Calendar temporal context
content:
application/json:
schema:
$ref: '#/components/schemas/CalendarContext'
'401':
description: Unauthorized — missing or invalid API key
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: Resource not found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: Rate limited — 10 requests per second per key exceeded
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'500':
description: Internal server error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
components:
schemas:
Event:
type: object
properties:
id:
type: string
example: evt_01H9X4M2P5R8T6V0
calendarId:
type: string
example: cal_01H9X4M2P5R8T6V0
orgId:
type: string
example: org_01H9X4M2P5R8T6V0
title:
type: string
example: Team standup
description:
type:
- string
- 'null'
example: Daily sync meeting.
startTime:
type: string
format: date-time
example: '2025-01-20T09:00:00.000Z'
endTime:
type: string
format: date-time
example: '2025-01-20T09:30:00.000Z'
allDay:
type: boolean
example: false
status:
type: string
enum:
- confirmed
- tentative
- cancelled
- hold
example: confirmed
source:
type: string
enum:
- internal
- external_ical
example: internal
metadata:
type: object
additionalProperties: {}
example: {}
reminders:
type:
- array
- 'null'
items:
type: integer
example:
- 10
description: Reminder offsets (minutes before start). Each fires an event.reminder webhook and emits a VALARM in the iCal feed. null = inherit the calendar default (then the system default of 10 min); [] = no reminders.
holdExpiresAt:
type:
- string
- 'null'
format: date-time
example: null
description: When set, the event is a tentative hold that auto-expires at this timestamp. Must be 30 seconds to 15 minutes in the future when creating a hold; the cap exists to keep held slots short enough that they do not block real scheduling for long.
holdPriority:
type:
- integer
- 'null'
example: 0
description: Priority for conflict resolution. Higher values pre-empt lower-priority overlapping holds.
recurrenceRule:
type:
- string
- 'null'
example: null
description: RFC 5545 RRULE subset (no "RRULE:" prefix) when this event is a recurring series master, e.g. "FREQ=WEEKLY;BYDAY=MO,WE;COUNT=12". Expansion is UTC-only. null = one-off event.
recurrenceExdates:
type: array
items:
type: string
format: date-time
example: []
description: ISO 8601 starts of individually cancelled occurrences (EXDATE).
recurringEventId:
type: string
example: evt_01H9X4M2P5R8T6V0
description: 'Present only on expanded instances (expand=true): the id of the recurring series master this instance belongs to.'
originalStartTime:
type: string
format: date-time
example: '2025-01-20T09:00:00.000Z'
description: 'Present only on expanded instances: the occurrence start this instance was generated for.'
external_sync:
type: object
properties:
status:
type: string
example: not_configured
description: not_configured | queued | published | skipped | failed
required:
- status
description: Present only on create/update/hold mutation responses — the outcome of publishing this event to a connected human calendar (opt-in). Absent on read/list responses.
deletedAt:
type:
- string
- 'null'
format: date-time
example: null
createdAt:
type: string
format: date-time
example: '2025-01-15T10:00:00.000Z'
updatedAt:
type: string
format: date-time
example: '2025-01-15T10:00:00.000Z'
required:
- id
- calendarId
- orgId
- title
- description
- startTime
- endTime
- allDay
- status
- source
- metadata
- reminders
- holdExpiresAt
- holdPriority
- recurrenceRule
- recurrenceExdates
- deletedAt
- createdAt
- updatedAt
UpdateCalendar:
type: object
properties:
name:
type: string
minLength: 1
maxLength: 255
timezone:
type: string
minLength: 1
agent_status:
type: string
enum:
- idle
- working
- waiting
- error
default_reminders:
type:
- array
- 'null'
items:
type: integer
minimum: 1
maximum: 40320
maxItems: 5
metadata:
type: object
additionalProperties: {}
CalendarContext:
type: object
properties:
calendar_id:
type: string
example: cal_01H9X4M2P5R8T6V0
now:
type: string
format: date-time
example: '2026-04-14T10:30:00.000Z'
agent_status:
type: string
enum:
- idle
- working
- waiting
- error
example: idle
current_event:
allOf:
- $ref: '#/components/schemas/Event'
- type:
- object
- 'null'
description: Currently active event, or null
next_event:
allOf:
- $ref: '#/components/schemas/Event'
- type:
- object
- 'null'
description: Next upcoming event, or null
recent_events:
type: array
items:
$ref: '#/components/schemas/Event'
description: Up to 3 most recently ended events
upcoming:
type: array
items:
$ref: '#/components/schemas/Event'
description: Up to 5 events starting within the next 24 hours
required:
- calendar_id
- now
- agent_status
- current_event
- next_event
- recent_events
- upcoming
Error:
type: object
properties:
error:
type: object
properties:
type:
type: string
example: invalid_request
message:
type: string
example: The field "name" is required.
request_id:
type: string
example: req_01H9X4M2P5R8T6V0
required_plan:
type: string
example: pro
description: 'plan_required: the plan that unlocks the feature'
feature:
type: string
description: 'plan_required: the gated feature'
metric:
type: string
description: 'quota_exceeded and count caps: the metric at its limit (a PLAN_LIMITS key, accepted by POST /v1/billing/upgrade-requests)'
limit:
type: integer
description: 'quota_exceeded and count caps: the plan''s limit for `metric`'
upgrade_url:
type: string
description: Where a human upgrades the plan
docs_url:
type: string
contact_url:
type: string
description: 'Contract-managed plans: where to contact sales'
retry_after:
type: integer
description: Seconds until the request may be retried
required:
- type
- message
- request_id
required:
- error
CreateCalendar:
type: object
properties:
name:
type: string
minLength: 1
maxLength: 255
timezone:
type: string
minLength: 1
agent_status:
type: string
enum:
- idle
- working
- waiting
- error
default_reminders:
type:
- array
- 'null'
items:
type: integer
minimum: 1
maximum: 40320
maxItems: 5
metadata:
type: object
additionalProperties: {}
required:
- name
- timezone
Calendar:
type: object
properties:
id:
type: string
example: cal_01H9X4M2P5R8T6V0
orgId:
type: string
example: org_01H9X4M2P5R8T6V0
agentId:
type:
- string
- 'null'
example: agt_01H9X4M2P5R8T6V0
name:
type: string
example: Work Calendar
timezone:
type: string
example: America/Los_Angeles
metadata:
type: object
additionalProperties: {}
example: {}
externalId:
type:
- string
- 'null'
example: null
description: Provider calendar ID when bridged to an external provider (Phase 3); null otherwise.
provider:
type:
- string
- 'null'
example: null
description: External provider this calendar is bridged to (google | microsoft | apple); null otherwise.
deletedAt:
type:
- string
- 'null'
format: date-time
example: null
createdAt:
type: string
format: date-time
example: '2025-01-15T10:00:00.000Z'
updatedAt:
type: string
format: date-time
example: '2025-01-15T10:00:00.000Z'
agent_status:
type: string
enum:
- idle
- working
- waiting
- error
example: idle
default_reminders:
type:
- array
- 'null'
items:
type: integer
example:
- 10
description: Default reminder offsets (minutes before start) inherited by events that don't set their own. null = use the system default (10 min); [] = no reminders.
ical_url:
type: string
format: uri
example: https://api.chronary.ai/ical/abc123def456ghi789.ics
required:
- id
- orgId
- agentId
- name
- timezone
- metadata
- externalId
- provider
- deletedAt
- createdAt
- updatedAt
- agent_status
- default_reminders
- ical_url
CalendarList:
type: object
properties:
data:
type: array
items:
$ref: '#/components/schemas/Calendar'
total:
type: integer
example: 2
limit:
type: integer
example: 20
offset:
type: integer
example: 0
required:
- data
- total
- limit
- offset
securitySchemes:
BearerAuth:
type: http
scheme: bearer
description: 'API key with `chr_sk_*` for org-level access or `chr_ak_*` for agent-scoped access. Pass in the Authorization header: `Authorization: Bearer chr_sk_...`'
SessionAuth:
type: apiKey
in: cookie
name: chronary_session
description: Console session JWT (HS256), issued by sign-in and sent as the `chronary_session` cookie (a Bearer JWT is also accepted). This is NOT a chr_sk_*/chr_ak_* API key — API keys are rejected with 401 on these endpoints.
x-agent-self-signup:
url: https://api.chronary.ai/v1/agent/sign-up
verify_url: https://api.chronary.ai/v1/agent/verify
restricted_key_returned: true
human_in_the_loop: otp_email
rate_limit: 5 requests per 60s per client IP
x-agent-bootstrap-script:
npx: npx @chronary/agent-init@latest
shell: https://chronary.ai/agent-init.sh
description: One-liner that performs sign-up, prompts for OTP, verifies, and creates a smoke calendar. Accepts CHRONARY_EMAIL and CHRONARY_OTP env vars for non-interactive flows.
x-llms-txt: https://docs.chronary.ai/llms.txt
x-llms-full-txt: https://docs.chronary.ai/llms-full.txt
x-mcp-server-card: https://chronary.ai/.well-known/mcp/server-card.json
x-api-catalog: https://chronary.ai/.well-known/api-catalog