Skip to main content
Use this endpoint to leave a workspace that you are currently a member of. Once you leave, your access to all applications and resources in that workspace is revoked immediately. Workspace owners cannot leave their own workspace — you must first transfer ownership or delete the workspace instead.

Request

DELETE https://api.virtuscloud.app/v2/workspaces/leave

Headers

Authorization
string
required
Your Virtus Cloud API key. Pass it directly as the header value — no prefix required.Example: Authorization: vc_live_xxxxxxxxxxxx

Body

workspaceId
string
required
The unique identifier of the workspace you want to leave.

Response

status
string
Returns "success" when you have successfully left the workspace.
Workspace owners cannot use this endpoint to leave their own workspace. Delete the workspace or transfer ownership before attempting to leave.

Examples

curl -X DELETE https://api.virtuscloud.app/v2/workspaces/leave \
  -H "Authorization: <api_key>" \
  -H "Content-Type: application/json" \
  -d '{"workspaceId": "dcedcd13d7e272a7b32a70f6a1d180f23c12d759"}'

Response Example

{
  "status": "success"
}