Accounts
Close an account
Deactivate or permanently close an account.
The Close Account endpoint permanently deactivates an account and all associated resources. Once closed, the account cannot be reactivated, and access tokens linked to it will be invalidated.
Warning: This action is irreversible. All subscriptions, payments, and linked users under the account will be terminated.
Endpoint
Headers
Key | Value | Required |
---|---|---|
Authorization | Bearer <access_token> | Yes |
Response
Successful Response (200 OK)
Field | Type | Description |
---|---|---|
id | string | Unique identifier of the closed account. |
status | string | Always closed. |
closed_at | string | ISO 8601 timestamp of account closure. |
message | string | Confirmation message. |
Error Response (401 / 403 / 409)
Error Code | Meaning |
---|---|
unauthorized | Missing or invalid token. |
forbidden | The token does not have permission to close this account. |
active_subscriptions | The account has active subscriptions and must cancel them first. |
Example Usage
cURL
JavaScript (Fetch)
Closing an account will also revoke all issued API keys and remove access to dashboards. Always export your data before using this endpoint.