OpenAPI Specs
Every FastNear API family is published as an OpenAPI document you can fetch directly, and every operation is also published on its own. Start from the index if you are a tool or an agent:
curl -s https://docs.fastnear.com/openapi/index.jsonFamily documents
| Family | OpenAPI | Docs |
|---|---|---|
| FastNEAR RPC (JSON-RPC) | JSON · YAML | RPC Reference |
| FastNEAR API | JSON · YAML | FastNear API |
| Transactions API | JSON · YAML | Transactions API |
| Transfers API | JSON · YAML | Transfers API |
| KV FastData API | JSON · YAML | KV FastData API |
| NEAR Data API | JSON · YAML | NEAR Data API |
Each document carries its own servers, security, and component schemas, so it can be imported into any OpenAPI tool or client generator as-is. The RPC document models each JSON-RPC method as its own path, for example /view_account, all posted to the server root.
Per-operation documents
Every operation is also available as a self-contained document at /openapi/<family>/<operationId>.json (or .yaml), for example:
https://docs.fastnear.com/openapi/rpc/view_account.json
https://docs.fastnear.com/openapi/fastnear/account_full_v1.jsonThe index lists every operation with its operationId, its own document, its docs page, and a JSON-pointer link into the family document such as /openapi/rpc.json#/paths/~1view_account/post.
Where the links live
- Every operation page shows an OpenAPI row with links to its own document and the family document.
- Every family landing page links its document under Base URLs.
- Page heads carry
<link rel="service-desc" type="application/vnd.oai.openapi+json">for the family document andrel="describedby"for the operation document, so crawlers and agents can find the spec without reading the page. - The Markdown mirrors,
llms.txt, and the site graph carry the same URLs.
Authentication
Send your FastNear API key as an Authorization: Bearer header or an ?apiKey= query parameter; see Auth & Access. The security block in each document lists both forms.