Skip to content

List invitations for this environment

GET
/api/server/v1/invitations
curl --request GET \
--url 'https://api.torii.so/api/server/v1/invitations?limit=20' \
--header 'Authorization: Bearer <token>'
status
Array<string>
search
string
limit
integer format: int32
default: 20
cursor
string format: uuid

OK

Media type application/json

A single page of results in a cursor-paginated list. Pass nextCursor as the cursor query parameter to fetch the following page.

object
items
required

Items in this page, in stable order.

Array<object>
object
id
required
string format: uuid
environmentId
required
string format: uuid
email
required
string
status
required
string
Allowed values: PENDING ACCEPTED REVOKED EXPIRED
expiresAt
required
string format: date-time
createdAt
required
string format: date-time
acceptedAt
string | null format: date-time
revokedAt
string | null format: date-time
nextCursor

Cursor to pass to fetch the next page. Null when this is the last page.

string | null format: uuid
hasMore
required

True if more pages are available (equivalent to nextCursor != null).

boolean
Example
{
"items": [
{
"status": "PENDING"
}
],
"nextCursor": "01931a73-8b00-7000-8000-000000000000",
"hasMore": true
}