TubeGrade Auth API

The auth API from TubeGrade, for auth.

GitHub OpenAPI

Operations 8

POST /auth/sign-out Sign Out #
POST /auth/password-sign-in Password Sign In #
GET /auth/session Get Session #
POST /auth/refresh Refresh Session #
PATCH /auth/profile Update Profile #
PATCH /auth/password Update Password #
GET /auth/google/start Google Start #
GET /auth/callback Auth Callback #

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/tubegrade-com:tubegrade-com-auth-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

tubegrade-com-auth-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Fast Auth API
  version: 0.1.0
tags:
- name: Auth
paths:
  /auth/sign-out:
    post:
      tags:
      - Auth
      summary: Sign Out
      operationId: sign_out_auth_sign_out_post
      parameters:
      - name: __Host-auth_token
        in: cookie
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: '  Host-Auth Token'
      - name: auth_token
        in: cookie
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Auth Token
      - name: __Host-session_ref
        in: cookie
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: '  Host-Session Ref'
      - name: session_ref
        in: cookie
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Session Ref
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /auth/password-sign-in:
    post:
      tags:
      - Auth
      summary: Password Sign In
      description: 'Sign a REVIEW account in with email + password (see review_login_emails).

        Any other address gets the same answer as a wrong password, so the page

        can''t be used to find out which emails exist.'
      operationId: password_sign_in_auth_password_sign_in_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PasswordSignInRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /auth/session:
    get:
      tags:
      - Auth
      summary: Get Session
      operationId: get_session_auth_session_get
      parameters:
      - name: __Host-auth_token
        in: cookie
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: '  Host-Auth Token'
      - name: auth_token
        in: cookie
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Auth Token
      - name: __Host-session_ref
        in: cookie
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: '  Host-Session Ref'
      - name: session_ref
        in: cookie
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Session Ref
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /auth/refresh:
    post:
      tags:
      - Auth
      summary: Refresh Session
      description: 'Silent token refresh. Reads the server-side refresh token via an opaque

        session_ref cookie and rotates the stored token after a successful refresh.'
      operationId: refresh_session_auth_refresh_post
      parameters:
      - name: __Host-session_ref
        in: cookie
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: '  Host-Session Ref'
      - name: session_ref
        in: cookie
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Session Ref
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /auth/profile:
    patch:
      tags:
      - Auth
      summary: Update Profile
      operationId: update_profile_auth_profile_patch
      parameters:
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      - name: __Host-auth_token
        in: cookie
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: '  Host-Auth Token'
      - name: auth_token
        in: cookie
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Auth Token
      - name: __Host-session_ref
        in: cookie
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: '  Host-Session Ref'
      - name: session_ref
        in: cookie
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Session Ref
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ProfileUpdateRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /auth/password:
    patch:
      tags:
      - Auth
      summary: Update Password
      operationId: update_password_auth_password_patch
      parameters:
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      - name: __Host-auth_token
        in: cookie
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: '  Host-Auth Token'
      - name: auth_token
        in: cookie
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Auth Token
      - name: __Host-session_ref
        in: cookie
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: '  Host-Session Ref'
      - name: session_ref
        in: cookie
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Session Ref
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PasswordUpdateRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /auth/google/start:
    get:
      tags:
      - Auth
      summary: Google Start
      description: 'Step 1: Redirect user to Supabase''s Google OAuth page.


        We generate a PKCE code_verifier, store it in an HttpOnly cookie,

        and send the code_challenge to Supabase so the callback can exchange

        the auth code securely.


        Optional ?return_to= lets a caller request a non-default frontend

        origin to land on after auth completes (e.g. local dev frontends).

        The value is validated against the strict allowlist; unknown values

        silently fall back to the canonical FRONTEND_ORIGIN.


        Optional ?return_path= brings the user back to the OAuth consent page

        (exact shape only, see _validate_return_path) instead of /dashboard.'
      operationId: google_start_auth_google_start_get
      parameters:
      - name: return_to
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Return To
      - name: return_path
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Return Path
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /auth/callback:
    get:
      tags:
      - Auth
      summary: Auth Callback
      description: 'Step 2: Supabase redirects here after Google auth.


        We exchange the authorization code + PKCE verifier for an access token,

        create a backend-owned refresh session, and redirect the user to the

        frontend with only HttpOnly cookies set in the browser.


        If a return_to cookie was set during /google/start (and is still in

        the allowlist — re-validated here defensively), that origin is used

        as the destination instead of FRONTEND_ORIGIN.'
      operationId: auth_callback_auth_callback_get
      parameters:
      - name: code
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Code
      - name: error
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Error
      - name: error_description
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Error Description
      - name: pkce_verifier
        in: cookie
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Pkce Verifier
      - name: auth_return_to
        in: cookie
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Auth Return To
      - name: auth_return_path
        in: cookie
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Auth Return Path
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ProfileUpdateRequest:
      properties:
        display_name:
          type: string
          title: Display Name
      type: object
      required:
      - display_name
      title: ProfileUpdateRequest
    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
    PasswordUpdateRequest:
      properties:
        password:
          type: string
          title: Password
      type: object
      required:
      - password
      title: PasswordUpdateRequest
    PasswordSignInRequest:
      properties:
        email:
          type: string
          title: Email
        password:
          type: string
          title: Password
      type: object
      required:
      - email
      - password
      title: PasswordSignInRequest