> ## 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.

# Unbreach an account

> Restore one failed account to active without a firm-wide reconciliation.

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 unbreach their own account.

Unbreach is not [unlock](https://docs.tradara.com/prop-firm/operations/lock-account.md). Unlock clears a lockout and leaves a **failed** account failed. Unbreach sets that account back to **active**, clears its lockout, and asks risk-engine to drop the in-memory halt. To mark an account failed, use [Breach an account](https://docs.tradara.com/prop-firm/operations/breach-account.md).

It does not change balances, fills, positions, or other accounts. [Reconciliation](https://docs.tradara.com/prop-firm/operations/reconciliation.md) is the job that rewrites a time window of fills and balances and can unbreach every failed account in that window.

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

`operationId: unbreachAccount`

No request body.

```bash theme={null}
curl -X POST "$TRADARA_BASE_URL/v1/accounts/$ACCOUNT_ID/unbreach" \
  -H "X-Tradara-Api-Key: $TRADARA_API_KEY"
```

### Response — `200 OK`

```json theme={null}
{ "status": "unbreached" }
```

The account `status` is `active`. Firm WebSocket and webhooks emit `accounts.updated` with `action: unbreach` and `accounts.status_changed` with `status: active`.

Calling this again on an account that is already active and has no lockout returns the same `200` and retries the risk-engine unlock. Use that retry when a previous call returned `502`.

## When the account can fail again

Unbreach does not move the max-loss cap or the cash balance. If equity is still through a hard limit, the next risk check can set the account back to failed. Adjust the [balance](https://docs.tradara.com/prop-firm/operations/adjust-balance.md) or the [max-loss limit](https://docs.tradara.com/prop-firm/operations/max-loss-limit.md) first when the trader should keep trading.

You cannot unbreach while a firm-wide [emergency halt](https://docs.tradara.com/prop-firm/operations/emergency-halt.md) is active, and you cannot use this route to clear `FIRM_EMERGENCY_HALT`. Release halt first.

## Errors

| HTTP | Meaning |
| - | - |
| `403` | Halt is active, the lockout reason is `FIRM_EMERGENCY_HALT`, or the caller is the trader rather than a firm operator. |
| `404` | Account not in your firm, or the API key lacks `accounts:write`. |
| `409` | Account is not failed. An active account that still has a lockout needs [unlock](https://docs.tradara.com/prop-firm/operations/lock-account.md), not unbreach. |
| `502` | Account is active in accounts, but risk-engine unlock failed. Retry this request. |


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