Astrocal Usage API

The Usage API from Astrocal — 2 operation(s) for usage.

Operations 2

GET /v1/usage Get API usage and limits #
GET /v1/usage/summary Get usage summary metrics #

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/astrocal-dev:astrocal-dev-usage-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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

astrocal-dev-usage-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Astrocal Usage API
  version: 1.0.0
  description: Scheduling API for AI agents and developers
servers:
- url: https://api.astrocal.dev
  description: Production
- url: https://api.astrocal.dev
  description: Local development
security:
- BearerAuth: []
tags:
- name: Usage
paths:
  /v1/usage:
    get:
      tags:
      - Usage
      summary: Get API usage and limits
      description: Returns the current plan tier, rate limits, usage counters, and reset times for the authenticated organization.
      responses:
        '200':
          description: Current usage and limits
          content:
            application/json:
              schema:
                type: object
                properties:
                  tier:
                    type: string
                    enum:
                    - free
                    - starter
                    - pro
                    - business
                    - partner
                  limits:
                    type: object
                    properties:
                      api_calls_per_minute:
                        type: number
                      api_calls_per_day:
                        type: number
                      bookings_per_month:
                        type: number
                    required:
                    - api_calls_per_minute
                    - api_calls_per_day
                    - bookings_per_month
                  usage:
                    type: object
                    properties:
                      api_calls_today:
                        type: number
                      api_calls_remaining_daily:
                        type: number
                      bookings_this_month:
                        type: number
                      bookings_remaining_monthly:
                        type: number
                    required:
                    - api_calls_today
                    - api_calls_remaining_daily
                    - bookings_this_month
                    - bookings_remaining_monthly
                  reset_at:
                    type: object
                    properties:
                      daily:
                        type: string
                      monthly:
                        type: string
                    required:
                    - daily
                    - monthly
                required:
                - tier
                - limits
                - usage
                - reset_at
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                      message:
                        type: string
                      details:
                        type: object
                        additionalProperties:
                          nullable: true
                    required:
                    - code
                    - message
                required:
                - error
      operationId: getV1Usage
      x-operation-id-source: derived
  /v1/usage/summary:
    get:
      tags:
      - Usage
      summary: Get usage summary metrics
      description: Returns aggregate usage statistics for the authenticated organization over a specified period. Data is derived from existing tables. API call counts may undercount for periods beyond 48 hours due to the rate limit window cleanup job.
      parameters:
      - schema:
          type: string
          enum:
          - 7d
          - 30d
          default: 30d
        required: false
        name: period
        in: query
      responses:
        '200':
          description: Usage summary for the requested period
          content:
            application/json:
              schema:
                type: object
                properties:
                  period:
                    type: string
                    enum:
                    - 7d
                    - 30d
                  period_start:
                    type: string
                  period_end:
                    type: string
                  api_calls:
                    type: object
                    properties:
                      total:
                        type: number
                    required:
                    - total
                  bookings:
                    type: object
                    properties:
                      total:
                        type: number
                      confirmed:
                        type: number
                      cancelled:
                        type: number
                      pending_payment:
                        type: number
                    required:
                    - total
                    - confirmed
                    - cancelled
                    - pending_payment
                  event_types:
                    type: object
                    properties:
                      total:
                        type: number
                      active:
                        type: number
                    required:
                    - total
                    - active
                  calendar_connections:
                    type: object
                    properties:
                      total:
                        type: number
                      active:
                        type: number
                    required:
                    - total
                    - active
                  webhooks:
                    type: object
                    properties:
                      total_deliveries:
                        type: number
                      successful:
                        type: number
                      failed:
                        type: number
                    required:
                    - total_deliveries
                    - successful
                    - failed
                  onboarding:
                    type: object
                    properties:
                      activated_at:
                        type: string
                        nullable: true
                      booking_link_shared_at:
                        type: string
                        nullable: true
                      availability_confirmed_at:
                        type: string
                        nullable: true
                      checklist_dismissed_at:
                        type: string
                        nullable: true
                      first_booking_celebrated_at:
                        type: string
                        nullable: true
                      activation_booking_id:
                        type: string
                        nullable: true
                      organization_created_at:
                        type: string
                        nullable: true
                    required:
                    - activated_at
                    - booking_link_shared_at
                    - availability_confirmed_at
                    - checklist_dismissed_at
                    - first_booking_celebrated_at
                    - activation_booking_id
                    - organization_created_at
                required:
                - period
                - period_start
                - period_end
                - api_calls
                - bookings
                - event_types
                - calendar_connections
                - webhooks
                - onboarding
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                      message:
                        type: string
                      details:
                        type: object
                        additionalProperties:
                          nullable: true
                    required:
                    - code
                    - message
                required:
                - error
      operationId: getV1UsageSummary
      x-operation-id-source: derived
components:
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: API key authentication. Use your API key as the bearer token.