PontoFato Auth API

The Auth API from PontoFato — 8 operation(s) for auth.

GitHub OpenAPI

Operations 8

GET /api/auth/bootstrap Prepares the browser to sign in to the global account #
POST /api/auth/logout Revokes this product session #
POST /api/auth/pwa/install Prepare a personal app installation #
POST /api/auth/pwa/restore Restore an installed app #
GET /api/auth/pwa/manifest Read the private installation manifest #
POST /api/auth/wallet/agent/start Starts the wallet credential of an agent without an account #
POST /api/auth/wallet/agent/token Gets the wallet credential (mmw_…) of this product #
POST /api/auth/claim/wallets Moves to the account what its wallets did without an account #

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/pontofato:pontofato-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

pontofato-auth-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: PontoFato Auth API
  version: 5b549f5d
  description: 'Point and facts of a place in Brazil. Index: GET /api/.'
servers:
- url: https://pontofato.com
tags:
- name: Auth
paths:
  /api/auth/bootstrap:
    get:
      operationId: get_api_auth_bootstrap
      summary: Prepares the browser to sign in to the global account
      description: 'Sets an HttpOnly cookie restricted to the host. CSRF is bound to the current session. No CORS.

        Returns: { csrf, context }'
      responses:
        '200':
          description: '{ csrf, context }'
          content:
            application/json:
              schema:
                type: object
                properties:
                  csrf:
                    type: string
                    description: X-CSRF-Token
                  context:
                    type: string
                    description: Opaque view context, also in X-MM-Context; not a credential.
                required:
                - csrf
                - context
        '400':
          description: invalid_request
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '403':
          description: invalid_origin / invalid_csrf
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '503':
          description: 'auth_unavailable: the previous session is preserved'
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
      security: []
      tags:
      - Auth
  /api/auth/logout:
    post:
      operationId: post_api_auth_logout
      summary: Revokes this product session
      description: 'Requires the bootstrap/CSRF of this browser and session. The sessions of other products stay active.

        Returns: { ok }'
      responses:
        '200':
          description: '{ ok }'
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    type: boolean
                    description: 'true'
                required:
                - ok
        '400':
          description: invalid_request
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '403':
          description: invalid_origin / invalid_csrf
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '503':
          description: 'auth_unavailable: the previous session is preserved'
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
      security:
      - globalAccount: []
      tags:
      - Auth
  /api/auth/pwa/install:
    post:
      operationId: post_api_auth_pwa_install
      summary: Prepare a personal app installation
      description: 'Requires recent sign-in, exact Origin and browser CSRF. Returns a private signed PIN and a no-store manifest address. At most 10 active installations per account and product.

        Returns: {pin,path,manifest}'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                path:
                  type: string
                  description: Same-origin task path, up to 1600 characters.
                state:
                  type: object
                  description: Up to 30 allowlisted preference keys and string values.
                manifest:
                  type: object
                  description: Public app name and same-origin icons.
              required:
              - path
              - state
              - manifest
      responses:
        '200':
          description: '{pin,path,manifest}'
        '400':
          description: invalid_installation_path / invalid_installation_state / invalid_installation_manifest
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '401':
          description: invalid_session / reauth_required
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '409':
          description: installation_not_created
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '503':
          description: auth_unavailable
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
      security:
      - globalAccount: []
      tags:
      - Auth
  /api/auth/pwa/restore:
    post:
      operationId: post_api_auth_pwa_restore
      summary: Restore an installed app
      description: 'Requires the signed PIN, exact Origin and browser CSRF. Verifies host, product, account status, security version and installation revocation. Keeps the original authentication time. Sensitive actions still require recent sign-in.

        Returns: {ok:true,state,path,manifest}; HttpOnly session cookies'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                pin:
                  type: string
                  description: Private signed installation credential.
              required:
              - pin
      responses:
        '200':
          description: '{ok:true,state,path,manifest}; HttpOnly session cookies'
        '401':
          description: invalid_installation
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '403':
          description: invalid_origin / invalid_csrf
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '503':
          description: auth_unavailable
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
      security: []
      tags:
      - Auth
  /api/auth/pwa/manifest:
    get:
      operationId: get_api_auth_pwa_manifest
      summary: Read the private installation manifest
      description: 'Requires the installation cookie and its manifest key. Private, no-store. The start URL keeps the PIN in the fragment.

        Returns: application/manifest+json'
      parameters:
      - name: key
        in: query
        required: true
        schema:
          type: string
        description: Key in the manifest address that the install or restore call returned.
      responses:
        '200':
          description: application/manifest+json
        '401':
          description: invalid_installation
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
      security: []
      tags:
      - Auth
  /api/auth/wallet/agent/start:
    post:
      operationId: post_api_auth_wallet_agent_start
      summary: Starts the wallet credential of an agent without an account
      description: 'Without an account: the wallet proves ownership by signing the message (EIP-4361). Signing does not pay or transfer anything. The message names this product and is valid for 5 minutes. Before you sign, compare the message with the URL that you called. The domain on the first line must be the host of that URL. URI must be its origin. If one is different, do not sign. Sign with personal_sign and send it to /api/auth/wallet/agent/token.

        Returns: { message, issuedAt, expiresIn }'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                address:
                  type: string
                  description: 0x…, the wallet (an EOA or a contract on Base)
              required:
              - address
            example:
              address: '0x2c7536E3605D9C16a7a3D7b1898e529396a65c23'
      responses:
        '200':
          description: '{ message, issuedAt, expiresIn }'
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                    description: EIP-4361
                  issuedAt:
                    type: number
                    description: segundos / seconds
                  expiresIn:
                    type: number
                    description: '300'
                required:
                - message
                - issuedAt
                - expiresIn
        '400':
          description: invalid_wallet_address
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '503':
          description: auth_unavailable
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
      security: []
      tags:
      - Auth
  /api/auth/wallet/agent/token:
    post:
      operationId: post_api_auth_wallet_agent_token
      summary: Gets the wallet credential (mmw_…) of this product
      description: 'The wallet signature of the start message, checked here (own key) or on Base (contract, EIP-1271/6492). The credential is valid for 30 days: send `Authorization: Bearer mmw_…` to the routes that accept the wallet as owner (owner `x402:`). When the wallet is linked to an account, what it did here moves to the account when the person signs in.

        Returns: { token, owner, expiresAt }'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                address:
                  type: string
                  description: 0x…, the same wallet as in start
                issuedAt:
                  type: number
                  description: the issuedAt of start
                signature:
                  type: string
                  description: personal_sign (0x…)
              required:
              - address
              - issuedAt
              - signature
            example:
              address: '0x2c7536E3605D9C16a7a3D7b1898e529396a65c23'
              issuedAt: 1791400000
              signature: 0x…
      responses:
        '200':
          description: '{ token, owner, expiresAt }'
          content:
            application/json:
              schema:
                type: object
                properties:
                  token:
                    type: string
                    description: mmw_…
                  owner:
                    type: string
                    description: x402:0x…
                  expiresAt:
                    type: number
                    description: segundos / seconds
                required:
                - token
                - owner
                - expiresAt
        '400':
          description: invalid_body
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '401':
          description: invalid_wallet
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '429':
          description: wallet_limited
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '503':
          description: wallet_unavailable / auth_unavailable
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
      security: []
      tags:
      - Auth
  /api/auth/claim/wallets:
    post:
      operationId: post_api_auth_claim_wallets
      summary: Moves to the account what its wallets did without an account
      description: 'The sign-in window calls this after every sign-in. For each wallet linked to the account: the rights bought here through x402 (owner x402:) and what this product keeps for that owner. Repeating moves nothing.

        Returns: { carteiras, direitos }'
      responses:
        '200':
          description: '{ carteiras, direitos }'
          content:
            application/json:
              schema:
                type: object
                properties:
                  carteiras:
                    type: number
                    description: wallets
                  direitos:
                    type: number
                    description: rights moved
                required:
                - carteiras
                - direitos
        '401':
          description: invalid_session
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '503':
          description: auth_unavailable
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
      security:
      - globalAccount: []
      tags:
      - Auth
