Passport.Me Session API

Session-cookie endpoints for the dashboard at my.passport.me.

GitHub OpenAPI

Operations 17

GET /api/passport/status Current session + connection state #
GET /api/passport/apps List apps the user has connected (OAuth/MCP/CLI) #
POST /api/passport/apps/revoke Revoke a connected app #
POST /api/passport/mcp/regenerate Rotate the user's MCP bearer token #
GET /api/passport/memories List the user's curated AI memories #
POST /api/passport/memories/save Create a new AI memory #
POST /api/passport/memories/pin Pin or unpin a memory to the top of the list #
GET /api/passport/chat/providers List AI providers available for Ask #
GET /api/passport/mdt/balance MDT balance + tier + bonus credits #
GET /api/passport/bonus/summary Per-user bonus credit summary #
GET /api/passport/account/export Export the user's full data bundle (GDPR) #
GET /api/passport/account/activity List recent activity events (audit trail) #
POST /api/passport/account/delete Delete the user's account (GDPR/CCPA/LGPD) #
POST /api/passport/signout Soft sign-out (clears session cookie, keeps Google tokens) #
POST /api/passport/disconnect Revoke Google OAuth + clear stored tokens #
POST /api/passport/wallet/nonce Issue a wallet verification nonce (SIWE) #
POST /api/passport/wallet/verify Verify a SIWE signature and attach the wallet #

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/passport-me:passport-me-session-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

passport-me-session-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Passport.Me Session API
  version: 1.1.0
  summary: Identity-backed data bridge — Gmail, Calendar, Drive, Docs, Sheets, Contacts, wallet activity, and portable AI memories as MCP tools.
  description: 'Passport.Me exposes three authentication surfaces:


    1. **Public discovery endpoints** — no auth. Landing, icons, bonus, health, catalog, metrics beacon.

    2. **Session-cookie endpoints** — browser dashboard at `my.passport.me`. Set-Cookie after Google OAuth / wallet connect.

    3. **OAuth 2.1 endpoints** — remote agents (Claude, ChatGPT, Cursor) register via DCR at `/register`, then authorize against `/oauth/authorize` for the `passport.mcp` scope. Present the access token as `Authorization: Bearer` against `https://mcp.passport.me`.


    Full discovery via `/.well-known/api-catalog`. OAuth metadata at `/.well-known/oauth-authorization-server`.'
  contact:
    name: Passport.Me
    url: https://passport.me
    email: support@passport.me
  license:
    name: Terms of Service
    url: https://passport.me/terms
servers:
- url: https://passport.me
  description: Passport.Me public API + dashboard surface
- url: https://mcp.passport.me/mcp
  description: MCP streamable HTTP endpoint (OAuth-gated)
tags:
- name: Session
  description: Session-cookie endpoints for the dashboard at my.passport.me.
