Chronary Availability API

The Availability API from Chronary — 4 operation(s) for availability.

Operations 6

GET /v1/agents/{id}/availability Get agent availability #
GET /v1/calendars/{id}/availability Get calendar availability #
PUT /v1/calendars/{id}/availability-rules Set availability rules #
GET /v1/calendars/{id}/availability-rules Get availability rules #
DELETE /v1/calendars/{id}/availability-rules Delete availability rules #
GET /v1/availability Get cross-agent availability #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • 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.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/chronary-ai:chronary-ai-availability-api"
All apis
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.

Get an API 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 Specification

chronary-ai-availability-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Chronary Availability 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: Availability
paths:
  /v1/agents/{id}/availability:
    get:
      operationId: getAgentAvailability
      summary: Get agent availability
      description: Returns free/busy slots for all calendars owned by the agent.
      tags:
      - Availability
      parameters:
      - schema:
          type: string
          example: agt_01H9X4M2P5R8T6V0
          description: Agent ID
        required: true
        description: Agent ID
        name: id
        in: path
      - schema:
          type: string
          format: date-time
        required: true
        name: start
        in: query
      - schema:
          type: string
          format: date-time
        required: true
        name: end
        in: query
      - schema:
          type: string
          enum:
          - 15m
          - 30m
          - 45m
          - 1h
          - 2h
        required: false
        name: duration
        in: query
      - schema:
          type: string
          enum:
          - 15m
          - 30m
          - 45m
          - 1h
          - 2h
        required: false
        name: slot_duration
        in: query
      - schema:
          type: string
          enum:
          - 'true'
          - 'false'
          default: 'false'
        required: false
        name: include_busy
        in: query
      - schema:
          type: string
          enum:
          - 'true'
          - 'false'
          default: 'false'
        required: false
        name: allow_stale
        in: query
      responses:
        '200':
          description: Availability slots
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AgentAvailabilityResponse'
        '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'
  /v1/calendars/{id}/availability:
    get:
      operationId: getCalendarAvailability
      summary: Get calendar availability
      description: Returns free/busy slots for a single calendar.
      tags:
      - Availability
      parameters:
      - schema:
          type: string
          example: cal_01H9X4M2P5R8T6V0
          description: Calendar ID
        required: true
        description: Calendar ID
        name: id
        in: path
      - schema:
          type: string
          format: date-time
        required: true
        name: start
        in: query
      - schema:
          type: string
          format: date-time
        required: true
        name: end
        in: query
      - schema:
          type: string
          enum:
          - 15m
          - 30m
          - 45m
          - 1h
          - 2h
        required: false
        name: duration
        in: query
      - schema:
          type: string
          enum:
          - 15m
          - 30m
          - 45m
          - 1h
          - 2h
        required: false
        name: slot_duration
        in: query
      - schema:
          type: string
          enum:
          - 'true'
          - 'false'
          default: 'false'
        required: false
        name: include_busy
        in: query
      - schema:
          type: string
          enum:
          - 'true'
          - 'false'
          default: 'false'
        required: false
        name: allow_stale
        in: query
      responses:
        '200':
          description: Availability slots
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CalendarAvailabilityResponse'
        '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'
  /v1/calendars/{id}/availability-rules:
    put:
      operationId: setAvailabilityRules
      summary: Set availability rules
      description: Upsert buffer times and working hours for a calendar.
      tags:
      - Availability
      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/UpdateAvailabilityRules'
      responses:
        '200':
          description: Availability rules
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AvailabilityRules'
        '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'
    get:
      operationId: getAvailabilityRules
      summary: Get availability rules
      description: Returns the buffer and working hours rules for a calendar.
      tags:
      - Availability
      parameters:
      - schema:
          type: string
          example: cal_01H9X4M2P5R8T6V0
          description: Calendar ID
        required: true
        description: Calendar ID
        name: id
        in: path
      responses:
        '200':
          description: Availability rules
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AvailabilityRules'
        '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: deleteAvailabilityRules
      summary: Delete availability rules
      description: Removes buffer times and working hours for a calendar.
      tags:
      - Availability
      parameters:
      - schema:
          type: string
          example: cal_01H9X4M2P5R8T6V0
          description: Calendar ID
        required: true
        description: Calendar ID
        name: id
        in: path
      responses:
        '204':
          description: Rules 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/availability:
    get:
      operationId: getCrossAgentAvailability
      summary: Get cross-agent availability
      description: Returns intersected free/busy slots across multiple agents. Pass a comma-separated list of agent IDs in the `agents` query parameter. Optionally filter to specific calendar IDs with `calendars`. **Requires Pro plan.**
      tags:
      - Availability
      parameters:
      - schema:
          type: string
          minLength: 1
        required: true
        name: agents
        in: query
      - schema:
          type: string
          format: date-time
        required: true
        name: start
        in: query
      - schema:
          type: string
          format: date-time
        required: true
        name: end
        in: query
      - schema:
          type: string
          enum:
          - 15m
          - 30m
          - 45m
          - 1h
          - 2h
        required: false
        name: duration
        in: query
      - schema:
          type: string
          enum:
          - 15m
          - 30m
          - 45m
          - 1h
          - 2h
        required: false
        name: slot_duration
        in: query
      - schema:
          type: string
        required: false
        name: calendars
        in: query
      - schema:
          type: string
          enum:
          - 'true'
          - 'false'
          default: 'false'
        required: false
        name: include_busy
        in: query
      - schema:
          type: string
          enum:
          - 'true'
          - 'false'
          default: 'false'
        required: false
        name: allow_stale
        in: query
      responses:
        '200':
          description: Intersected availability slots
          headers:
            X-Chronary-Plan:
              description: The current plan of the authenticated organization (free | pro | scale)
              schema:
                type: string
                enum:
                - free
                - pro
                - scale
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AgentAvailabilityResponse'
        '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: Plan upgrade required — feature is not available on the current plan
          headers:
            X-Chronary-Plan:
              description: The current plan of the authenticated organization (free | pro | scale)
              schema:
                type: string
                enum:
                - free
                - pro
                - scale
          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:
    Slot:
      type: object
      properties:
        start:
          type: string
          format: date-time
          example: '2025-01-20T09:00:00.000Z'
        end:
          type: string
          format: date-time
          example: '2025-01-20T09:30:00.000Z'
      required:
      - start
      - end
    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
    AvailabilityRules:
      type: object
      properties:
        id:
          type: string
          example: avr_01H9X4M2P5R8T6V0
        calendar_id:
          type: string
          example: cal_01H9X4M2P5R8T6V0
        buffer_before_minutes:
          type: number
          example: 10
        buffer_after_minutes:
          type: number
          example: 5
        working_hours:
          example:
            mon:
              start: 09:00
              end: '17:00'
        timezone:
          type: string
          example: America/New_York
        created_at:
          type: string
          format: date-time
          example: '2025-01-15T10:00:00.000Z'
        updated_at:
          type: string
          format: date-time
          example: '2025-01-15T10:00:00.000Z'
      required:
      - id
      - calendar_id
      - buffer_before_minutes
      - buffer_after_minutes
      - timezone
      - created_at
      - updated_at
    CalendarAvailabilityResponse:
      type: object
      properties:
        calendar_id:
          type: string
          example: cal_01H9X4M2P5R8T6V0
        slots:
          type: array
          items:
            $ref: '#/components/schemas/Slot'
        busy:
          type: array
          items:
            type: object
            properties:
              start:
                type: string
                format: date-time
                example: '2025-01-20T09:00:00.000Z'
              end:
                type: string
                format: date-time
                example: '2025-01-20T09:30:00.000Z'
            required:
            - start
            - end
          description: Flat busy-block list. Present only when include_busy=true.
        availability_state:
          type: string
          enum:
          - complete
          - stale
          - partial
          - unavailable
          description: Whether all required Chronary and authorized human-calendar data was current for this result.
        sources:
          type: object
          properties:
            chronary:
              type: string
              enum:
              - current
            external:
              type: string
              enum:
              - current
              - stale
              - partial
              - unavailable
            last_synced_at:
              type:
              - string
              - 'null'
              format: date-time
          required:
          - chronary
          - external
        warnings:
          type: array
          items:
            type: object
            properties:
              code:
                type: string
                enum:
                - availability_incomplete
              message:
                type: string
            required:
            - code
            - message
      required:
      - calendar_id
      - slots
      - availability_state
      - sources
      - warnings
    AgentAvailabilityResponse:
      type: object
      properties:
        agents:
          type: array
          items:
            type: string
          example:
          - agt_01H9X4M2P5R8T6V0
        slots:
          type: array
          items:
            $ref: '#/components/schemas/Slot'
        per_agent_busy:
          type: object
          additionalProperties:
            type: array
            items:
              type: object
              properties:
                start:
                  type: string
                  format: date-time
                  example: '2025-01-20T09:00:00.000Z'
                end:
                  type: string
                  format: date-time
                  example: '2025-01-20T09:30:00.000Z'
                calendar_id:
                  type: string
                  example: cal_01H9X4M2P5R8T6V0
              required:
              - start
              - end
          description: Busy blocks keyed by agent id. Present only when include_busy=true.
          example:
            agt_01H9X4M2P5R8T6V0:
            - start: '2025-01-20T09:00:00.000Z'
              end: '2025-01-20T09:30:00.000Z'
              calendar_id: cal_01H9X4M2P5R8T6V0
        availability_state:
          type: string
          enum:
          - complete
          - stale
          - partial
          - unavailable
          description: Whether all required Chronary and authorized human-calendar data was current for this result.
        sources:
          type: object
          properties:
            chronary:
              type: string
              enum:
              - current
            external:
              type: string
              enum:
              - current
              - stale
              - partial
              - unavailable
            last_synced_at:
              type:
              - string
              - 'null'
              format: date-time
          required:
          - chronary
          - external
        warnings:
          type: array
          items:
            type: object
            properties:
              code:
                type: string
                enum:
                - availability_incomplete
              message:
                type: string
            required:
            - code
            - message
      required:
      - agents
      - slots
      - availability_state
      - sources
      - warnings
    UpdateAvailabilityRules:
      type: object
      properties:
        buffer_before_minutes:
          type: integer
          minimum: 0
          maximum: 120
          default: 0
        buffer_after_minutes:
          type: integer
          minimum: 0
          maximum: 120
          default: 0
        working_hours:
          type:
          - object
          - 'null'
          properties:
            mon:
              type: object
              properties:
                start:
                  type: string
                  pattern: ^([01]\d|2[0-3]):[0-5]\d$
                end:
                  type: string
                  pattern: ^([01]\d|2[0-3]):[0-5]\d$
              required:
              - start
              - end
            tue:
              type: object
              properties:
                start:
                  type: string
                  pattern: ^([01]\d|2[0-3]):[0-5]\d$
                end:
                  type: string
                  pattern: ^([01]\d|2[0-3]):[0-5]\d$
              required:
              - start
              - end
            wed:
              type: object
              properties:
                start:
                  type: string
                  pattern: ^([01]\d|2[0-3]):[0-5]\d$
                end:
                  type: string
                  pattern: ^([01]\d|2[0-3]):[0-5]\d$
              required:
              - start
              - end
            thu:
              type: object
              properties:
                start:
                  type: string
                  pattern: ^([01]\d|2[0-3]):[0-5]\d$
                end:
                  type: string
                  pattern: ^([01]\d|2[0-3]):[0-5]\d$
              required:
              - start
              - end
            fri:
              type: object
              properties:
                start:
                  type: string
                  pattern: ^([01]\d|2[0-3]):[0-5]\d$
                end:
                  type: string
                  pattern: ^([01]\d|2[0-3]):[0-5]\d$
              required:
              - start
              - end
            sat:
              type: object
              properties:
                start:
                  type: string
                  pattern: ^([01]\d|2[0-3]):[0-5]\d$
                end:
                  type: string
                  pattern: ^([01]\d|2[0-3]):[0-5]\d$
              required:
              - start
              - end
            sun:
              type: object
              properties:
                start:
                  type: string
                  pattern: ^([01]\d|2[0-3]):[0-5]\d$
                end:
                  type: string
                  pattern: ^([01]\d|2[0-3]):[0-5]\d$
              required:
              - start
              - end
          default: null
        timezone:
          type: string
          minLength: 1
          maxLength: 64
          default: UTC
  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