PZERO Auth API

SIWE sign-in and session lifecycle

GitHub OpenAPI

Operations 2

POST /auth/privy/verify Verify Privy tokens and create session #
POST /auth/logout Revoke the current session #

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/pzero-studio:pzero-studio-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

pzero-studio-auth-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Pzero Studio Auth API
  version: 1.0.0
  contact:
    url: /
  description: 'Operations tagged auth across 2 of this provider''s published API definitions: pzero-studio-openapi.json, pzero-studio-openapi2.json. Each path carries the servers of the definition it was published in.'
servers:
- url: /
  description: Same origin that served this OpenAPI document
tags:
- name: Auth
  description: SIWE sign-in and session lifecycle
paths:
  /auth/privy/verify:
    post:
      tags:
      - Auth
      summary: Verify Privy tokens and create session
      description: Verifies Privy access + identity JWTs. walletAddress must appear in the identity token linked_accounts. Upserts the account (same-wallet SIWE rows upgrade in place) and sets HttpOnly pzero_session.
      operationId: verifyPrivy
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                accessToken:
                  type: string
                  description: Privy access token (JWT)
                walletAddress:
                  type: string
                  pattern: ^0x[0-9a-fA-F]{40}$
                  description: Embedded wallet address bound to the Privy user
                identityToken:
                  type: string
                  description: Privy identity JWT with linked_accounts
                privyLoginSurface:
                  type: string
                  enum:
                  - wallet
                  - embedded
                  - unknown
              required:
              - accessToken
              - identityToken
              - walletAddress
      responses:
        '200':
          description: Session created; pzero_session cookie set
          headers:
            Set-Cookie:
              schema:
                type: string
              description: HttpOnly pzero_session cookie
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SessionIdentity'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
      security: []
    servers:
    - url: /
      description: Same origin that served this OpenAPI document
  /auth/logout:
    post:
      tags:
      - Auth
      summary: Revoke the current session
      operationId: logout
      security:
      - sessionCookie: []
      responses:
        '200':
          description: Session revoked
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StatusOk'
        '401':
          $ref: '#/components/responses/Unauthorized'
    servers:
    - url: /
      description: Same origin that served this OpenAPI document
components:
  schemas:
    Error:
      type: object
      properties:
        error:
          type: string
          description: HTTP status text
        message:
          type: string
    SessionIdentity:
      type: object
      properties:
        status:
          type: string
          example: ok
        accountId:
          type: string
          format: uuid
        walletAddress:
          type: string
        authProvider:
          type: string
          enum:
          - privy
          - siwe
      required:
      - status
      - accountId
      - walletAddress
      - authProvider
    StatusOk:
      type: object
      properties:
        status:
          type: string
          example: ok
  responses:
    BadRequest:
      description: Invalid request
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Unauthorized:
      description: Valid session or credential required
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Persistent pzero_... API key. Inference only; rejected on account and supply routes.
    sessionCookie:
      type: apiKey
      in: cookie
      name: pzero_session
      description: HttpOnly session cookie from POST /auth/privy/verify. Rejected on POST /v1/chat/completions.
x-refined-from:
- pzero-studio-openapi.json
- pzero-studio-openapi2.json