List invitations
GET
/triggers/{id}/invitations
const url = 'https://localhost:3000/api/v1/triggers/example/invitations';const options = {method: 'GET', headers: {Authorization: '<Authorization>'}};
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://localhost:3000/api/v1/triggers/example/invitations \ --header 'Authorization: <Authorization>'Lists all invitations for a trigger
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Trigger ID (UUID)
Responses
Section titled “Responses”OK
Media typeapplication/json
object
invitations
required
Array<object>
object
created_at
required
string
expires_at
required
string
id
required
string
permissions
required
Array<string>
token
Only returned at creation time
string
token_preview
First 8 chars for listing
string
trigger_id
required
string
used
required
boolean
used_at
string
used_by
string
Example generated
{ "invitations": [ { "created_at": "example", "expires_at": "example", "id": "example", "permissions": [ "example" ], "token": "example", "token_preview": "example", "trigger_id": "example", "used": true, "used_at": "example", "used_by": "example" } ]}Unauthorized
Media typeapplication/json
object
error
required
string
message
string
Example
{ "error": "invalid_request", "message": "Invalid request body"}Forbidden
Media typeapplication/json
object
error
required
string
message
string
Example
{ "error": "invalid_request", "message": "Invalid request body"}Not Found
Media typeapplication/json
object
error
required
string
message
string
Example
{ "error": "invalid_request", "message": "Invalid request body"}