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

# Close the account

`POST /user/closeaccount`

## Request

- Base URL: `https://api.bunny.net`
- URL: `https://api.bunny.net/user/closeaccount`
- Auth: one of:
  - API key in header `AccessKey`
  - API key in header `Authorization`
- TypeScript: <https://skmtc.dev/bunny/apis/bunny-net-api/docs/user/closeaccount/post.ts> (a function with typed inputs; its response is checked against the schema)

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-api.md) - [All operations](https://skmtc.dev/bunny/apis/bunny-net-api/llms.txt) - [OpenAPI document](https://skmtc.dev/bunny/apis/bunny-net-api/revisions/2b06f94dbfbf?raw)
