anytype-api
Anytype API v2 — HTTP guide for agents
Local REST API at http://127.0.0.1:31009 (the Anytype app must be
running). Every call sends Authorization: Bearer <key>; keys are created
in the app (Settings → API keys) — the API mints none. Bodies are
compact JSON, and every name this API owns is snake_case — params,
fields and op names alike. (Inside an object's blocks and properties
you are reading the AnyBlock format's content; property and type keys
there are served as slugs by default, as display names under
?keys=name — see the properties bullet below.) Every list takes
?offset=&limit= (default 25, max 1000) and returns
{data, total, offset, limit, has_more}.
First call: GET /v2/auth/whoami. A key may be scoped to particular
spaces and to read-only. grant.scoped: false means the whole account;
otherwise grant.spaces lists what you may touch and grant.permission
whether you may write. Ask this instead of discovering limits through 403s
(space_not_granted / write_not_granted — the message names the grant).