List pages
const url = 'https://app.lyra-docs.com/api/v1/pages?limit=50';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://app.lyra-docs.com/api/v1/pages?limit=50' \ --header 'Authorization: Bearer <token>'Lists the pages inside a page (parentId), at the top of a teamspace (teamspaceId), or, with neither, at the top of your private pages. Database rows are not listed here; query them with POST /api/v1/databases/{databaseId}/query. Pages come in the order the sidebar shows them, a page of results at a time.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”List the pages inside this page
List the pages at the top of this teamspace
The nextCursor of the previous page. Leave it out for the first page.
Responses
Section titled “Responses”OK
object
A page in a list.
object
Whether it has pages inside it
Pass it as cursor to get the next page, or null at the end
Example
{ "pages": [ { "id": "0193a7c2-5d41-7c3e-9a51-6f0d2b8e4a10", "title": "Launch plan", "icon": "🚀", "kind": "doc", "url": "https://app.lyra-docs.com/p/0193a7c2-5d41-7c3e-9a51-6f0d2b8e4a10", "parentId": "0193a7c2-4b10-7a2d-8e33-1c9f5a7b2d01", "teamspaceId": "0193a7c1-9e02-7f41-b6a8-3d5e7c9a1b22", "hasChildren": true, "updatedAt": "2026-12-02T09:30:00.000Z", "expiresAt": null } ]}Headers
Section titled “Headers”How many requests the token can send in a minute
How many it has left this minute
Seconds until the count starts again
The id of this request. Send it to support if something goes wrong.
The request does not match the schema: a missing field, a wrong type or a value out of range.
What went wrong.
object
object
A stable code to check in your code, such as page_not_found
A sentence for people, which can change
For invalid_request, each part of the request that was wrong
Example
{ "error": { "code": "invalid_request", "message": "The request is not valid.", "issues": [ { "instancePath": "/title", "message": "Too big: expected string to have <=500 characters" } ] }}The token is missing, wrong, revoked or expired.
What went wrong.
object
object
A stable code to check in your code, such as page_not_found
A sentence for people, which can change
For invalid_request, each part of the request that was wrong
Example
{ "error": { "code": "unauthorized", "message": "Please sign in." }}It doesn’t exist, or the token’s person can’t see it. The code names what, such as page_not_found.
What went wrong.
object
object
A stable code to check in your code, such as page_not_found
A sentence for people, which can change
For invalid_request, each part of the request that was wrong
Example
{ "error": { "code": "page_not_found", "message": "This page doesn't exist or you don't have access to it." }}Too many requests. Each token can send 120 requests a minute. Wait for the seconds in Retry-After.
What went wrong.
object
object
A stable code to check in your code, such as page_not_found
A sentence for people, which can change
For invalid_request, each part of the request that was wrong
Example
{ "error": { "code": "rate_limited", "message": "Too many requests. Try again in 21 seconds." }}Headers
Section titled “Headers”Seconds to wait before sending again