Delete subaccount admin
DELETE
/api/v1/ext/subaccount-admins/{id}
Remove the person and all their access.
Auth: Bearer access_token
Scope: subaccount_admins.write
Their account, workspace and device access are deleted. Their tasks, appointments and messages stay. Cannot be undone; to stop them signing in for now, set status to inactive instead.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| id | path | number | yes | Subaccount admin id. |
Responses
| Status | When |
|---|---|
200 | OK |
401 | Missing or invalid token |
403 | Missing scope |
403 | The token was installed by a subaccount admin, not the account owner |
404 | Not a subaccount admin of the installer |
RequestResponses
curl -X DELETE "https://backend.mysmsgateway.app/api/v1/ext/subaccount-admins/{id}" \
-H "Authorization: Bearer <ACCESS_TOKEN>"OK
{
"success": true,
"message": "Subaccount admin deleted"
}Try It!
This endpoint needs a bearer token. Open Settings (top right) and paste your access_token.
Path parameters
Subaccount admin id.
Request URL
DELETEhttps://backend.mysmsgateway.app/api/v1/ext/subaccount-admins/%7Bid%7D
Previous
« Update subaccount admin
Next
List AI agents »
