OKF Index Account API

The Account API from OKF Index — 10 operation(s) for account.

GitHub OpenAPI

Operations 10

GET /api/account/profile Read your global profile #
GET /api/account/avatar Read your global profile photo #
GET /api/account/keys List your API keys in this product #
POST /api/account/keys/create Create an API key for agents and scripts #
POST /api/account/keys/revoke Revoke one of your API keys #
GET /api/account/apps List the apps connected to your account in this product #
POST /api/account/apps/revoke Disconnect an app from your account #
GET /api/account/callouts List the notices that you closed in this product #
POST /api/account/callouts/dismiss Close a notice for good #
POST /api/account/callouts/reopen Open a closed notice again #

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-account-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-account-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: OKF Index Account API
  version: cb36b312
  description: 'The search index of Open Knowledge Format bundles. Index: GET /api/.'
servers:
- url: https://okfindex.com
tags:
- name: Account
paths:
  /api/account/profile:
    get:
      operationId: get_api_account_profile
      summary: Read your global profile
      description: 'Reads current preferences from the account. Edit them on your account page; products never own a separate profile.

        Returns: {profile:{name,locale,timeZone,theme,revision}}'
      responses:
        '200':
          description: '{profile:{name,locale,timeZone,theme,revision}}'
        '401':
          description: invalid_session
        '503':
          description: auth_unavailable
      security:
      - globalAccount: []
      tags:
      - Account
  /api/account/avatar:
    get:
      operationId: get_api_account_avatar
      summary: Read your global profile photo
      description: 'Private WebP, up to 64 KiB, no cache. Change it on your account. No user ID or object URL accepted.

        Returns: image/webp; Cache-Control: no-store'
      responses:
        '200':
          description: 'image/webp; Cache-Control: no-store'
          content:
            image/webp:
              schema:
                type: string
                format: binary
        '401':
          description: invalid_session
        '404':
          description: 'not_found: no photo / sem foto'
        '503':
          description: auth_unavailable
      security:
      - globalAccount: []
      tags:
      - Account
  /api/account/keys:
    get:
      operationId: get_api_account_keys
      summary: List your API keys in this product
      description: 'Never returns the key itself: name, last 4 characters, organization, creation, last use (hourly) and whether it still works.

        Returns: { keys }'
      responses:
        '200':
          description: '{ keys }'
          content:
            application/json:
              schema:
                type: object
                properties:
                  keys:
                    type: array
                    items:
                      type: object
                    description: '`id`, `name`, `organizationId`, `last4`, `createdAt`, `lastUsedAt`, `revokedAt`, `active` (false when revoked or stopped by a password change / ending all sessions).'
                required:
                - keys
        '401':
          description: invalid_session
        '503':
          description: auth_unavailable
      security:
      - globalAccount: []
      tags:
      - Account
  /api/account/keys/create:
    post:
      operationId: post_api_account_keys_create
      summary: Create an API key for agents and scripts
      description: 'Needs a sign-in within the last 2 hours; an organization key also needs a second factor in the session and the owner/admin role with this product enabled. At most 10 live keys per account and product. The key (`secret`) is returned ONCE.

        Returns: { key, secret }'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  description: Up to 60 characters.
                organizationId:
                  type:
                  - string
                  - 'null'
                  description: '`null` for an account key.'
              required:
              - name
              - organizationId
            example:
              name: agent
              organizationId: null
      responses:
        '200':
          description: '{ key, secret }'
          content:
            application/json:
              schema:
                type: object
                properties:
                  key:
                    type: object
                    description: '`id`, `name`, `organizationId`, `last4`, `createdAt`.'
                  secret:
                    type: string
                    description: '`mmk_…`, shown once.'
                required:
                - key
                - secret
        '400':
          description: invalid_key_name / invalid_organization
        '401':
          description: invalid_session / reauth_required
        '403':
          description: invalid_origin / invalid_csrf / organization_forbidden / organization_mfa_required
        '409':
          description: key_limit_reached
        '503':
          description: auth_unavailable
      security:
      - globalAccount: []
      tags:
      - Account
  /api/account/keys/revoke:
    post:
      operationId: post_api_account_keys_revoke
      summary: Revoke one of your API keys
      description: 'Stops the key at once. Repeating is harmless.

        Returns: { ok }'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                id:
                  type: string
                  description: The key `id`.
              required:
              - id
            example:
              id: …
      responses:
        '200':
          description: '{ ok }'
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    type: boolean
                    description: 'true'
                required:
                - ok
        '400':
          description: invalid_key_id
        '401':
          description: invalid_session
        '403':
          description: invalid_origin / invalid_csrf
        '404':
          description: key_not_found
        '503':
          description: auth_unavailable
      security:
      - globalAccount: []
      tags:
      - Account
  /api/account/apps:
    get:
      operationId: get_api_account_apps
      summary: List the apps connected to your account in this product
      description: 'The MCP clients you signed in with (OAuth), such as claude.ai or ChatGPT. Never returns a token.

        Returns: { apps }'
      responses:
        '200':
          description: '{ apps }'
          content:
            application/json:
              schema:
                type: object
                properties:
                  apps:
                    type: array
                    items:
                      type: object
                    description: 'Up to 50: `id`, `nome` (the app; its host when it identifies itself by a metadata document), `criadoEm`, `usadoEm` (hourly, or null).'
                required:
                - apps
        '401':
          description: invalid_session
        '503':
          description: auth_unavailable
      security:
      - globalAccount: []
      tags:
      - Account
  /api/account/apps/revoke:
    post:
      operationId: post_api_account_apps_revoke
      summary: Disconnect an app from your account
      description: 'Stops the app''s access at once; it asks you to sign in again. Repeating is harmless.

        Returns: { ok }'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                id:
                  type: string
                  description: The app `id`.
              required:
              - id
            example:
              id: …
      responses:
        '200':
          description: '{ ok }'
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    type: boolean
                    description: 'true'
                required:
                - ok
        '400':
          description: invalid_app_id
        '401':
          description: invalid_session
        '403':
          description: invalid_origin / invalid_csrf
        '404':
          description: app_not_found
        '503':
          description: auth_unavailable
      security:
      - globalAccount: []
      tags:
      - Account
  /api/account/callouts:
    get:
      operationId: get_api_account_callouts
      summary: List the notices that you closed in this product
      description: 'The keys of the notices that stay closed for your account, on every device, such as the explanation of an area.

        Returns: { callouts }'
      responses:
        '200':
          description: '{ callouts }'
          content:
            application/json:
              schema:
                type: object
                properties:
                  callouts:
                    type: array
                    items:
                      type: string
                    description: Up to 200 keys, in alphabetical order.
                required:
                - callouts
        '401':
          description: invalid_session
        '403':
          description: product_required
        '503':
          description: auth_unavailable
      security:
      - globalAccount: []
      tags:
      - Account
  /api/account/callouts/dismiss:
    post:
      operationId: post_api_account_callouts_dismiss
      summary: Close a notice for good
      description: 'The notice does not open again for your account in this product. Repeating is harmless.

        Returns: { ok }'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                key:
                  type: string
                  description: 'The notice key: letters, digits and `_.:-`, up to 80.'
              required:
              - key
            example:
              key: financeiro_expense
      responses:
        '200':
          description: '{ ok }'
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    type: boolean
                    description: 'true'
                required:
                - ok
        '400':
          description: invalid_callout
        '401':
          description: invalid_session
        '403':
          description: invalid_origin / invalid_csrf
        '409':
          description: too_many_callouts
        '503':
          description: auth_unavailable
      security:
      - globalAccount: []
      tags:
      - Account
  /api/account/callouts/reopen:
    post:
      operationId: post_api_account_callouts_reopen
      summary: Open a closed notice again
      description: 'Undoes the close: the notice shows again for your account in this product. A product also keeps an on/off choice here, as the hidden values of Finance. Repeating is harmless.

        Returns: { ok }'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                key:
                  type: string
                  description: 'The notice key: letters, digits and `_.:-`, up to 80.'
              required:
              - key
            example:
              key: financeiro_expense
      responses:
        '200':
          description: '{ ok }'
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    type: boolean
                    description: 'true'
                required:
                - ok
        '400':
          description: invalid_callout
        '401':
          description: invalid_session
        '403':
          description: invalid_origin / invalid_csrf
        '503':
          description: auth_unavailable
      security:
      - globalAccount: []
      tags:
      - Account
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