0latency-ai Auth API

The auth API from 0latency-ai — 8 operation(s) for auth.

Operations 8

GET /auth/github Github Login #
GET /auth/github/callback Github Callback #
GET /auth/google Google Login #
GET /auth/google/callback Google Callback #
POST /auth/email/register Email Register #
POST /auth/email/login Email Login #
GET /auth/me Get Current User #
POST /auth/api-key/regenerate Regenerate Api Key #

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/0latency-ai:0latency-ai-auth-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

0latency-ai-auth-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: 0latency Ai Auth API
  version: 0.1.0
  description: 'Operations tagged auth across 2 of this provider''s published API definitions: 0latency-ai-openapi.json, app-0latency-ai-openapi.json. Each path carries the servers of the definition it was published in.'
tags:
- name: Auth
paths:
  /auth/github:
    get:
      tags:
      - Auth
      summary: Github Login
      description: Redirect to GitHub OAuth consent screen.
      operationId: github_login_auth_github_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
  /auth/github/callback:
    get:
      tags:
      - Auth
      summary: Github Callback
      description: Handle GitHub OAuth callback.
      operationId: github_callback_auth_github_callback_get
      parameters:
      - name: code
        in: query
        required: true
        schema:
          type: string
          title: Code
      - name: state
        in: query
        required: true
        schema:
          type: string
          title: State
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /auth/google:
    get:
      tags:
      - Auth
      summary: Google Login
      description: Redirect to Google OAuth consent screen.
      operationId: google_login_auth_google_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
  /auth/google/callback:
    get:
      tags:
      - Auth
      summary: Google Callback
      description: Handle Google OAuth callback.
      operationId: google_callback_auth_google_callback_get
      parameters:
      - name: code
        in: query
        required: true
        schema:
          type: string
          title: Code
      - name: state
        in: query
        required: true
        schema:
          type: string
          title: State
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /auth/email/register:
    post:
      tags:
      - Auth
      summary: Email Register
      description: Register with email and password.
      operationId: email_register_auth_email_register_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EmailRegisterRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuthResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /auth/email/login:
    post:
      tags:
      - Auth
      summary: Email Login
      description: Login with email and password.
      operationId: email_login_auth_email_login_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EmailLoginRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuthResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /auth/me:
    get:
      tags:
      - Auth
      summary: Get Current User
      description: Get current user profile from JWT.
      operationId: get_current_user_auth_me_get
      parameters:
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      - name: zl_token
        in: cookie
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Zl Token
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /auth/api-key/regenerate:
    post:
      tags:
      - Auth
      summary: Regenerate Api Key
      description: Regenerate API key for the current user's tenant.
      operationId: regenerate_api_key_auth_api_key_regenerate_post
      parameters:
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      - name: zl_token
        in: cookie
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Zl Token
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    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
    EmailLoginRequest:
      properties:
        email:
          type: string
          maxLength: 320
          minLength: 5
          title: Email
        password:
          type: string
          maxLength: 128
          minLength: 1
          title: Password
      type: object
      required:
      - email
      - password
      title: EmailLoginRequest
    EmailRegisterRequest:
      properties:
        email:
          type: string
          maxLength: 320
          minLength: 5
          title: Email
        password:
          type: string
          maxLength: 128
          minLength: 8
          title: Password
        name:
          anyOf:
          - type: string
            maxLength: 256
          - type: 'null'
          title: Name
      type: object
      required:
      - email
      - password
      title: EmailRegisterRequest
    AuthResponse:
      properties:
        token:
          type: string
          title: Token
        user:
          additionalProperties: true
          type: object
          title: User
        is_new:
          type: boolean
          title: Is New
          default: false
        api_key:
          anyOf:
          - type: string
          - type: 'null'
          title: Api Key
      type: object
      required:
      - token
      - user
      title: AuthResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
x-refined-from:
- 0latency-ai-openapi.json
- app-0latency-ai-openapi.json