Raccha AI OAuth API

OAuth 2.1 authorization-code + PKCE endpoints for browser-based sign-in.

GitHub OpenAPI

Operations 3

GET /authorize Get authorize #
POST /oauth/approve Post oauth approve #
POST /token Post 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/raccha-ai:raccha-ai-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

raccha-ai-oauth-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: raccha.ai OAuth API
  description: 'HTTP API for raccha.ai: passwordless auth, a per-account key/value store, FIFO queues, scoped access keys, Telegram pairing, stateless utility tools, and account stats.


    GENERATED — this file is produced by `cargo run --bin generate-openapi` (bundle-23) directly from the axum route/handler definitions in service/src/{auth,kv,queue,access,telegram,http_tools,stats}.rs via lib.rs''s build_app(). Do not hand-edit it; edit the routes/handlers and regenerate. See sdk/generate.sh, cli/''s generator, and this bundle''s report in .docs/backlog.yaml for the rest of the codegen pipeline this feeds.


    ### Authentication


    Every route except `/auth/request-link` and `/auth/verify` requires a credential, supplied either as `Authorization: Bearer ` or an `owner_key` cookie (set by `/auth/verify`). A request with neither returns 401 `"missing credential"`. A request with a credential that is malformed, unknown, or revoked returns 401 `"invalid credential"` — deliberately indistinguishable, same as a KV slug that exists but belongs to a different account returning the same 404 as a slug that does not exist at all.'
  contact:
    url: https://raccha.ai/legal.html
  version: '1.0'
servers:
- url: https://raccha.ai
  description: Production
- url: /
  description: Same origin as this docs page
tags:
- name: OAuth
  description: OAuth 2.1 authorization-code + PKCE endpoints for browser-based sign-in.
paths:
  /authorize:
    get:
      tags:
      - OAuth
      operationId: getAuthorize
      parameters:
      - in: query
        name: response_type
        required: true
        schema:
          type: string
        style: form
      - in: query
        name: client_id
        required: true
        schema:
          type: string
        style: form
      - in: query
        name: redirect_uri
        required: true
        schema:
          type: string
        style: form
      - in: query
        name: code_challenge
        required: true
        schema:
          type: string
        style: form
      - in: query
        name: code_challenge_method
        schema:
          default: S256
          type: string
        style: form
      - in: query
        name: scope
        schema:
          type:
          - string
          - 'null'
        style: form
      - in: query
        name: state
        schema:
          type:
          - string
          - 'null'
        style: form
      responses:
        '302':
          description: Redirect to dashboard sign-in or OAuth approval page
          headers:
            Location:
              description: Redirect target
              style: simple
              schema:
                type: string
        '400':
          description: Invalid OAuth request
          content:
            application/json:
              schema:
                type: object
                required:
                - error
                properties:
                  error:
                    type: string
      summary: Get authorize
      x-summary-source: derived
  /oauth/approve:
    post:
      tags:
      - OAuth
      operationId: postOauthApprove
      requestBody:
        content:
          application/json:
            schema:
              type: object
              required:
              - account_id
              - code
              properties:
                account_id:
                  type: string
                code:
                  type: string
                device_name:
                  type:
                  - string
                  - 'null'
                state:
                  type:
                  - string
                  - 'null'
        required: true
      responses:
        '302':
          description: Redirect back to the client's redirect_uri with the authorization code
          headers:
            Location:
              description: Redirect target
              style: simple
              schema:
                type: string
        '400':
          description: Invalid or expired authorization code
          content:
            application/json:
              schema:
                type: object
                required:
                - error
                properties:
                  error:
                    type: string
        '401':
          description: Missing or invalid credential
      summary: Post oauth approve
      x-summary-source: derived
  /token:
    post:
      tags:
      - OAuth
      operationId: postToken
      requestBody:
        content:
          application/json:
            schema:
              type: object
              required:
              - grant_type
              properties:
                client_id:
                  type:
                  - string
                  - 'null'
                code:
                  type:
                  - string
                  - 'null'
                code_verifier:
                  type:
                  - string
                  - 'null'
                grant_type:
                  type: string
                redirect_uri:
                  type:
                  - string
                  - 'null'
                refresh_token:
                  type:
                  - string
                  - 'null'
        required: true
      responses:
        '200':
          description: Access and refresh token response
          content:
            application/json:
              schema:
                type: object
                required:
                - access_token
                - expires_in
                - refresh_token
                - scope
                - token_type
                properties:
                  access_token:
                    type: string
                  expires_in:
                    type: integer
                  refresh_token:
                    type: string
                  scope:
                    type: string
                  token_type:
                    type: string
        '400':
          description: Invalid grant or request
          content:
            application/json:
              schema:
                type: object
                required:
                - error
                properties:
                  error:
                    type: string
      summary: Post token
      x-summary-source: derived