CoraPilot OAuth API

The oauth API from CoraPilot — 7 operation(s) for oauth.

GitHub OpenAPI

Operations 7

GET /oauth/providers List Providers #
GET /oauth/{provider}/auth-url Get Auth Url #
GET /oauth/{provider}/authorize Authorize Oauth #
GET /oauth/{provider}/callback Oauth Callback #
GET /oauth/tokens List Oauth Tokens #
DELETE /oauth/tokens/{token_id} Revoke Oauth Token #
PUT /oauth/tokens/{token_id}/preferred Set Preferred 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/corapilot-com:corapilot-com-oauth-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

corapilot-com-oauth-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Corapilot Com OAuth API
  version: 0.1.0
  description: 'Operations tagged oauth across 2 of this provider''s published API definitions: corapilot-com-openapi.json, corapilot-com-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://corapilot.com
  description: Host serving this spec (/openapi.json), its Swagger UI (/docs) and the OAuth-protected MCP resource (https://corapilot.com/mcp per /.well-known/oauth-protected-resource); the published spec carries no servers[].
tags:
- name: OAuth
paths:
  /oauth/providers:
    get:
      tags:
      - OAuth
      summary: List Providers
      description: Return which OAuth providers are configured and available.
      operationId: list_providers_oauth_providers_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
                title: Response List Providers Oauth Providers Get
  /oauth/{provider}/auth-url:
    get:
      tags:
      - OAuth
      summary: Get Auth Url
      description: 'Return the OAuth authorization URL for a provider.

        The frontend redirects the browser to this URL.'
      operationId: get_auth_url_oauth__provider__auth_url_get
      security:
      - HTTPBearer: []
      parameters:
      - name: provider
        in: path
        required: true
        schema:
          type: string
          title: Provider
      - name: scope
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          default: email
          title: Scope
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Get Auth Url Oauth  Provider  Auth Url Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /oauth/{provider}/authorize:
    get:
      tags:
      - OAuth
      summary: Authorize Oauth
      description: Initiate OAuth flow by redirecting the browser directly.
      operationId: authorize_oauth_oauth__provider__authorize_get
      security:
      - HTTPBearer: []
      parameters:
      - name: provider
        in: path
        required: true
        schema:
          type: string
          title: Provider
      - name: scope
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Scope
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /oauth/{provider}/callback:
    get:
      tags:
      - OAuth
      summary: Oauth Callback
      description: Handle the OAuth callback, exchange the code, store tokens.
      operationId: oauth_callback_oauth__provider__callback_get
      parameters:
      - name: provider
        in: path
        required: true
        schema:
          type: string
          title: Provider
      - name: code
        in: query
        required: false
        schema:
          type: string
          title: Code
      - name: state
        in: query
        required: false
        schema:
          type: string
          title: State
      - name: error
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Error
      - name: error_description
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Error Description
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /oauth/tokens:
    get:
      tags:
      - OAuth
      summary: List Oauth Tokens
      description: List all OAuth tokens for the user's account.
      operationId: list_oauth_tokens_oauth_tokens_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
                title: Response List Oauth Tokens Oauth Tokens Get
      security:
      - HTTPBearer: []
  /oauth/tokens/{token_id}:
    delete:
      tags:
      - OAuth
      summary: Revoke Oauth Token
      description: Revoke and delete an OAuth token.
      operationId: revoke_oauth_token_oauth_tokens__token_id__delete
      security:
      - HTTPBearer: []
      parameters:
      - name: token_id
        in: path
        required: true
        schema:
          type: integer
          title: Token Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Revoke Oauth Token Oauth Tokens  Token Id  Delete
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /oauth/tokens/{token_id}/preferred:
    put:
      tags:
      - OAuth
      summary: Set Preferred Token
      description: Mark a token as the preferred one for its provider.
      operationId: set_preferred_token_oauth_tokens__token_id__preferred_put
      security:
      - HTTPBearer: []
      parameters:
      - name: token_id
        in: path
        required: true
        schema:
          type: integer
          title: Token Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Set Preferred Token Oauth Tokens  Token Id  Preferred Put
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer
x-refined-from:
- corapilot-com-openapi.json
- corapilot-com-openapi.yml