> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tradara.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Breach an account

> Mark one account failed and record an operator breach reason.

A firm API key (`X-Tradara-Api-Key`) can call this route. The key needs `accounts:write` and can only act on accounts in its firm. Traders cannot breach their own account.

Breach sets the account `status` to `failed` and stores `lockout_reason`. Cash, fills, and history stay on the same account. It does not cancel working orders or flatten positions. Call [flatten](https://docs.tradara.com/prop-firm/operations/flatten-and-cancel.md) first when you also need to clear exposure.

To put the account back to active, call [unbreach](https://docs.tradara.com/prop-firm/operations/unbreach-account.md).

```http theme={null}
POST /v1/accounts/{account_id}/breach
```

`operationId: breachAccount`

### Body

| Field | Required | Notes |
| - | - | - |
| `reason` | yes | Operator reason stored on the account and in the lockout log. Use `ADMIN_BREACH` for an operator-initiated breach. |

```bash theme={null}
curl -X POST "$TRADARA_BASE_URL/v1/accounts/$ACCOUNT_ID/breach" \
  -H "X-Tradara-Api-Key: $TRADARA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "reason": "ADMIN_BREACH"
  }'
```

### Response — `200 OK`

```json theme={null}
{
  "item": {
    "id": "5b1c8a2e-9f2d-4d3c-b6f0-2b6c5b6e1f9a",
    "account_name": "ONYXEV1234",
    "status": "failed",
    "lockout_reason": "ADMIN_BREACH"
  }
}
```

`item` is the account row after the update. Firm WebSocket and webhooks emit `accounts.updated` and `accounts.status_changed` with `status: failed`.

## Errors

| HTTP | Meaning |
| - | - |
| `400` | `account_id` is not a UUID, `reason` is empty, or the body is not JSON. |
| `403` | The caller is the trader rather than a firm operator. |
| `404` | Account is not in your firm, or the API key lacks `accounts:write`. |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.