List teamspaces
const url = 'https://app.lyra-docs.com/api/v1/teamspaces';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/teamspaces \ --header 'Authorization: Bearer <token>'Lists the teamspaces the person belongs to. List the pages at the top of one with GET /api/v1/pages?teamspaceId=.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”OK
object
Example
{ "teamspaces": [ { "id": "0193a7c1-9e02-7f41-b6a8-3d5e7c9a1b22", "name": "Engineering", "icon": "🛠️", "role": "member" } ]}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 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." }}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