# Take an account offline

URL: https://docs.fxapis.com/api-reference/lifecycle/take-an-account-offline

> Take an account offline. Takes the account offline and keeps it, with its stored password, in standby — ready to be brought online again.

`POST https://api.fxapis.com/v1/accounts/{id}/cool`

Takes the account offline and keeps it, with its stored password, in `standby` — ready to be brought online again. Open positions are untouched: a stop loss or take profit is held by the broker and keeps working while the account is offline.

Returns 409 while an order is in flight. Going offline then would turn a known outcome into an unknown one, and a retry on top of that is a duplicate trade.

Authentication: `Authorization: Bearer <API key>`.

#### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | string (uuid) | yes |  |

#### Responses

- `200`
- `401`
- `404`
- `409`

Failures return `{ "error": { "code", "message" } }`; every code is listed at https://docs.fxapis.com/errors.

#### 200 response fields

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `data` | object | no |  |
| `data.accountId` | string (uuid) | no |  |
| `data.stopped` | boolean | no | False when the account was already offline. |
| `data.state` | string | no |  |