Cal.com O Auth2 API

The OAuth2 API from Cal.com — 2 operation(s) for oauth2.

GitHub OpenAPI

Operations 2

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /v2/auth/oauth2/clients/{clientId} Get an OAuth2 client · Get OAuth2 client #
Ask an LLM
“What redirect URIs and scopes does an OAuth2 client have?”
“Can I look up an OAuth2 client by its client ID?”
Tell an agent
Get OAuth2 client {clientId}.
Show the redirect URIs and scopes for OAuth2 client {clientId}.
POST /v2/auth/oauth2/token Exchange an auth code or refresh token for tokens · Exchange authorization code or refresh token for tokens #
Ask an LLM
“How do I turn an authorization code into access and refresh tokens?”
“Can I refresh an access token with a refresh token?”
Tell an agent
Exchange the authorization code for tokens.
Refresh my access token using the refresh token.

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/cal-com:cal-com-oauth2-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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

cal-com-oauth2-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Cal.com API v2 O Auth2 API
  description: ''
  version: 1.0.0
  contact: {}
servers: []
tags:
- name: OAuth2
paths:
  /v2/auth/oauth2/clients/{clientId}:
    get:
      description: Returns the OAuth2 client information for the given client ID
      operationId: OAuth2Controller_getClient
      parameters:
      - name: clientId
        required: true
        in: path
        schema:
          type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OAuth2ClientResponseDto'
      summary: Get OAuth2 client
      tags:
      - OAuth2
  /v2/auth/oauth2/token:
    post:
      description: RFC 6749-compliant token endpoint. Pass client_id in the request body (Section 2.3.1). Use grant_type 'authorization_code' to exchange an auth code for tokens, or 'refresh_token' to refresh an access token. Accepts both application/x-www-form-urlencoded (standard per RFC 6749 Section 4.1.3) and application/json content types.
      operationId: OAuth2Controller_token
      parameters: []
      requestBody:
        required: true
        description: Token request body. client_id is required. Accepts application/x-www-form-urlencoded (RFC 6749 standard) or application/json. Use grant_type 'authorization_code' with client_secret (confidential) or code_verifier (public/PKCE), or grant_type 'refresh_token' with client_secret (confidential) or just the refresh_token (public).
        content:
          application/json:
            schema:
              oneOf:
              - title: Exchange - Confidential Client
                $ref: '#/components/schemas/OAuth2ExchangeConfidentialInput'
              - title: Exchange - Public Client
                $ref: '#/components/schemas/OAuth2ExchangePublicInput'
              - title: Refresh - Confidential Client
                $ref: '#/components/schemas/OAuth2RefreshConfidentialInput'
              - title: Refresh - Public Client
                $ref: '#/components/schemas/OAuth2RefreshPublicInput'
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OAuth2TokensDto'
      summary: Exchange authorization code or refresh token for tokens
      tags:
      - OAuth2
components:
  schemas:
    OAuth2RefreshConfidentialInput:
      type: object
      properties:
        client_id:
          type: string
          description: The client identifier
          example: my-client-id
        grant_type:
          type: string
          description: The grant type — must be 'refresh_token'
          example: refresh_token
          enum:
          - refresh_token
        refresh_token:
          type: string
          description: The refresh token
          example: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...
        client_secret:
          type: string
          description: The client secret for confidential clients
      required:
      - client_id
      - grant_type
      - refresh_token
      - client_secret
    OAuth2ExchangePublicInput:
      type: object
      properties:
        client_id:
          type: string
          description: The client identifier
          example: my-client-id
        grant_type:
          type: string
          description: The grant type — must be 'authorization_code'
          example: authorization_code
          enum:
          - authorization_code
        code:
          type: string
          description: The authorization code received from the authorize endpoint
          example: abc123
        redirect_uri:
          type: string
          description: The redirect URI used in the authorization request
          example: https://example.com/callback
        code_verifier:
          type: string
          description: PKCE code verifier (required for public clients that used code_challenge)
      required:
      - client_id
      - grant_type
      - code
      - redirect_uri
      - code_verifier
    OAuth2ExchangeConfidentialInput:
      type: object
      properties:
        client_id:
          type: string
          description: The client identifier
          example: my-client-id
        grant_type:
          type: string
          description: The grant type — must be 'authorization_code'
          example: authorization_code
          enum:
          - authorization_code
        code:
          type: string
          description: The authorization code received from the authorize endpoint
          example: abc123
        redirect_uri:
          type: string
          description: The redirect URI used in the authorization request
          example: https://example.com/callback
        client_secret:
          type: string
          description: The client secret for confidential clients
      required:
      - client_id
      - grant_type
      - code
      - redirect_uri
      - client_secret
    OAuth2TokensDto:
      type: object
      properties:
        access_token:
          type: string
          description: The access token
          example: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...
        token_type:
          type: string
          description: The token type
          example: bearer
        refresh_token:
          type: string
          description: The refresh token
          example: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...
        expires_in:
          type: number
          description: The number of seconds until the access token expires
          example: 1800
        scope:
          type: string
          description: The granted scopes (space-delimited per RFC 6749)
          example: BOOKING_READ BOOKING_WRITE
      required:
      - access_token
      - token_type
      - refresh_token
      - expires_in
      - scope
    OAuth2RefreshPublicInput:
      type: object
      properties:
        client_id:
          type: string
          description: The client identifier
          example: my-client-id
        grant_type:
          type: string
          description: The grant type — must be 'refresh_token'
          example: refresh_token
          enum:
          - refresh_token
        refresh_token:
          type: string
          description: The refresh token
          example: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...
      required:
      - client_id
      - grant_type
      - refresh_token
    OAuth2ClientDto:
      type: object
      properties:
        client_id:
          type: string
          description: The OAuth client ID
          example: clxxxxxxxxxxxxxxxx
        redirect_uris:
          description: The redirect URIs for the OAuth client
          example:
          - https://example.com/callback
          type: array
          items:
            type: string
        name:
          type: string
          description: The name of the OAuth client
          example: My App
        logo:
          type:
          - string
          - 'null'
          description: The logo URL of the OAuth client
        is_trusted:
          type: boolean
          description: Whether the OAuth client is trusted
          example: false
        client_type:
          enum:
          - CONFIDENTIAL
          - PUBLIC
          type: string
          description: The type of OAuth client (CONFIDENTIAL or PUBLIC)
          example: CONFIDENTIAL
      required:
      - client_id
      - redirect_uris
      - name
      - is_trusted
      - client_type
    OAuth2ClientResponseDto:
      type: object
      properties:
        status:
          enum:
          - success
          - error
          type: string
          example: success
        data:
          $ref: '#/components/schemas/OAuth2ClientDto'
      required:
      - status
      - data
x-provenance:
  method: harvested
  publisher: Cal.com
  source: https://cal.com/docs/api-reference/v2/openapi.json
  note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
    stamped by stamp-openapi-provenance.py (roadmap#793)