Terminal Use OAuth API

The OAuth API from Terminal Use — 2 operation(s) for oauth.

Operations 2

GET /v1/oauth/initiate Initiate Oauth #
POST /v1/oauth/token Exchange 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/terminal-use-oauth-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

terminal-use-oauth-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Sb0 Agent APIKeys O Auth API
  version: 0.1.0
servers:
- url: https://api.terminaluse.com
  description: Base URL declared by the provider in apis.yml (roadmap#122).
tags:
- name: OAuth
paths:
  /v1/oauth/initiate:
    get:
      description: Generate authorization URL for OAuth authentication.
      operationId: initiate_oauth_v1_oauth_initiate_get
      parameters:
      - description: URI to redirect after authentication
        in: query
        name: redirect_uri
        required: true
        schema:
          description: URI to redirect after authentication
          title: Redirect Uri
          type: string
      - description: PKCE code challenge (S256)
        in: query
        name: code_challenge
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          description: PKCE code challenge (S256)
          title: Code Challenge
      - description: Optional WorkOS connection ID for SSO
        in: query
        name: connection_id
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          description: Optional WorkOS connection ID for SSO
          title: Connection Id
      - description: Organization ID to scope the authentication to
        in: query
        name: organization_id
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          description: Organization ID to scope the authentication to
          title: Organization Id
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OAuthInitiateResponse'
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
      summary: Initiate Oauth
      tags:
      - OAuth
  /v1/oauth/token:
    post:
      description: Exchange authorization code for access token.
      operationId: exchange_token_v1_oauth_token_post
      parameters:
      - description: Authorization code from OAuth callback
        in: query
        name: code
        required: true
        schema:
          description: Authorization code from OAuth callback
          title: Code
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OAuthTokenResponse'
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
      summary: Exchange Token
      tags:
      - OAuth
components:
  schemas:
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
      - loc
      - msg
      - type
      title: ValidationError
      type: object
    OAuthTokenResponse:
      description: Response for token exchange.
      properties:
        access_token:
          description: WorkOS access token
          title: Access Token
          type: string
        expires_in:
          description: Token expiration in seconds
          title: Expires In
          type: integer
        refresh_token:
          anyOf:
          - type: string
          - type: 'null'
          description: Refresh token (if available)
          title: Refresh Token
        token_type:
          default: Bearer
          description: Token type
          title: Token Type
          type: string
      required:
      - access_token
      - expires_in
      title: OAuthTokenResponse
      type: object
    OAuthInitiateResponse:
      description: Response for OAuth initiation.
      properties:
        authorization_url:
          description: URL to redirect user for authentication
          title: Authorization Url
          type: string
        state:
          description: State parameter for CSRF protection
          title: State
          type: string
      required:
      - authorization_url
      - state
      title: OAuthInitiateResponse
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
x-fern-idempotency-headers:
- header: Idempotency-Key
  name: idempotency_key