Skip to content

API overview

Lyra’s REST API lets a script or a service work in your workspace as you. It can search, read and write pages as Markdown, comment, add and change database rows, and upload files. It sees and changes only what you can.

Address https://app.lyra-docs.com/api/v1. A self-hosted server uses its own address instead
Sign-in An API token in the Authorization: Bearer header. See Authentication
Format JSON in and out. Page content and comments are Markdown
Reference Every endpoint, with examples, and the OpenAPI 3.1 file at /openapi.json

New to it? The quickstart creates a page, edits it and comments on it in five requests.

Area Endpoints
Account GET /me says who the token acts as and in which organization. GET /teamspaces lists the teamspaces you’re in
Search GET /search finds pages and database rows by title and text
Pages List, get, create, rename, move, move to the trash and restore pages
Content Read a page as Markdown, replace it, or change it block by block by block id
Comments List threads, start one, reply, resolve, edit and delete comments
Databases Describe a database, query rows with filters and sorts, get a row, add, update and trash rows
Files Upload a file to a page and download it again

All paths start with /api/v1, except file downloads, which use the same /api/files/<id> links that pages show.

  • Ids are UUIDs. A page’s id is the last part of its link: https://app.lyra-docs.com/p/<id>. A database’s id is the id of its page, and each row is a page too.
  • Times are ISO 8601 in UTC, such as 2026-12-02T09:30:00.000Z.
  • Content is Markdown. It can hold Lyra’s own blocks, such as cards, columns and timelines, and Mermaid diagrams. When Lyra reads a line differently from what it looks like you meant, the answer says so in warnings.
  • Database values are keyed by property name, such as {"Status": "Done", "Due": "2026-12-10"}.
  • Lists come a page at a time with a cursor. See Paging.
  • Errors have a stable code to check in your code. See Errors.
  • Each token can send 120 requests a minute. See Rate limits.

Version 1 only grows. New endpoints, new optional fields in requests and new fields in answers can appear at any time, so ignore fields you don’t know. A change that would break a working script goes into a new version, and /api/v1 keeps working alongside it.

The reference is built from an OpenAPI 3.1 file, which you can feed to a client generator, Postman or an AI coding tool:

  • Download it from https://lyra-docs.com/openapi.json.
  • Lyra also serves it at https://app.lyra-docs.com/api/openapi.json. A self-hosted server serves its own copy there, with its own address.

Both act as you with your access. Pick by who is doing the work:

Use When
The REST API Your own code does the work: a sync job, a script that files reports, a bot, an integration
MCP An AI agent such as Claude, ChatGPT, Cursor or Codex does the work and decides which steps to take

Lyra can’t call your server when something changes yet. See Webhooks for what to do instead.