Meridian Auth API

The Auth API from Meridian, for auth.

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 23

GET /auth/login Auth Login #
GET /auth/google/login Auth Google Login #
GET /auth/callback Auth Callback #
GET /auth/github/login Auth Github Login #
GET /auth/github/callback Auth Github Callback #
GET /auth/github/repo-connect Auth Github Repo Connect #
GET /auth/github/repo-callback Auth Github Repo Callback #
GET /auth/microsoft/login Auth Microsoft Login #
GET /auth/microsoft/callback Auth Microsoft Callback #
GET /auth/email-required Auth Email Required #
GET /auth/logout Auth Logout #
POST /auth/magic Auth Magic Request #
GET /auth/magic/verify Auth Magic Verify #
GET /auth/hooks-connect Hooks Connect #
GET /auth/hooks-status Hooks Status #
GET /auth/tokens List Api Tokens #
POST /auth/tokens Create Api Token #
DELETE /auth/tokens/{token_id} Delete Api Token #
GET /auth/me Get Me #
GET /auth/install Auth Install Page #
GET /auth/tunnel-connect Tunnel Connect Page #
POST /auth/tunnel-connect Tunnel Connect Authorize #
GET /auth/tunnel-poll Tunnel Connect Poll #

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/usemeridian-us:usemeridian-us-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

usemeridian-us-auth-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Meridian Auth API
  description: Multi-session Claude coordinator MCP server.
  version: 0.1.0
