# Enable a webhook endpoint

URL: https://docs.fxapis.com/api-reference/webhooks/enable-a-webhook-endpoint

> Enable a webhook endpoint. Events are sent again from the next one, and the failure count starts from zero.

`POST https://api.fxapis.com/v1/webhooks/{id}/enable`

Events are sent again from the next one, and the failure count starts from zero. Events already queued to it before it was switched off can be redelivered from the delivery log; events recorded while it was off never reached that log and can't be redelivered. Safe to repeat.

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

#### Parameters

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

#### Responses

- `200`
- `401`
- `402`
- `403`
- `404`

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.id` | string (uuid) | no |  |
| `data.url` | string | no | Example: `"https://example.com/fxapis/webhooks"` |
| `data.description` | null \| string | no | Example: `"Copier"` |
| `data.events` | "order.filled" \| "order.rejected" \| "order.unresolved" \| "order.resolved" \| "order.cancelled" \| "position.opened" \| "position.closed" \| "account.state_changed" \| "wave.settled"[] | no | The events this endpoint receives. Empty means every event. |
| `data.enabled` | boolean | no | Whether events are being sent. False when you disabled it, or when we did after 20 failed deliveries in a row — see `disabledReason`. |
| `data.disabledAt` | null \| string (date-time) | no | When we switched it off for failing. Null when you disabled it yourself. |
| `data.disabledReason` | null \| string | no | Example: `"20 deliveries in a row failed"` |
| `data.consecutiveFailures` | integer | no | Failed deliveries since the last success. |
| `data.secretHint` | null \| string | no | The signing secret's last characters, to tell secrets apart. Example: `"whsec_…Qx4w"` |
| `data.previousSecretExpiresAt` | null \| string (date-time) | no | After a rotation, deliveries are signed with the old secret too until this time. |
| `data.createdAt` | string (date-time) | no |  |
| `data.updatedAt` | string (date-time) | no |  |