---
title: "Close the account"
method: POST
path: "/user/closeaccount"
tags: ["User"]
---

# Close the account

`POST /user/closeaccount`

## Request

- The document declares no server URL.
- Auth: one of:
  - API key in header `AccessKey`
  - API key in header `Authorization`

Close the current user account

## Request body

- CloseAccountRequestModel
  - `Password` string, nullable
  - `Reason` string, nullable

## Response `200`

The account was successfully closed

- CloseAccountResponseModel
  - `Success` boolean
  - `Message` string, nullable

## Other responses

- `400`: Failed closing the account
- `401`: The request authorization failed
- `500`: Internal Server Error

---

[API](https://skmtc.dev/bunny/apis/bunny-net-cdn-logging.md) · [All operations](https://skmtc.dev/bunny/apis/bunny-net-cdn-logging/llms.txt) · [OpenAPI document](https://skmtc.dev/bunny/apis/bunny-net-cdn-logging/revisions/9e622620664b?raw)
