Skip to content

List pages

GET
/api/v1/pages
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.

parentId
string format: uuid

List the pages inside this page

teamspaceId
string format: uuid

List the pages at the top of this teamspace

cursor
string
<= 4000 characters

The nextCursor of the previous page. Leave it out for the first page.

limit
integer
default: 50 >= 1 <= 100

OK

Media typeapplication/json
object
pages
required
Array<object>

A page in a list.

object
id
required
string format: uuid
title
required
string
icon
required
Any of:

An emoji

string
<= 16 characters
kind
required
string
Allowed values: doc database row
url
required
string
parentId
required
Any of:
string format: uuid
teamspaceId
required
Any of:
string format: uuid
hasChildren
required

Whether it has pages inside it

boolean
updatedAt
required
string format: date-time
expiresAt
required
Any of:
string format: date-time
nextCursor
required

Pass it as cursor to get the next page, or null at the end

string | null

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
}
]
}
X-RateLimit-Limit
integer

How many requests the token can send in a minute

X-RateLimit-Remaining
integer

How many it has left this minute

X-RateLimit-Reset
integer

Seconds until the count starts again

X-Request-Id
string

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.

Media typeapplication/json

What went wrong.

object
error
required
object
code
required

A stable code to check in your code, such as page_not_found

string
message
required

A sentence for people, which can change

string
issues

For invalid_request, each part of the request that was wrong

Array

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.

Media typeapplication/json

What went wrong.

object
error
required
object
code
required

A stable code to check in your code, such as page_not_found

string
message
required

A sentence for people, which can change

string
issues

For invalid_request, each part of the request that was wrong

Array

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.

Media typeapplication/json

What went wrong.

object
error
required
object
code
required

A stable code to check in your code, such as page_not_found

string
message
required

A sentence for people, which can change

string
issues

For invalid_request, each part of the request that was wrong

Array

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.

Media typeapplication/json

What went wrong.

object
error
required
object
code
required

A stable code to check in your code, such as page_not_found

string
message
required

A sentence for people, which can change

string
issues

For invalid_request, each part of the request that was wrong

Array

Example

{
"error": {
"code": "rate_limited",
"message": "Too many requests. Try again in 21 seconds."
}
}
Retry-After
integer

Seconds to wait before sending again