xhostd OAuth API

The Oauth API from xhostd — 6 operation(s) for oauth.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 7

POST /oauth/register Register #
GET /oauth/authorize Authorize Get #
POST /oauth/authorize Authorize Post #
POST /oauth/token Token Endpoint #
POST /oauth/revoke Revoke #
POST /oauth/consent/events Consent Events #

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

xhostd-com-oauth-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: xhostd public OAuth API
  version: 0.1.0
tags:
- name: OAuth
paths:
  /oauth/register:
    post:
      summary: Register
      operationId: register_oauth_register_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/xhostd__routes__oauth__RegisterRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RegisterResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - OAuth
  /oauth/authorize:
    get:
      summary: Authorize Get
      operationId: authorize_get_oauth_authorize_get
      parameters:
      - name: response_type
        in: query
        required: false
        schema:
          type: string
          default: ''
          title: Response Type
      - name: client_id
        in: query
        required: false
        schema:
          type: string
          default: ''
          title: Client Id
      - name: redirect_uri
        in: query
        required: false
        schema:
          type: string
          default: ''
          title: Redirect Uri
      - name: code_challenge
        in: query
        required: false
        schema:
          type: string
          default: ''
          title: Code Challenge
      - name: code_challenge_method
        in: query
        required: false
        schema:
          type: string
          default: ''
          title: Code Challenge Method
      - name: state
        in: query
        required: false
        schema:
          type: string
          default: ''
          title: State
      - name: scope
        in: query
        required: false
        schema:
          type: string
          default: ''
          title: Scope
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - OAuth
    post:
      summary: Authorize Post
      operationId: authorize_post_oauth_authorize_post
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/Body_authorize_post_oauth_authorize_post'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - OAuth
  /oauth/token:
    post:
      summary: Token Endpoint
      operationId: token_endpoint_oauth_token_post
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/Body_token_endpoint_oauth_token_post'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - OAuth
  /oauth/revoke:
    post:
      summary: Revoke
      operationId: revoke_oauth_revoke_post
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/Body_revoke_oauth_revoke_post'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - OAuth
  /oauth/consent.js:
    get:
      summary: Consent Script
      description: The consent page's one script, never cached, so a deploy reaches the next page.
      operationId: consent_script_oauth_consent_js_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
      tags:
      - OAuth
  /oauth/consent/events:
    post:
      summary: Consent Events
      description: 'Store what the consent page script reports (design/CONNECT-ONBOARDING.md).


        The session cookie must carry ``console:session``, as on the consent

        page itself. The request must come from a page of this host

        (``src/xhostd/routes/oauth.py::posted_from_issuer``).

        The view must belong to the session user and be younger than an

        hour. A refusal answers with a bare status and logs one line.'
      operationId: consent_events_oauth_consent_events_post
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
      tags:
      - OAuth
components:
  schemas:
    RegisterResponse:
      properties:
        client_id:
          type: string
          title: Client Id
        client_name:
          anyOf:
          - type: string
          - type: 'null'
          title: Client Name
        redirect_uris:
          items:
            type: string
          type: array
          title: Redirect Uris
        token_endpoint_auth_method:
          type: string
          title: Token Endpoint Auth Method
          default: none
        grant_types:
          items:
            type: string
          type: array
          title: Grant Types
          default:
          - authorization_code
          - refresh_token
        response_types:
          items:
            type: string
          type: array
          title: Response Types
          default:
          - code
      type: object
      required:
      - client_id
      - client_name
      - redirect_uris
      title: RegisterResponse
    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
    Body_authorize_post_oauth_authorize_post:
      properties:
        client_id:
          type: string
          title: Client Id
          default: ''
        redirect_uri:
          type: string
          title: Redirect Uri
          default: ''
        code_challenge:
          type: string
          title: Code Challenge
          default: ''
        code_challenge_method:
          type: string
          title: Code Challenge Method
          default: ''
        state:
          type: string
          title: State
          default: ''
        scope:
          type: string
          title: Scope
          default: ''
        action:
          type: string
          title: Action
          default: ''
        view_id:
          type: string
          title: View Id
          default: ''
        answer:
          type: string
          title: Answer
          default: ''
      type: object
      title: Body_authorize_post_oauth_authorize_post
    Body_revoke_oauth_revoke_post:
      properties:
        token:
          type: string
          title: Token
          default: ''
        token_type_hint:
          type: string
          title: Token Type Hint
          default: ''
      type: object
      title: Body_revoke_oauth_revoke_post
    xhostd__routes__oauth__RegisterRequest:
      properties:
        redirect_uris:
          items:
            type: string
          type: array
          title: Redirect Uris
        client_name:
          anyOf:
          - type: string
          - type: 'null'
          title: Client Name
      type: object
      required:
      - redirect_uris
      title: RegisterRequest
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    Body_token_endpoint_oauth_token_post:
      properties:
        grant_type:
          type: string
          title: Grant Type
          default: ''
        code:
          type: string
          title: Code
          default: ''
        redirect_uri:
          type: string
          title: Redirect Uri
          default: ''
        client_id:
          type: string
          title: Client Id
          default: ''
        code_verifier:
          type: string
          title: Code Verifier
          default: ''
        refresh_token:
          type: string
          title: Refresh Token
          default: ''
      type: object
      title: Body_token_endpoint_oauth_token_post