---
title: "Switch a webhook endpoint back on"
method: POST
path: "/webhooks/{id}/enable"
tags: ["Webhooks"]
---

# Switch a webhook endpoint back on

`POST /webhooks/{id}/enable`

## Request

- Base URL: `https://api.hypamoon.com/api/v1`
- URL: `https://api.hypamoon.com/api/v1/webhooks/{id}/enable`
- Auth: one of:
  - HTTP bearer
  - OAuth 2 (authorization code, authorization URL `https://app.hypamoon.com/oauth/authorize`, token URL `https://api.hypamoon.com/oauth/token`, scopes: `webhooks:write`)

An endpoint is switched off after 50 failed deliveries in a row. This switches it back on and resets the counter; events from the time it was off are not resent.

## Path parameters

- `id` string, uuid, required

## Response `200`

The endpoint.

- WebhookEndpoint: A webhook endpoint. Never with the secret.
  - `id` string, uuid, required
  - `url` string, required
  - `events` string[], required: The subscribed events, from call.completed, call.summary.ready, message.delivered, message.failed, conversation.summary.ready, balance.low, balance.topped_up, balance.reload_failed, document.created.
  - `active` boolean, required: false after 50 failed deliveries in a row; switch it back on with POST /webhooks/{id}/enable.
  - `secret_prefix` string, required: The first characters of the secret, to recognize it.
  - `created_at` string, date-time, required: When the endpoint was created.
  - `last_success_at` string, date-time, nullable, required: The last delivery that got a 2xx.
  - `last_failure_at` string, date-time, nullable, required: The last delivery that failed.
  - `consecutive_failures` integer, required: Failed deliveries in a row.
  - `app_id` string, uuid: Only with a filter on one app: the endpoint gets the email events of that app's emails only.

## Other responses

- `401`: Unauthorized: unauthorized, missing_api_key, invalid_api_key, api_key_revoked, project_deleted.
- `403`: Forbidden: project_not_enabled, key_mode_mismatch, missing_scope, verification_required.
- `404`: Not Found: not_found.
- `429`: Too Many Requests: rate_limited.
- `500`: Internal Server Error: internal_error.
- `503`: Service Unavailable: service_unavailable.

---

[API](https://skmtc.dev/hypamoon/apis/hypamoon-api.md) · [All operations](https://skmtc.dev/hypamoon/apis/hypamoon-api/llms.txt) · [OpenAPI document](https://skmtc.dev/hypamoon/apis/hypamoon-api/revisions/9f0b90004c06?raw)
