Skip to main content
List Workspace Invites
Returns the workspace’s live pending invites (status = 'pending' AND expiresAt > now — effectively-expired rows are excluded). Requires the invite capability (or owner).

Path Parameters

string
required
The workspace UUID.

Query Parameters

string
required
Service keys only — the user to act as. Required with a service key: a key that names nobody is refused with 400 workspace/missing-user-id. Enforced: the invite capability (or ownership) is required of the named user. A user token always acts as its own user and must not send it (400 workspace/acting-user-not-allowed). See Acting on behalf of a user.

Response

Each item is a WorkspaceInvitation object. This is a workspace’s outbox. For the invites addressed to a user, see List My Invites.

Error Responses

The acting user can see the workspace but has no invite capability on it.
The workspace doesn’t exist, or the acting user has no relation to it (not its owner, an ancestor owner, a member or a reach-holder): the two answer alike, with the same body Fetch Workspace gives.
Every path id on the workspaces bundle is checked for UUID shape before the route runs, so a malformed one is a plain 400 rather than a 500 from the database.
A service key sent no actingUserId. The request has to act as somebody, and is held to exactly that user’s standing on the workspace.
A user token sent actingUserId, even naming its own user. Only a service key names the user it acts as; a user token always acts as its own user.
A GET takes every field, actingUserId included, in the query string, so any request body is refused: a JSON object with keys, a non-empty array, or a non-JSON payload such as multipart (then params is omitted). An absent body and {} pass.
Returned when a service key names an actingUserId that isn’t a user in this project.
See also: useFetchWorkspaceInvites