tags:
- name: Auth
paths:
  /auth/login:
    get:
      summary: Auth Login
      description: Serve sign-in page with Google and GitHub OAuth buttons.
      operationId: auth_login_auth_login_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
      tags:
      - Auth
  /auth/google/login:
    get:
      summary: Auth Google Login
      description: Redirect browser directly to Google OAuth consent page.
      operationId: auth_google_login_auth_google_login_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
      tags:
      - Auth
  /auth/callback:
    get:
      summary: Auth Callback
      description: Handle Google OAuth callback — create/update tenant, set session cookie.
      operationId: auth_callback_auth_callback_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
      tags:
      - Auth
  /auth/github/login:
    get:
      summary: Auth Github Login
      description: Redirect browser to GitHub OAuth consent page.
      operationId: auth_github_login_auth_github_login_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
      tags:
      - Auth
  /auth/github/callback:
    get:
      summary: Auth Github Callback
      description: Handle GitHub OAuth callback — create/update tenant, set session cookie.
      operationId: auth_github_callback_auth_github_callback_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
      tags:
      - Auth
  /auth/github/repo-connect:
    get:
      summary: Auth Github Repo Connect
      description: Redirect browser to GitHub OAuth for repo connection.
      operationId: auth_github_repo_connect_auth_github_repo_connect_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
      tags:
      - Auth
  /auth/github/repo-callback:
    get:
      summary: Auth Github Repo Callback
      description: Handle GitHub repo-connect callback and store repo access.
      operationId: auth_github_repo_callback_auth_github_repo_callback_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
      tags:
      - Auth
  /auth/microsoft/login:
    get:
      summary: Auth Microsoft Login
      description: Redirect browser to Microsoft OAuth consent page.
      operationId: auth_microsoft_login_auth_microsoft_login_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
      tags:
      - Auth
  /auth/microsoft/callback:
    get:
      summary: Auth Microsoft Callback
      description: Handle Microsoft OAuth callback — create/update tenant, set session cookie.
      operationId: auth_microsoft_callback_auth_microsoft_callback_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
      tags:
      - Auth
  /auth/email-required:
    get:
      summary: Auth Email Required
      description: Shown when OAuth provider returned no usable email (e.g. GitHub with private email).
      operationId: auth_email_required_auth_email_required_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
      tags:
      - Auth
  /auth/logout:
    get:
      summary: Auth Logout
      description: Clear session cookie and delete DB session.
      operationId: auth_logout_auth_logout_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
      tags:
      - Auth
  /auth/magic:
    post:
      summary: Auth Magic Request
      description: 'v0.9 — request a magic-link email. Rate-limited.


        Body: ``{"email": "user@example.com"}``. Sends a single-use signed

        link via Resend. Idempotent within the 24-hour token window — if a

        valid unused token exists for this email, returns success without

        sending a duplicate email.'
      operationId: auth_magic_request_auth_magic_post
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
      tags:
      - Auth
  /auth/magic/verify:
    get:
      summary: Auth Magic Verify
      description: 'v0.9 — consume a magic-link token, create a session, redirect.


        Single-use: marks ``used_at`` on success so re-clicking the same

        link doesn''t re-authenticate. New tenants flow through the OAuth

        paywall check — redirected to /pricing?signup=1 if no Stripe

        subscription yet.'
      operationId: auth_magic_verify_auth_magic_verify_get
      parameters:
      - name: token
        in: query
        required: false
        schema:
          type: string
          default: ''
          title: Token
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Auth
  /auth/hooks-connect:
    get:
      summary: Hooks Connect
      description: 'Browser endpoint: register THIS machine to the logged-in tenant and show

        the registration_token. Redirects to login when there is no session.'
      operationId: hooks_connect_auth_hooks_connect_get
      parameters:
      - name: hostname
        in: query
        required: false
        schema:
          type: string
          default: ''
          title: Hostname
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                title: Response Hooks Connect Auth Hooks Connect Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Auth
  /auth/hooks-status:
    get:
      summary: Hooks Status
      description: 'Return {registered, token} for the logged-in tenant''s hostname. The token

        is echoed only to the authenticated owner so the installer can finish wiring

        the hook script after the browser connect.'
      operationId: hooks_status_auth_hooks_status_get
      parameters:
      - name: hostname
        in: query
        required: false
        schema:
          type: string
          default: ''
          title: Hostname
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Hooks Status Auth Hooks Status Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Auth
  /auth/tokens:
    get:
      summary: List Api Tokens
      description: List API bearer tokens for the authenticated tenant.
      operationId: list_api_tokens_auth_tokens_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                items:
                  additionalProperties: true
                  type: object
                type: array
                title: Response List Api Tokens Auth Tokens Get
      tags:
      - Auth
    post:
      summary: Create Api Token
      description: 'Generate a new API bearer token for the authenticated tenant.


        Requires a valid session cookie (browser flow) or existing bearer token.

        Returns ``{"token": "sk_meridian_...", "id": "...", "label": "..."}``

        where ``token`` is shown exactly once and never stored in plain text.'
      operationId: create_api_token_auth_tokens_post
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
                title: Response Create Api Token Auth Tokens Post
      tags:
      - Auth
  /auth/tokens/{token_id}:
    delete:
      summary: Delete Api Token
      description: Revoke an API bearer token for the authenticated tenant.
      operationId: delete_api_token_auth_tokens__token_id__delete
      parameters:
      - name: token_id
        in: path
        required: true
        schema:
          type: string
          title: Token Id
      responses:
        '204':
          description: Successful Response
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Auth
  /auth/me:
    get:
      summary: Get Me
      description: Return the authenticated tenant's profile (session cookie or bearer), including projects.
      operationId: get_me_auth_me_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
                title: Response Get Me Auth Me Get
      tags:
      - Auth
  /auth/install:
    get:
      summary: Auth Install Page
      description: One-time install token page — requires browser session, returns a short-lived token.
      operationId: auth_install_page_auth_install_get
      responses:
        '200':
          description: Successful Response
          content:
            text/html:
              schema:
                type: string
      tags:
      - Auth
  /auth/tunnel-connect:
    get:
      summary: Tunnel Connect Page
      description: 'Device-code page for `meridian --tunnel` browser auth.


        If the user has a session cookie, renders an Authorize button.

        If not authenticated, redirects to /auth/login with a next= return URL.'
      operationId: tunnel_connect_page_auth_tunnel_connect_get
      responses:
        '200':
          description: Successful Response
          content:
            text/html:
              schema:
                type: string
      tags:
      - Auth
    post:
      summary: Tunnel Connect Authorize
      description: Complete the device-code flow — create a tunnel token and register it for polling.
      operationId: tunnel_connect_authorize_auth_tunnel_connect_post
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
                title: Response Tunnel Connect Authorize Auth Tunnel Connect Post
      tags:
      - Auth
  /auth/tunnel-poll:
    get:
      summary: Tunnel Connect Poll
      description: 'Poll endpoint for the tunnel device-code flow.


        Returns ``{"status": "pending"}`` until the user clicks Authorize, then

        ``{"status": "complete", "token": "sk_meridian_..."}`` exactly once

        (the device code is consumed on first successful read).'
      operationId: tunnel_connect_poll_auth_tunnel_poll_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
                title: Response Tunnel Connect Poll Auth Tunnel Poll Get
      tags:
      - Auth
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
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError