OKF Index Following API
The Following API from OKF Index — 4 operation(s) for following.
The Following API from OKF Index — 4 operation(s) for following.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
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.curl "https://apis.io/api/v1/apis/okfindex-com:okfindex-com-following-api"
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.
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: 3.2.0
info:
title: OKF Index Following API
version: cb36b312
description: 'The search index of Open Knowledge Format bundles. Index: GET /api/.'
servers:
- url: https://okfindex.com
tags:
- name: Following
paths:
/api/following:
get:
operationId: list_followed_bases
summary: List the public bases you follow
description: 'Requires a personal account or personal API key. Following grants no private access. Up to 50 hosted public bases per account. Updates show the latest published version of each document, not a version history. Repeated publication of the same version creates no update. Each read checks current publication. Unfollowing removes all notices for that base. Responses use private, no-store. No email or push messages.
Returns: { items[{id,name,available,followed_at,public_url}], total, limit }'
responses:
'200':
description: '{ items[{id,name,available,followed_at,public_url}], total, limit }'
content:
application/json:
schema:
type: object
properties:
items:
type: array
items:
$ref: '#/components/schemas/FollowedBase'
description: The bounded personal library, at most 50 entries.
total:
type: integer
description: Followed count, including unavailable bases.
limit:
type: integer
description: Always 50.
required:
- items
- total
- limit
'400':
description: Invalid cursor.
'401':
description: Sign in or use a personal API key.
'403':
description: Organization keys cannot use a personal library.
'404':
description: Base or following entry is inaccessible.
'405':
description: Method not allowed.
'409':
description: The account already follows 50 bases.
'503':
description: The library is unavailable.
tags:
- Following
/api/following/updates:
get:
operationId: list_base_updates
summary: Read updates from your followed bases
description: 'Requires a personal account or personal API key. Following grants no private access. Up to 50 hosted public bases per account. Updates show the latest published version of each document, not a version history. Repeated publication of the same version creates no update. Each read checks current publication. Unfollowing removes all notices for that base. Responses use private, no-store. No email or push messages.
Returns: { items[{id,published_at,base,document}], next }'
parameters:
- name: after
in: query
required: false
schema:
type: string
description: Cursor from next. Do not construct or change cursors.
responses:
'200':
description: '{ items[{id,published_at,base,document}], next }'
content:
application/json:
schema:
type: object
properties:
items:
type: array
items:
$ref: '#/components/schemas/BaseUpdate'
description: At most 20 latest published document versions, newer than the follow date. Withdrawn bases and removed documents are excluded.
next:
type: string
description: Next page URL, or null.
nullable: true
required:
- items
- next
'400':
description: Invalid cursor.
'401':
description: Sign in or use a personal API key.
'403':
description: Organization keys cannot use a personal library.
'404':
description: Base or following entry is inaccessible.
'405':
description: Method not allowed.
'409':
description: The account already follows 50 bases.
'503':
description: The library is unavailable.
tags:
- Following
/api/following/{base_id}:
get:
operationId: get_base_following
summary: Read your following state for one base
description: 'Requires a personal account or personal API key. Following grants no private access. Up to 50 hosted public bases per account. Updates show the latest published version of each document, not a version history. Repeated publication of the same version creates no update. Each read checks current publication. Unfollowing removes all notices for that base. Responses use private, no-store. No email or push messages.
Returns: { base_id, following }'
parameters:
- name: base_id
in: path
required: true
schema:
type: string
description: 'The hosted base ID: 64 lowercase hexadecimal characters.'
responses:
'200':
description: '{ base_id, following }'
content:
application/json:
schema:
type: object
properties:
base_id:
type: string
description: 'The hosted base ID: 64 lowercase hexadecimal characters.'
following:
type: boolean
description: Whether this personal account follows the base.
required:
- base_id
- following
'400':
description: Invalid cursor.
'401':
description: Sign in or use a personal API key.
'403':
description: Organization keys cannot use a personal library.
'404':
description: Base or following entry is inaccessible.
'405':
description: Method not allowed.
'409':
description: The account already follows 50 bases.
'503':
description: The library is unavailable.
tags:
- Following
put:
operationId: follow_base
summary: Follow a hosted public base for future updates
description: 'Requires a personal account or personal API key. Following grants no private access. Up to 50 hosted public bases per account. Updates show the latest published version of each document, not a version history. Repeated publication of the same version creates no update. Each read checks current publication. Unfollowing removes all notices for that base. Responses use private, no-store. No email or push messages.
Returns: { base_id, following }'
parameters:
- name: base_id
in: path
required: true
schema:
type: string
description: 'The hosted base ID: 64 lowercase hexadecimal characters.'
responses:
'200':
description: '{ base_id, following }'
content:
application/json:
schema:
type: object
properties:
base_id:
type: string
description: 'The hosted base ID: 64 lowercase hexadecimal characters.'
following:
type: boolean
description: Whether this personal account follows the base.
required:
- base_id
- following
'400':
description: Invalid cursor.
'401':
description: Sign in or use a personal API key.
'403':
description: Organization keys cannot use a personal library.
'404':
description: Base or following entry is inaccessible.
'405':
description: Method not allowed.
'409':
description: The account already follows 50 bases.
'503':
description: The library is unavailable.
tags:
- Following
delete:
operationId: unfollow_base
summary: Stop following a base and remove its notices
description: 'Requires a personal account or personal API key. Following grants no private access. Up to 50 hosted public bases per account. Updates show the latest published version of each document, not a version history. Repeated publication of the same version creates no update. Each read checks current publication. Unfollowing removes all notices for that base. Responses use private, no-store. No email or push messages.
Returns: { base_id, following }'
parameters:
- name: base_id
in: path
required: true
schema:
type: string
description: 'The hosted base ID: 64 lowercase hexadecimal characters.'
responses:
'200':
description: '{ base_id, following }'
content:
application/json:
schema:
type: object
properties:
base_id:
type: string
description: 'The hosted base ID: 64 lowercase hexadecimal characters.'
following:
type: boolean
description: Whether this personal account follows the base.
required:
- base_id
- following
'400':
description: Invalid cursor.
'401':
description: Sign in or use a personal API key.
'403':
description: Organization keys cannot use a personal library.
'404':
description: Base or following entry is inaccessible.
'405':
description: Method not allowed.
'409':
description: The account already follows 50 bases.
'503':
description: The library is unavailable.
tags:
- Following
/api/following/{base_id}/updates:
get:
operationId: followed_base_updates
summary: Read updates for one base you follow
description: 'Requires a personal account or personal API key. Following grants no private access. Up to 50 hosted public bases per account. Updates show the latest published version of each document, not a version history. Repeated publication of the same version creates no update. Each read checks current publication. Unfollowing removes all notices for that base. Responses use private, no-store. No email or push messages.
Returns: { items[{id,published_at,base,document}], next }'
parameters:
- name: base_id
in: path
required: true
schema:
type: string
description: 'The hosted base ID: 64 lowercase hexadecimal characters.'
- name: after
in: query
required: false
schema:
type: string
description: Cursor from next. Do not construct or change cursors.
responses:
'200':
description: '{ items[{id,published_at,base,document}], next }'
content:
application/json:
schema:
type: object
properties:
items:
type: array
items:
$ref: '#/components/schemas/BaseUpdate'
description: At most 20 latest published document versions, newer than the follow date. Withdrawn bases and removed documents are excluded.
next:
type: string
description: Next page URL, or null.
nullable: true
required:
- items
- next
'400':
description: Invalid cursor.
'401':
description: Sign in or use a personal API key.
'403':
description: Organization keys cannot use a personal library.
'404':
description: Base or following entry is inaccessible.
'405':
description: Method not allowed.
'409':
description: The account already follows 50 bases.
'503':
description: The library is unavailable.
tags:
- Following
components:
schemas:
Document:
type: object
properties:
id:
type: string
description: The 64-character ID returned by the API.
version_id:
type: string
description: Immutable version ID, present in private history.
current:
type: boolean
description: Whether this retained version is current.
published:
type: boolean
description: Whether this retained version is the one explicitly published.
base_id:
type: string
description: The 64-character ID returned by the API.
filename:
type: string
description: Original filename.
title:
type: string
description: Filename without extension.
format:
type: string
description: md, txt, pdf, docx or doc after conversion.
managed:
type: string
description: dataset for generated metadata; edit through save_base_dataset. Null for ordinary files.
nullable: true
sha256:
type: string
description: SHA-256 of stored UTF-8 text. Converted source hash is source_sha256.
bytes:
type: integer
description: Stored UTF-8 text size in bytes.
status:
type: string
description: ready or pending.
created_at:
type: string
description: Upload date, ISO 8601.
api:
type: string
description: JSON with Markdown.
source_url:
type: string
description: 'Present on document reads: source URL preserved with this version, or null for manual uploads. Also included in the exported OKF concept.'
nullable: true
source_sha256:
type: string
description: SHA-256 of the original converted file.
pages:
type: integer
description: PDF physical page count. Zero for continuous DOC and DOCX text.
review:
type: object
description: 'PDF: completed automated review. DOC/DOCX: not_applicable, null model and zero pages reviewed.'
markdown_url:
type: string
description: Markdown download.
original_url:
type: string
description: Original file download.
conversion_url:
type: string
description: Owner-only saved manifest, source metadata and processing result. Present for converted versions in private history.
okf_url:
type: string
description: OKF concept URL.
required:
- id
- base_id
- filename
- title
- format
- managed
- sha256
- bytes
- status
- created_at
- api
- markdown_url
- original_url
- okf_url
BaseUpdate:
type: object
properties:
id:
type: string
description: Published version ID. Repeated reads return the same ID until the document version changes.
published_at:
type: string
description: Publication date of this document version, ISO 8601.
base:
allOf:
- $ref: '#/components/schemas/UpdateOrigin'
description: Current public source and author.
document:
allOf:
- $ref: '#/components/schemas/Document'
description: Current public document metadata and reading URLs.
required:
- id
- published_at
- base
- document
FollowedBase:
type: object
properties:
id:
type: string
description: 'The hosted base ID: 64 lowercase hexadecimal characters.'
name:
type: string
description: Current public name; null when the base is unavailable.
nullable: true
available:
type: boolean
description: Whether the base is currently public.
followed_at:
type: string
description: When this account started following, ISO 8601.
public_url:
type: string
description: Current public page, or null when unavailable.
nullable: true
required:
- id
- name
- available
- followed_at
- public_url
UpdateOrigin:
type: object
properties:
id:
type: string
description: 'The hosted base ID: 64 lowercase hexadecimal characters.'
name:
type: string
description: Current public base name.
author:
type: string
description: Author declared by the publisher.
public_url:
type: string
description: Public base page.
required:
- id
- name
- author
- public_url
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