OpenShorts Auth API

The Auth API from OpenShorts — 8 operation(s) for auth.

GitHub OpenAPI

Operations 8

POST /api/auth/magic-link Request Magic Link #
POST /api/auth/magic-link/verify Verify Magic Link #
POST /api/auth/exchange Exchange Login Code #
POST /api/auth/login-method Login Method #
POST /api/auth/review-login Review Login #
POST /api/auth/attribution Record Attribution #
GET /api/auth/google Google Login #
GET /api/auth/google/callback Google 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/openshorts-app:openshorts-app-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

openshorts-app-auth-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Fast Auth API
  version: 0.1.0
tags:
- name: Auth
paths:
  /api/auth/magic-link:
    post:
      summary: Request Magic Link
      operationId: request_magic_link_api_auth_magic_link_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MagicLinkRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Auth
  /api/auth/magic-link/verify:
    post:
      summary: Verify Magic Link
      operationId: verify_magic_link_api_auth_magic_link_verify_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MagicVerifyRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Auth
  /api/auth/exchange:
    post:
      summary: Exchange Login Code
      description: 'Trade the Google callback''s code for a session JWT. Needs the verifier

        the dashboard kept in this browser''s sessionStorage when it started the

        sign-in, so a code someone else obtained cannot sign this browser in.'
      operationId: exchange_login_code_api_auth_exchange_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/LoginExchangeRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Auth
  /api/auth/login-method:
    post:
      summary: Login Method
      description: 'Tell the sign-in form, as the email is typed, whether it signs in with a

        password. Only the review account does; everyone else gets the magic link.

        Reviewers are handed a username and a password, so the password field has

        to be on screen before they press anything that reads "email me a link".'
      operationId: login_method_api_auth_login_method_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/LoginMethodRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Auth
  /api/auth/review-login:
    post:
      summary: Review Login
      description: 'Password sign-in for the single account named by REVIEW_LOGIN_EMAIL.


        Directory reviewers test the OAuth connection from their own browser and

        cannot open a magic link sent to our test inbox. Only that existing account

        can sign in this way, and only while both env vars are set.'
      operationId: review_login_api_auth_review_login_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ReviewLoginRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Auth
  /api/auth/attribution:
    post:
      summary: Record Attribution
      description: 'Record where a brand-new account came from. First touch wins.


        Fire-and-forget from the client right after sign-in: it never fails the

        sign-up, it just returns ``recorded: false`` when the row already exists or

        the account is too old to be a genuine sign-up.'
      operationId: record_attribution_api_auth_attribution_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AttributionPayload'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Auth
  /api/auth/google:
    get:
      summary: Google Login
      operationId: google_login_api_auth_google_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
      tags:
      - Auth
  /api/auth/google/callback:
    get:
      summary: Google Callback
      operationId: google_callback_api_auth_google_callback_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
      tags:
      - Auth
components:
  schemas:
    AttributionPayload:
      properties:
        referrer:
          anyOf:
          - type: string
          - type: 'null'
          title: Referrer
        landing_path:
          anyOf:
          - type: string
          - type: 'null'
          title: Landing Path
        utm_source:
          anyOf:
          - type: string
          - type: 'null'
          title: Utm Source
        utm_medium:
          anyOf:
          - type: string
          - type: 'null'
          title: Utm Medium
        utm_campaign:
          anyOf:
          - type: string
          - type: 'null'
          title: Utm Campaign
      type: object
      title: AttributionPayload
    MagicVerifyRequest:
      properties:
        token:
          type: string
          title: Token
      type: object
      required:
      - token
      title: MagicVerifyRequest
    LoginMethodRequest:
      properties:
        email:
          type: string
          format: email
          title: Email
      type: object
      required:
      - email
      title: LoginMethodRequest
    ReviewLoginRequest:
      properties:
        email:
          type: string
          format: email
          title: Email
        password:
          type: string
          title: Password
      type: object
      required:
      - email
      - password
      title: ReviewLoginRequest
    LoginExchangeRequest:
      properties:
        code:
          type: string
          title: Code
        verifier:
          type: string
          title: Verifier
      type: object
      required:
      - code
      - verifier
      title: LoginExchangeRequest
    MagicLinkRequest:
      properties:
        email:
          type: string
          format: email
          title: Email
      type: object
      required:
      - email
      title: MagicLinkRequest
    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
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError