Skip to content

Workspace API

List Invitations

List pending workspace invitations with GET /workspace/invitations.

Endpoint
GET https://api.parcelengineering.com/api/v1/workspace/invitations

Returns workspace invitations that have not yet been accepted or revoked. Each invitation carries a status field with the value Pending (the link is still valid) or Expired (the link has passed its expiry date but was never accepted or revoked).

List invitations costs 0 credits.

Query parameters

ParameterTypeRequiredDescription
workspace_idstring (UUID)NoOverride the workspace resolved from your API key. Useful for admin tooling.

Example

List workspace invitations
curl https://api.parcelengineering.com/api/v1/workspace/invitations \
-H "Authorization: Bearer pcl_your_api_key"

Response

Response
{
"data": {
"invitations": [
{
"id": "9f8e7d6c-0001-4a3b-8c2d-000000000001",
"email": "new.teammate@example.com",
"role": "member",
"status": "Pending",
"sent_at": "2025-06-28T12:00:00.000Z",
"expires_at": "2025-07-12T12:00:00.000Z",
"created_at": "2025-06-28T12:00:00.000Z"
},
{
"id": "9f8e7d6c-0002-4a3b-8c2d-000000000002",
"email": "old.invite@example.com",
"role": "admin",
"status": "Expired",
"sent_at": "2025-06-01T09:00:00.000Z",
"expires_at": "2025-06-15T09:00:00.000Z",
"created_at": "2025-06-01T09:00:00.000Z"
}
]
},
"metadata": { "credits": 0 }
}

Response fields

FieldTypeDescription
data.invitationsarrayOne object per open invitation (not accepted, not revoked), ordered by creation date descending.
data.invitations[].idstring (UUID)The invitation row id. Use this to revoke the invitation via Revoke an Invitation.
data.invitations[].emailstringThe email address that was invited.
data.invitations[].rolestringThe role that will be assigned when the invitation is accepted: admin or member.
data.invitations[].statusstringPending if the invite link is still valid; Expired if the expiry date has passed without the invite being accepted or revoked.
data.invitations[].sent_atstring (ISO 8601) or nullWhen the invite email was dispatched. null if delivery has not been attempted.
data.invitations[].expires_atstring (ISO 8601)When the invitation link expires.
data.invitations[].created_atstring (ISO 8601)When the invitation record was created.
metadata.creditsintegerAlways 0.