UnoRouter OAuth API

The OAuth API from UnoRouter, for oauth.

GitHub OpenAPI

Operations 16

GET /api/oauth/email/bind Email Bind #
POST /api/oauth/email/bind Email Bind Verified #
POST /api/oauth/email/bind/resend Email Bind Resend #
POST /api/oauth/email/bind/start Email Bind Start #
POST /api/oauth/exchange Exchange O Auth Code #
GET /api/oauth/state Generate O Auth Code Query #
POST /api/oauth/state Generate O Auth Code #
POST /api/oauth/telegram/bind/start Post Api Oauth Telegram Bind Start #
GET /api/oauth/telegram/bind/{flow_token} Get Api Oauth Telegram Bind Flow_token #
GET /api/oauth/telegram/login Telegram Legacy Auth #
GET /api/oauth/wechat We Chat Auth #
POST /api/oauth/wechat/bind We Chat Bind #
GET /api/oauth/{provider} Handle O Auth #
DELETE /api/user/bindings/{binding_type} Self Clear Binding #
GET /api/user/oauth/bindings Get User O Auth Bindings #
DELETE /api/user/oauth/bindings/{provider_id} Unbind Custom O Auth #

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/unorouter-com:unorouter-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

unorouter-com-oauth-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  description: ' '
  title: New OAuth API
  version: 0.0.1
