Change a pending invite's role or expiry
Updates the role and/or expiry of an invite that is still pending. Requires `members:invite`, and only owners may move an invite to or from the owner role. An unknown invite is not found, an invite that has already been accepted or revoked conflicts, and raising a viewer invite to an editor role must fit within the plan's editor seats.
Authorization
apiKey Workspace API key created in Workspace settings → API keys. Scopes on the key bound what it can read and write.
In: header
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
curl -X PATCH "https://example.com/v1/workspaces/string/invites/string" \ -H "Content-Type: application/json" \ -d '{}'{ "data": { "id": "string", "workspaceId": "string", "email": "string", "role": "owner", "status": "pending", "invitedByUserId": "string", "acceptedByUserId": "string", "expiresAt": "string", "createdAt": "string", "updatedAt": "string" }}{ "_tag": "ApiNotFound", "error": "not_found", "message": "That item does not exist, or this key cannot see it.", "status": 404}{ "_tag": "ApiNotFound", "error": "not_found", "message": "That item does not exist, or this key cannot see it.", "status": 404}List the caller's pending workspace invitations
Returns the pending invites addressed to the authenticated caller's email across all active workspaces, which is the invite inbox shown during onboarding. Account-scoped rather than workspace-scoped and requires a synced user profile; a caller whose identity carries no email gets an empty list.
Revoke a pending workspace invite
Marks the invite revoked so its token can no longer be redeemed, cancels the queued invitation email, and returns the resulting invite. Requires `members:invite`. An unknown invite is not found and one that is no longer pending conflicts.