OKF Index Auth API

The Auth API from OKF Index — 7 operation(s) for auth.

GitHub OpenAPI

Operations 7

GET /api/auth/bootstrap Prepare the browser for global sign-in #
POST /api/auth/logout Revoke 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 Start the wallet credential of an agent without an account #
POST /api/auth/wallet/agent/token Get the wallet credential (mmw_…) of this product #

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/okfindex-com:okfindex-com-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

okfindex-com-auth-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: OKF Index Auth API
  version: cb36b312
  description: 'The search index of Open Knowledge Format bundles. Index: GET /api/.'
servers:
- url: https://okfindex.com
tags:
- name: Auth
paths:
  /api/auth/bootstrap:
    get:
      operationId: get_api_auth_bootstrap
      summary: Prepare the browser for global sign-in
      description: 'Sets a host-only HttpOnly browser cookie. 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 / contexto opaco da vista, não é credencial.
                required:
                - csrf
                - context
        '400':
          description: invalid_request
        '403':
          description: invalid_origin / invalid_csrf
        '503':
          description: 'auth_unavailable: a sessão anterior é preservada / the previous session is preserved'
      security: []
      tags:
      - Auth
  /api/auth/logout:
    post:
      operationId: post_api_auth_logout
      summary: Revoke this product session
      description: 'Bootstrap/CSRF must belong to this browser and session. Other product sessions remain 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
        '403':
          description: invalid_origin / invalid_csrf
        '503':
          description: 'auth_unavailable: a sessão anterior é preservada / the previous session is preserved'
      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
        '401':
          description: invalid_session / reauth_required
        '409':
          description: installation_not_created
        '503':
          description: auth_unavailable
      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
        '403':
          description: invalid_origin / invalid_csrf
        '503':
          description: auth_unavailable
      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
      security: []
      tags:
      - Auth
  /api/auth/wallet/agent/start:
    post:
      operationId: post_api_auth_wallet_agent_start
      summary: Start the wallet credential of an agent without an account
      description: 'No account: the wallet proves it is hers by signing the message (EIP-4361). Signing does not pay or transfer anything. The message names this product and lasts 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 it 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…, a carteira (EOA ou contrato na 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
        '503':
          description: auth_unavailable
      security: []
      tags:
      - Auth
  /api/auth/wallet/agent/token:
    post:
      operationId: post_api_auth_wallet_agent_token
      summary: Get the wallet credential (mmw_…) of this product
      description: 'The wallet''s signature of the start message, checked here (own key) or on Base (contract, EIP-1271/6492). The credential lasts 30 days: send `Authorization: Bearer mmw_…` to the routes that accept the wallet as owner (owner `x402:`). Once 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…, a mesma carteira do start / the same wallet as in start
                issuedAt:
                  type: number
                  description: o issuedAt do start / start's issuedAt
                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
        '401':
          description: invalid_wallet
        '429':
          description: wallet_limited
        '503':
          description: wallet_unavailable / auth_unavailable
      security: []
      tags:
      - Auth
components:
  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/okf-index
  description: PayAPI Market
x-service-info:
  categories:
  - knowledge
  - search
  - ai-agents
  docs:
    homepage: https://okfindex.com/
    apiReference: https://okfindex.com/developers
    llms: https://okfindex.com/llms.txt
    pricing: https://okfindex.com/api/pricing
    billing: https://okfindex.com/api/billing