Skip to content

List comment threads

GET
/api/v1/pages/{pageId}/threads
curl --request GET \
--url 'https://app.lyra-docs.com/api/v1/pages/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/threads?includeResolved=true' \
--header 'Authorization: Bearer <token>'

Lists up to 200 comment threads on a page, with the text each is attached to and every comment as Markdown. Resolved threads are left out unless includeResolved=true.

pageId
required
string format: uuid

The page’s id

includeResolved
string
default: false
Allowed values: true false

OK

Media typeapplication/json
object
threads
required
Array<object>

A comment thread on a page, with its comments oldest first.

object
id
required
string format: uuid
quotedText
required

The text on the page the thread is attached to, or null for a comment on the whole page

string | null
resolved
required
boolean
createdAt
required
string format: date-time
comments
required
Array<object>

One comment in a thread, as Markdown.

object
id
required
string format: uuid
author
required

Someone in the workspace.

object
id
required
string format: uuid
name
required
string
markdown
required
string
createdAt
required
string format: date-time

Example

{
"threads": [
{
"id": "0193a7c3-0c11-7d22-9e33-4f5a6b7c8d90",
"quotedText": "ship on Friday",
"resolved": false,
"createdAt": "2026-12-02T09:30:00.000Z",
"comments": [
{
"id": "0193a7c3-0c12-7d22-9e33-4f5a6b7c8d91",
"author": {
"id": "0193a7c0-1a2b-7c3d-8e4f-5a6b7c8d9e0f",
"name": "Sam Lee"
},
"markdown": "Can we make it **Thursday**?",
"createdAt": "2026-12-02T09:30:00.000Z"
}
]
}
]
}
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."
}
}

The token’s person can see this, but can’t do this to it.

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": "forbidden",
"message": "You don't have access to do that."
}
}

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