tags:
- name: OAuth
paths:
  /api/oauth/email/bind:
    get:
      operationId: emailBind
      parameters:
      - description: Email address
        in: query
        name: email
        schema:
          type: string
      - description: Verification code
        in: query
        name: code
        schema:
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MessageResponse'
            application/xml:
              schema:
                $ref: '#/components/schemas/MessageResponse'
          description: OK
      security:
      - accessToken: []
        newApiUser: []
      - newApiUser: []
        sessionAuth: []
      summary: Email Bind
      tags:
      - OAuth
    post:
      operationId: emailBindVerified
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiResponse'
            application/xml:
              schema:
                $ref: '#/components/schemas/ApiResponse'
          description: OK
      security:
      - accessToken: []
        newApiUser: []
      - newApiUser: []
        sessionAuth: []
      summary: Email Bind Verified
      tags:
      - OAuth
  /api/oauth/email/bind/resend:
    post:
      operationId: emailBindResend
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiResponse'
            application/xml:
              schema:
                $ref: '#/components/schemas/ApiResponse'
          description: OK
      security:
      - accessToken: []
        newApiUser: []
      - newApiUser: []
        sessionAuth: []
      summary: Email Bind Resend
      tags:
      - OAuth
  /api/oauth/email/bind/start:
    post:
      operationId: emailBindStart
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiResponse'
            application/xml:
              schema:
                $ref: '#/components/schemas/ApiResponse'
          description: OK
      security:
      - accessToken: []
        newApiUser: []
      - newApiUser: []
        sessionAuth: []
      summary: Email Bind Start
      tags:
      - OAuth
  /api/oauth/exchange:
    post:
      operationId: exchangeOAuthCode
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/OAuthExchangeRequest'
        description: Request body for dto.OAuthExchangeRequest
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Response_dto.OAuthExchangeData'
            application/xml:
              schema:
                $ref: '#/components/schemas/Response_dto.OAuthExchangeData'
          description: OK
      security:
      - {}
      summary: Exchange O Auth Code
      tags:
      - OAuth
  /api/oauth/state:
    get:
      operationId: generateOAuthCodeQuery
      parameters:
      - description: Cloudflare Turnstile verification token
        in: query
        name: turnstile
        schema:
          type: string
      - description: OAuth provider name
        in: query
        name: provider
        schema:
          type: string
      - description: 'OAuth flow intent: login, bind or verify'
        in: query
        name: intent
        schema:
          type: string
      - description: Affiliate code
        in: query
        name: aff
        schema:
          type: string
      - description: URL to redirect to after OAuth login (must match allowed origins)
        in: query
        name: redirect_uri
        schema:
          type: string
      - description: Set to 'bind' to link OAuth provider to existing account (requires Authorization header)
        in: query
        name: action
        schema:
          type: string
      - description: 'Declared customer type for an account created by this login: consumer or business'
        in: query
        name: customer_type
        schema:
          type: string
      - description: Step-up scope a verify intent proves (requires Authorization header)
        in: query
        name: scope
        schema:
          type: string
      - description: JSON object with the step-up context, for scopes that bind one
        in: query
        name: context
        schema:
          type: string
      - description: Terms of use version the signup page showed (YYYY-MM-DD), recorded as accepted on an account this login creates
        in: query
        name: terms_version
        schema:
          type: string
      - description: Locale of the terms notice shown
        in: query
        name: terms_locale
        schema:
          type: string
      - description: The terms notice exactly as shown
        in: query
        name: terms_text
        schema:
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Response_string'
            application/xml:
              schema:
                $ref: '#/components/schemas/Response_string'
          description: OK
      security:
      - {}
      summary: Generate O Auth Code Query
      tags:
      - OAuth
    post:
      operationId: generateOAuthCode
      parameters:
      - description: Cloudflare Turnstile verification token
        in: query
        name: turnstile
        schema:
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiResponse'
            application/xml:
              schema:
                $ref: '#/components/schemas/ApiResponse'
          description: OK
      security:
      - {}
      summary: Generate O Auth Code
      tags:
      - OAuth
  /api/oauth/telegram/bind/start:
    post:
      operationId: postApiOauthTelegramBindStart
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiResponse'
            application/xml:
              schema:
                $ref: '#/components/schemas/ApiResponse'
          description: OK
      security:
      - accessToken: []
        newApiUser: []
      - newApiUser: []
        sessionAuth: []
      summary: Post Api Oauth Telegram Bind Start
      tags:
      - OAuth
  /api/oauth/telegram/bind/{flow_token}:
    get:
      operationId: getApiOauthTelegramBindFlow_token
      parameters:
      - description: Telegram bind flow token
        in: path
        name: flow_token
        required: true
        schema:
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiResponse'
            application/xml:
              schema:
                $ref: '#/components/schemas/ApiResponse'
          description: OK
      security:
      - {}
      summary: Get Api Oauth Telegram Bind Flow_token
      tags:
      - OAuth
  /api/oauth/telegram/login:
    get:
      operationId: telegramLegacyAuth
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiResponse'
            application/xml:
              schema:
                $ref: '#/components/schemas/ApiResponse'
          description: OK
      security:
      - {}
      summary: Telegram Legacy Auth
      tags:
      - OAuth
  /api/oauth/wechat:
    get:
      operationId: weChatAuth
      parameters:
      - description: WeChat auth code
        in: query
        name: code
        schema:
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiResponse'
            application/xml:
              schema:
                $ref: '#/components/schemas/ApiResponse'
          description: OK
      security:
      - {}
      summary: We Chat Auth
      tags:
      - OAuth
  /api/oauth/wechat/bind:
    post:
      operationId: weChatBind
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiResponse'
            application/xml:
              schema:
                $ref: '#/components/schemas/ApiResponse'
          description: OK
      security:
      - accessToken: []
        newApiUser: []
      - newApiUser: []
        sessionAuth: []
      summary: We Chat Bind
      tags:
      - OAuth
  /api/oauth/{provider}:
    get:
      operationId: handleOAuth
      parameters:
      - description: OAuth provider name
        in: path
        name: provider
        required: true
        schema:
          type: string
      - description: OAuth state
        in: query
        name: state
        schema:
          type: string
      - description: OAuth authorization code
        in: query
        name: code
        schema:
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiResponse'
            application/xml:
              schema:
                $ref: '#/components/schemas/ApiResponse'
          description: OK
      security:
      - {}
      summary: Handle O Auth
      tags:
      - OAuth
  /api/user/bindings/{binding_type}:
    delete:
      operationId: selfClearBinding
      parameters:
      - description: Binding type (github, discord, google, oidc, wechat, telegram, linuxdo)
        in: path
        name: binding_type
        required: true
        schema:
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MessageResponse'
            application/xml:
              schema:
                $ref: '#/components/schemas/MessageResponse'
          description: OK
      security:
      - accessToken: []
        newApiUser: []
      - newApiUser: []
        sessionAuth: []
      summary: Self Clear Binding
      tags:
      - OAuth
  /api/user/oauth/bindings:
    get:
      operationId: getUserOAuthBindings
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Response_Array-dto.UserOAuthBindingResponse'
            application/xml:
              schema:
                $ref: '#/components/schemas/Response_Array-dto.UserOAuthBindingResponse'
          description: OK
      security:
      - accessToken: []
        newApiUser: []
      - newApiUser: []
        sessionAuth: []
      summary: Get User O Auth Bindings
      tags:
      - OAuth
  /api/user/oauth/bindings/{provider_id}:
    delete:
      operationId: unbindCustomOAuth
      parameters:
      - description: OAuth provider ID
        in: path
        name: provider_id
        required: true
        schema:
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiResponse'
            application/xml:
              schema:
                $ref: '#/components/schemas/ApiResponse'
          description: OK
      security:
      - accessToken: []
        newApiUser: []
      - newApiUser: []
        sessionAuth: []
      summary: Unbind Custom O Auth
      tags:
      - OAuth
