SnozeDevelopers
API referenceWorkspaces

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.

DELETE
/v1/workspaces/{workspaceId}/invites/{inviteId}

Authorization

apiKey
headerAuthorizationBearer <snoze_sk_…>

Workspace API key created in Workspace settings → API keys. Scopes on the key bound what it can read and write.

Path Parameters

workspaceId*string
inviteId*string

Response Body

Success

application/json
  1. response
data*
Example Request
curl -X DELETE 'https://api.snoze.dev/v1/workspaces/string/invites/string'
Example Response
{  "data": {    "id": "string",    "workspaceId": "string",    "email": "string",    "role": "owner",    "status": "pending",    "invitedByUserId": "string",    "acceptedByUserId": "string",    "expiresAt": "string",    "createdAt": "string",    "updatedAt": "string"  }}