Get Pending Invitations
Retrieve a list of pending workspace invitations for the authenticated user.
GET
Headers
x-workspace-idstringThe 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
successbooleanIndicates whether the request was successful.
invitationsarrayList of pending invitations for the authenticated user.