paths:
  /api/passport/status:
    get:
      operationId: getStatus
      tags:
      - Session
      summary: Current session + connection state
      description: Returns the authed user's Google connection, wallet, connected apps, bonus summary, and admin flag. Primary hydration endpoint for the account dashboard.
      security:
      - passportSession: []
      responses:
        '200':
          description: Status payload
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Status'
  /api/passport/apps:
    get:
      operationId: listConnectedApps
      tags:
      - Session
      summary: List apps the user has connected (OAuth/MCP/CLI)
      security:
      - passportSession: []
      responses:
        '200':
          description: Connected apps
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
        '401':
          description: Missing or invalid session cookie.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
  /api/passport/apps/revoke:
    post:
      operationId: revokeConnectedApp
      tags:
      - Session
      summary: Revoke a connected app
      security:
      - passportSession: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - appKey
              properties:
                appKey:
                  type: string
                authMode:
                  type: string
                  enum:
                  - oauth
                  - mcp
                  - cli
      responses:
        '200':
          description: Revoked
        '400':
          description: Invalid request payload.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing or invalid session cookie.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Forbidden (CSRF / origin mismatch / rate-limited).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '405':
          description: Method not allowed.
  /api/passport/mcp/regenerate:
    post:
      operationId: regenerateMcpToken
      tags:
      - Session
      summary: Rotate the user's MCP bearer token
      security:
      - passportSession: []
      responses:
        '200':
          description: New token issued
        '401':
          description: Missing or invalid session cookie.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '405':
          description: Method not allowed.
  /api/passport/memories:
    get:
      operationId: listMemories
      tags:
      - Session
      summary: List the user's curated AI memories
      security:
      - passportSession: []
      responses:
        '200':
          description: Memories list
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
        '401':
          description: Missing or invalid session cookie.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
  /api/passport/memories/save:
    post:
      operationId: saveMemory
      tags:
      - Session
      summary: Create a new AI memory
      security:
      - passportSession: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - content
              properties:
                content:
                  type: string
                  maxLength: 4000
                sourceProvider:
                  type: string
                label:
                  type: string
                  maxLength: 200
      responses:
        '200':
          description: Saved
        '400':
          description: Invalid request payload.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing or invalid session cookie.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Forbidden (CSRF / origin mismatch / rate-limited).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '405':
          description: Method not allowed.
        '429':
          description: Rate-limited.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
  /api/passport/memories/pin:
    post:
      operationId: pinMemory
      tags:
      - Session
      summary: Pin or unpin a memory to the top of the list
      security:
      - passportSession: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - id
              - pinned
              properties:
                id:
                  type: string
                pinned:
                  type: boolean
      responses:
        '200':
          description: Updated
        '400':
          description: Invalid request payload.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing or invalid session cookie.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '405':
          description: Method not allowed.
  /api/passport/chat/providers:
    get:
      operationId: listChatProviders
      tags:
      - Session
      summary: List AI providers available for Ask
      description: Returns the single supported provider (OpenAI) with `platformKeyAvailable` and `model`. Still an array for backwards compatibility; the dashboard reads it for the model label and credits.
      security:
      - passportSession: []
      responses:
        '200':
          description: Provider list
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
        '401':
          description: Missing or invalid session cookie.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
  /api/passport/mdt/balance:
    get:
      operationId: getMdtBalance
      tags:
      - Session
      summary: MDT balance + tier + bonus credits
      security:
      - passportSession: []
      responses:
        '200':
          description: Balance
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
  /api/passport/bonus/summary:
    get:
      operationId: getBonusSummary
      tags:
      - Session
      summary: Per-user bonus credit summary
      security:
      - passportSession: []
      responses:
        '200':
          description: Bonus summary
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
  /api/passport/account/export:
    get:
      operationId: exportAccountData
      tags:
      - Session
      summary: Export the user's full data bundle (GDPR)
      description: Downloads a JSON bundle of every user-scoped row (connections, wallets, events, memories, OAuth grants). Rate-limited to 3 / 10 min / account.
      security:
      - passportSession: []
      responses:
        '200':
          description: JSON attachment with Content-Disposition
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
        '401':
          description: Missing or invalid session cookie.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate-limited.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
  /api/passport/account/activity:
    get:
      operationId: getAccountActivity
      tags:
      - Session
      summary: List recent activity events (audit trail)
      security:
      - passportSession: []
      parameters:
      - name: limit
        in: query
        schema:
          type: integer
          minimum: 1
          maximum: 200
          default: 50
      - name: cursor
        in: query
        schema:
          type: string
      responses:
        '200':
          description: Event feed
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
        '401':
          description: Missing or invalid session cookie.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
  /api/passport/account/delete:
    post:
      operationId: deleteAccount
      tags:
      - Session
      summary: Delete the user's account (GDPR/CCPA/LGPD)
      description: Requires `confirmEmail` body field to match the connected Google email.
      security:
      - passportSession: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - confirmEmail
              properties:
                confirmEmail:
                  type: string
                  format: email
      responses:
        '200':
          description: Deleted
        '400':
          description: Invalid request payload.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing or invalid session cookie.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Forbidden (CSRF / origin mismatch / rate-limited).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '405':
          description: Method not allowed.
  /api/passport/signout:
    post:
      operationId: signout
      tags:
      - Session
      summary: Soft sign-out (clears session cookie, keeps Google tokens)
      security:
      - passportSession: []
      responses:
        '200':
          description: Signed out
        '405':
          description: Method not allowed.
  /api/passport/disconnect:
    post:
      operationId: disconnectGoogle
      tags:
      - Session
      summary: Revoke Google OAuth + clear stored tokens
      description: Hard disconnect. Next sign-in prompts for consent again. Cascades to `oauth_refresh_tokens` + `connected_apps` so downstream MCP clients holding bearer tokens are revoked too.
      security:
      - passportSession: []
      responses:
        '200':
          description: Disconnected
        '401':
          description: Missing or invalid session cookie.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '405':
          description: Method not allowed.
  /api/passport/wallet/nonce:
    post:
      operationId: getWalletNonce
      tags:
      - Session
      summary: Issue a wallet verification nonce (SIWE)
      security:
      - passportSession: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - address
              properties:
                address:
                  type: string
                  description: EIP-55 checksummed wallet address
                chainId:
                  type: integer
      responses:
        '200':
          description: Nonce issued
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
        '400':
          description: Invalid request payload.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '405':
          description: Method not allowed.
  /api/passport/wallet/verify:
    post:
      operationId: verifyWallet
      tags:
      - Session
      summary: Verify a SIWE signature and attach the wallet
      security:
      - passportSession: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - address
              - signature
              - message
              properties:
                address:
                  type: string
                signature:
                  type: string
                message:
                  type: string
                chainId:
                  type: integer
      responses:
        '200':
          description: Wallet attached
        '400':
          description: Invalid request payload.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing or invalid session cookie.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '405':
          description: Method not allowed.
components:
  schemas:
    Error:
      type: object
      required:
      - error
      properties:
        error:
          type: string
    Status:
      type: object
      description: Truncated — full shape includes connection, wallet, connectedApps, connectedSources, bonusSummary, etc.
      properties:
        ok:
          type: boolean
        connected:
          type: boolean
        authed:
          type: boolean
        connectionId:
          type: string
        email:
          type: string
        betaAccess:
          type: boolean
        adminAuthorized:
          type: boolean
  securitySchemes:
    passportOAuth:
      type: oauth2
      flows:
        authorizationCode:
          authorizationUrl: https://passport.me/oauth/authorize
          tokenUrl: https://passport.me/oauth/token
          refreshUrl: https://passport.me/oauth/token
          scopes:
            passport.mcp: Call MCP tools against the user's Passport (read-only).
    passportSession:
      type: apiKey
      in: cookie
      name: passport_session
      description: Session cookie issued after Google OAuth or wallet connect. Not intended for agent use — open `https://my.passport.me` in a browser to obtain one.
externalDocs:
  description: Agent skills, MCP server card, and full discovery catalog
  url: https://passport.me/.well-known/api-catalog