---
title: "Close an Account"
method: POST
path: "/v1/accounts/{account_id}/actions/close"
tags: ["Accounts"]
---

# Close an Account

`POST /v1/accounts/{account_id}/actions/close`

## Request

- Base URL: `https://broker-api.giftcity.sandbox.in.alpaca.markets`
- URL: `https://broker-api.giftcity.sandbox.in.alpaca.markets/v1/accounts/{account_id}/actions/close`
- Auth: HTTP basic

This operation closes an active account. The underlying records and information of the account are not deleted by this operation.

**Before closing an account, you are responsible for closing all the positions and withdrawing all the money associated with that account. Learn more in the Positions Documentation.**

## Response `204`

Success

## Other responses

- `404`: Account Not Found

---

[API](https://skmtc.dev/alpacahq/apis/broker-api.md) - [All operations](https://skmtc.dev/alpacahq/apis/broker-api/llms.txt) - [OpenAPI document](https://skmtc.dev/alpacahq/apis/broker-api/revisions/381b1ecb3ccc?raw)
