GET
/
v1
/
api
/
workspaces
/
invitations
/
pending
curl --request GET \
  --url https://api.trillet.ai/v1/api/workspaces/invitations/pending \
  --header 'x-api-key: <api-key>'
{
  "success": true,
  "invitations": [
    {}
  ]
}

Headers

x-workspace-id
string

The workspace ID related to the invitation context. (Currently optional and not enforced in the query.)

Description

This endpoint returns all pending workspace invitations where the authenticated user’s email matches the invitation’s recipient email.

The response includes:

  • Details about the invitation (role, type, token, expiration).
  • Information about the inviting user (name, email, picture).
  • Workspace details including name, initials, and white-label settings.

If the email is not present in the authenticated user payload, it is fetched from the database using the user ID.

Response Fields

success
boolean

Indicates whether the request was successful.

invitations
array

List of pending invitations for the authenticated user.

GET
/
v1
/
api
/
workspaces
/
invitations
/
pending
curl --request GET \
  --url https://api.trillet.ai/v1/api/workspaces/invitations/pending \
  --header 'x-api-key: <api-key>'
{
  "success": true,
  "invitations": [
    {}
  ]
}

Headers

x-workspace-id
string

The workspace ID related to the invitation context. (Currently optional and not enforced in the query.)

Description

This endpoint returns all pending workspace invitations where the authenticated user’s email matches the invitation’s recipient email.

The response includes:

  • Details about the invitation (role, type, token, expiration).
  • Information about the inviting user (name, email, picture).
  • Workspace details including name, initials, and white-label settings.

If the email is not present in the authenticated user payload, it is fetched from the database using the user ID.

Response Fields

success
boolean

Indicates whether the request was successful.

invitations
array

List of pending invitations for the authenticated user.