List invitations for this environment
GET
/api/server/v1/invitations
const url = 'https://api.torii.so/api/server/v1/invitations?limit=20';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://api.torii.so/api/server/v1/invitations?limit=20' \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters ” status
Array<string>
search
string
limit
integer format: int32
cursor
string format: uuid
Responses
Section titled “ Responses ”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
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}