components:
  schemas:
    ProblemDetails:
      type: object
      description: RFC 9457 Problem Details error response (`application/problem+json`). Includes stable `code` and backward-compatible `error` and `message` fields; route-specific extension fields (such as `accepts`, `allow`, `retry_after`, or `request_id`) may also be present.
      required:
      - type
      - title
      - status
      - detail
      - instance
      - code
      properties:
        type:
          type: string
          format: uri
          description: URI identifying the problem type, linking to `/errors#<code>` on this host.
        title:
          type: string
          description: Short human-readable summary of the problem type.
        status:
          type: integer
          description: HTTP status code generated for this occurrence.
        detail:
          type: string
          description: Human-readable explanation specific to this occurrence.
        instance:
          type: string
          description: Request path where the error occurred (without query parameters).
        code:
          type: string
          description: Stable machine-readable snake_case error code documented at `/errors`.
        error:
          type: string
          description: Backward-compatible alias of `code` (or protocol reason on x402 402 responses).
        message:
          type: string
          description: Backward-compatible alias of `detail`.
      additionalProperties: true
  securitySchemes:
    globalAccount:
      type: apiKey
      in: cookie
      name: __Host-mm-auth
      description: Global session in the product's HttpOnly cookie; writes require exact Origin and X-CSRF-Token.
    contaChaveApi:
      type: http
      scheme: bearer
      bearerFormat: mmk_…
      description: 'Account API key: `Authorization: Bearer mmk_…` or `X-Api-Key: mmk_…`. Created on the account page (API keys), valid only in the product where it was created; it acts as the account (or the organization that owns it).'
    carteiraAgente:
      type: http
      scheme: bearer
      bearerFormat: mmw_…
      description: 'Wallet credential of an agent without an account (`Authorization: Bearer mmw_…`, 30 days, this product only): POST /api/auth/wallet/agent/start, check that the domain and URI of the message are the host and origin that you called, sign the message with the wallet, POST /api/auth/wallet/agent/token. The owner is `x402:<address>`.'
externalDocs:
  url: https://payapi.market/api/pontofato
  description: PayAPI Market
x-service-info:
  categories:
  - geolocation
  - addresses
  - data
  docs:
    homepage: https://pontofato.com/
    apiReference: https://pontofato.com/developers
    llms: https://pontofato.com/llms.txt
    errors: https://pontofato.com/errors
    status: https://pontofato.com/status
    pricing: https://pontofato.com/api/pricing
    billing: https://pontofato.com/api/billing