/api/v2/me/actions/close-account Permanently close the authenticated account.
Only an account that holds nothing can be closed; check GET /api/v2/me/actions/close-account first.
Closing stops all sign-in, revokes every session, API key and linked sign-in method, removes the personal details on the account, and closes open support tickets (abuse cases stay open).
Invoices that were already issued are kept.
A confirmation is sent to the address the account had.
This cannot be undone.
Requires a step-up: the current password, or, for account owners verified with BankID, a one-time BankID confirmation started from the account settings page (browser session only; the confirmation is held server-side and consumed on use).
API keys, contacts and delegated sessions cannot use this operation.
write:account
Authenticate with an API key in the Authorization: Bearer <token> header.
Authorization Bearer <token> Accept application/json Content-Type application/json currentPassword string Required, unless the browser session holds a fresh one-time BankID confirmation. When it is omitted without that confirmation, the request fails with invalid_request; an expired or already-used confirmation fails with 401 bankid_verification_required.
closedAt string required When the account was closed.
currentPassword is missing without a BankID confirmation (invalid_request). No body No response body
invalid_credentials), or the session's BankID confirmation is expired or already used (bankid_verification_required). No body No response body
No response body
type string
· Example: https://developer.hostup.se/errors/invalid_request title string
· Example: Validation failed status integer
· Example: 400 detail string
· Example: The request body failed validation. code string
· Example: invalid_request Stable machine-readable code. Branch on this field, not on detail.
instance string
· Example: /api/v2/orders requestId string
· Example: req_01hxa3b4c5d6e7f8g9h0j1k2m3 timestamp string
· Example: 2026-04-27T12:34:56.000Z errors array<object> Field-level validation errors when code is invalid_request.
errors[].pointer string required
· Example: /items/0/eppCode errors[].detail string required
· Example: `eppCode` is required for this transfer. errors[].code string required
· Example: missing_required extensions object account_closure_blocked); the response carries the same fields as the eligibility read, so blockers says what to resolve. Or the account is not active (account_inactive). Nothing was changed. No body No response body
Retry-After seconds plus X-RateLimit-* headers. 10 fields type string
· Example: https://developer.hostup.se/errors/invalid_request title string
· Example: Validation failed status integer
· Example: 400 detail string
· Example: The request body failed validation. code string
· Example: invalid_request Stable machine-readable code. Branch on this field, not on detail.
instance string
· Example: /api/v2/orders requestId string
· Example: req_01hxa3b4c5d6e7f8g9h0j1k2m3 timestamp string
· Example: 2026-04-27T12:34:56.000Z errors array<object> Field-level validation errors when code is invalid_request.
errors[].pointer string required
· Example: /items/0/eppCode errors[].detail string required
· Example: `eppCode` is required for this transfer. errors[].code string required
· Example: missing_required extensions object type string
· Example: https://developer.hostup.se/errors/invalid_request title string
· Example: Validation failed status integer
· Example: 400 detail string
· Example: The request body failed validation. code string
· Example: invalid_request Stable machine-readable code. Branch on this field, not on detail.
instance string
· Example: /api/v2/orders requestId string
· Example: req_01hxa3b4c5d6e7f8g9h0j1k2m3 timestamp string
· Example: 2026-04-27T12:34:56.000Z errors array<object> Field-level validation errors when code is invalid_request.
errors[].pointer string required
· Example: /items/0/eppCode errors[].detail string required
· Example: `eppCode` is required for this transfer. errors[].code string required
· Example: missing_required extensions object upstream_failed). Nothing was changed; retry later. No body No response body
service_unavailable). Retry shortly. No body No response body
https://cloud.hostup.se/api/v2/me/actions/close-account curl -X POST "https://cloud.hostup.se/api/v2/me/actions/close-account" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{
"currentPassword": "current-account-password"
}' {
"closedAt": "2026-10-06T12:00:00.000Z"
} {
"currentPassword": "current-account-password"
}