Delete workspace
DELETE
/api/v1/ext/workspaces/{id}
Permanently delete a workspace.
Auth: Bearer access_token
Scope: workspaces.write
Permanently deletes the workspace — this is a hard delete and cannot be undone. A subsequent GET / PATCH / DELETE on its id returns 404 Not Found. A workspace with ANY device or SIM still attached (Android/SMS, WhatsApp, iMessage, RCS, or an assigned SIM) is protected: the request is rejected with a 400 listing what is still attached. Unassign or delete those first, then retry the delete.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| id | path | number | yes | Workspace id. |
Responses
| Status | When |
|---|---|
200 | Deleted permanently |
400 | Workspace still has devices or SIMs attached — unassign/delete them first |
404 | Workspace does not exist or is not owned by the installer |
RequestResponses
curl -X DELETE "https://backend.mysmsgateway.app/api/v1/ext/workspaces/{id}" \
-H "Authorization: Bearer <ACCESS_TOKEN>"Deleted permanently
{
"success": true,
"message": "Workspace deleted.",
"data": {
"id": 7,
"deleted": true
}
}Try It!
This endpoint needs a bearer token. Open Settings (top right) and paste your access_token.
Path parameters
Workspace id.
Request URL
DELETEhttps://backend.mysmsgateway.app/api/v1/ext/workspaces/%7Bid%7D
Previous
« Update workspace
Next
List contacts »
