Mesa Authentication API

Exchange API keys for a session token.

Operations 2

POST /token Create a session token #
POST /partners/{partnerId}/auth Authenticate a partner user #

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/mesa-authentication-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

mesa-authentication-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Mesa Partner Authentication API
  version: '1.0'
  description: REST API for Mesa partners. Exchange your API keys (clientId/clientSecret) for a short-lived Bearer/JWT session token scoped to one of your end users, then retrieve that user's invoices. The minted token also powers the embedded Mesa UI (MesaClient) iframe handshake.
  contact:
    name: Mesa Support
    email: support@joinmesa.com
    url: https://docs.joinmesa.com
  x-apievangelist-generated: true
servers:
- url: https://api.joinmesa.com/v1
  description: Production
tags:
- name: Authentication
  description: Exchange API keys for a session token.
paths:
  /token:
    post:
      operationId: createToken
      summary: Create a session token
      description: Authenticate with your clientId and clientSecret and mint a short-lived JWT scoped to a single end user (vendorId + userId). Call this server-side only; never expose credentials to the browser. The returned token is passed to MesaClient.init() as jwtToken.
      tags:
      - Authentication
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TokenRequest'
      responses:
        '200':
          description: A signed JWT for the requested user session.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TokenResponse'
        '401':
          description: Invalid clientId or clientSecret.
  /partners/{partnerId}/auth:
    post:
      operationId: authenticatePartnerUser
      summary: Authenticate a partner user
      description: Authenticate for a given user using your API Keys. Returns a Bearer token to be used on subsequent Partner API calls, plus session config (theme).
      tags:
      - Authentication
      parameters:
      - name: partnerId
        in: path
        required: true
        description: Your assigned partner id.
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PartnerAuthRequest'
      responses:
        '200':
          description: A Bearer token and session config.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PartnerAuthResponse'
        '401':
          description: Invalid credentials.
components:
  schemas:
    TokenResponse:
      type: object
      properties:
        token:
          type: string
          description: The signed JWT to pass to MesaClient.init() or use as a Bearer token.
    PartnerAuthRequest:
      type: object
      required:
      - clientId
      - clientSecret
      - vendorId
      - userId
      properties:
        clientId:
          type: string
        clientSecret:
          type: string
        vendorId:
          type: string
          description: The vendor id to which this user is associated.
        userId:
          type: string
          description: The user id.
    TokenRequest:
      type: object
      required:
      - clientId
      - clientSecret
      - vendorId
      - userId
      properties:
        clientId:
          type: string
          description: Your API Key clientId.
        clientSecret:
          type: string
          description: Your API Key clientSecret.
        vendorId:
          type: string
          description: The vendor / Mesa product identifier this user is associated with (e.g. early-pay).
        userId:
          type: string
          description: Your authenticated user's id.
    PartnerAuthResponse:
      type: object
      properties:
        token:
          type: string
          description: The Bearer token to be used for subsequent API calls.
        config:
          type: object
          description: Session configuration.
          properties:
            theme:
              type: object
              description: Theme object controlling the embed appearance.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Bearer token returned by /token or /partners/{partnerId}/auth.