Decline Workspace Invitation
POST
/web/v1/users/self/invitations/{invitationBizId}/declineJWTDeclines a workspace invitation with an optional reason. Returns 204 No Content on success.
Authentication
Auth Chain: WEB Chain — requires
Authorization: Bearer <jwt>These headers are injected by the system (frontend does nothing):X-PORTAL-ACCESS-CODE(Nginx),X-Request-Id(Gateway)
Request Parameters
| Name | Type | Required | In | Description |
|---|---|---|---|---|
invitationBizId | String | Yes | path | Invitation business ID |
reason | String | No | query | Optional reason for declining |
Success Response
No Content204
"{null}"Error Responses
Unauthorized401
{
"success": false,
"code": "4010",
"message": "Invalid or expired token"
}Notes
- Returns HTTP 204 No Content on success.
- An optional
reasonquery parameter can be provided. - The invitation is consumed and cannot be declined again.