components:
  schemas:
    ApiResponse:
      properties:
        data: {}
        message:
          type: string
        object:
          type: string
        success:
          type: boolean
      required:
      - message
      - success
      type: object
    OAuthExchangeData:
      properties:
        access_expires_at:
          format: int64
          type: integer
        access_token:
          type: string
        action:
          type: string
        display_name:
          type: string
        flow_token:
          type: string
        methods:
          type: 'null'
        proof_expires_at:
          format: int64
          type: integer
        proof_token:
          type: string
        role:
          type: integer
        scope:
          type: string
        state:
          type: string
        user_id:
          type: integer
        username:
          type: string
      required:
      - access_token
      - display_name
      - role
      - user_id
      - username
      type: object
    Response_string:
      description: Response_string schema
      properties:
        data:
          type: string
        message:
          type: string
        success:
          type: boolean
      required:
      - data
      - message
      - success
      type: object
    OAuthExchangeRequest:
      description: OAuthExchangeRequest schema
      properties:
        code:
          description: One-time authorization code from OAuth redirect
          type: string
      required:
      - code
      type: object
    UserOAuthBindingResponse:
      properties:
        provider_icon:
          type: string
        provider_id:
          type: integer
        provider_name:
          type: string
        provider_slug:
          type: string
        provider_user_id:
          type: string
      required:
      - provider_icon
      - provider_id
      - provider_name
      - provider_slug
      - provider_user_id
      type: object
    Response_dto.OAuthExchangeData:
      description: Response_dto.OAuthExchangeData schema
      properties:
        data:
          $ref: '#/components/schemas/OAuthExchangeData'
        message:
          type: string
        success:
          type: boolean
      required:
      - data
      - message
      - success
      type: object
    MessageResponse:
      properties:
        message:
          type: string
        success:
          type: boolean
      required:
      - message
      - success
      type: object
    Response_Array-dto.UserOAuthBindingResponse:
      description: Response_Array-dto.UserOAuthBindingResponse schema
      properties:
        data:
          items:
            $ref: '#/components/schemas/UserOAuthBindingResponse'
          type:
          - array
          - 'null'
        message:
          type: string
        success:
          type: boolean
      required:
      - data
      - message
      - success
      type: object
  securitySchemes:
    accessToken:
      description: System access token for dashboard API routes. Must be paired with New-Api-User header.
      in: header
      name: Authorization
      type: apiKey
    anthropicApiKey:
      description: Anthropic-style API key. Used by /v1/messages and /v1/models.
      in: header
      name: x-api-key
      type: apiKey
    bearerAuth:
      description: API token (sk-...). Used by relay routes (/v1/*) and token-based query endpoints.
      scheme: bearer
      type: http
    newApiUser:
      description: User ID header. Required together with the access token or session cookie for dashboard API routes.
      in: header
      name: New-Api-User
      type: apiKey
    sessionAuth:
      description: Session cookie from /api/user/login. Used by dashboard routes as an alternative to access token.
      in: cookie
      name: session
      type: apiKey