CorpusIQ Authentication API

OAuth 2.0 authorization code with PKCE, and the device authorization flow for CLI tools and agents.

GitHub OpenAPI

Operations 2

POST /oauth/device/authorize Start the device authorization flow #
POST /oauth/token Exchange a grant for an access 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/corpusiq-io:corpusiq-io-authentication-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

corpusiq-io-authentication-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Corpusiq Io Authentication API
  version: 1.0.0
  contact:
    name: CorpusIQ
    url: https://www.corpusiq.io/developers
    email: info@corpusiq.io
  license:
    name: Proprietary
    identifier: LicenseRef-CorpusIQ-Proprietary
  description: 'Operations tagged Authentication across 2 of this provider''s published API definitions: corpusiq-io-openapi.json, corpusiq-io-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://mcp2.corpusiq.io
  description: Production
tags:
- name: Authentication
  description: OAuth 2.0 authorization code with PKCE, and the device authorization flow for CLI tools and agents.
paths:
  /oauth/device/authorize:
    post:
      tags:
      - Authentication
      summary: Start the device authorization flow
      description: Issues a device code and a short user code. The user approves the grant in a browser at the returned verification URI, and the client then exchanges the device code at the token endpoint. Intended for CLI tools and agents that cannot open a browser themselves.
      operationId: startDeviceAuthorization
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              properties:
                client_id:
                  type: string
                scope:
                  type: string
      responses:
        '200':
          description: Device authorization response.
          content:
            application/json:
              schema:
                type: object
                required:
                - device_code
                - user_code
                - verification_uri
                - expires_in
                - interval
                properties:
                  device_code:
                    type: string
                  user_code:
                    type: string
                  verification_uri:
                    type: string
                    format: uri
                  verification_uri_complete:
                    type: string
                    format: uri
                  expires_in:
                    type: integer
                    description: Lifetime of the device code in seconds.
                  interval:
                    type: integer
                    description: Minimum polling interval in seconds.
    servers:
    - url: https://mcp2.corpusiq.io
      description: Production
  /oauth/token:
    post:
      tags:
      - Authentication
      summary: Exchange a grant for an access token
      description: Accepts authorization_code, urn:ietf:params:oauth:grant-type:device_code, and refresh_token grants. Returns a bearer token to be sent in the Authorization header.
      operationId: exchangeToken
      requestBody:
        required: true
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              required:
              - grant_type
              properties:
                grant_type:
                  type: string
                  enum:
                  - authorization_code
                  - urn:ietf:params:oauth:grant-type:device_code
                  - refresh_token
                code:
                  type: string
                device_code:
                  type: string
                refresh_token:
                  type: string
                client_id:
                  type: string
                code_verifier:
                  type: string
      responses:
        '200':
          description: Token response.
          content:
            application/json:
              schema:
                type: object
                properties:
                  access_token:
                    type: string
                  token_type:
                    type: string
                  expires_in:
                    type: integer
                  refresh_token:
                    type: string
                  scope:
                    type: string
        '400':
          description: Invalid or expired grant.
    servers:
    - url: https://mcp2.corpusiq.io
      description: Production
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: OAuth 2.0 access token obtained through the authorization code flow with PKCE, or the device authorization flow.
externalDocs:
  description: MCP connection, OAuth discovery, and the read-only guarantee
  url: https://www.corpusiq.io/developers
x-refined-from:
- corpusiq-io-openapi.json
- corpusiq-io-openapi.yml