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

# Ottieni webhook

> Recupera un webhook

Recupera un webhook. La risposta non contiene mai il secret di firma.

> [!NOTE]
>
> Richiede lo scope `webhooks_manage`.

## Richiesta

### Parametri di percorso

**id** `string` *required*

Identificatore del webhook (UUID).

## Risposta

In caso di successo, l'API restituisce `200 OK` con il webhook.

**id** `string` *required*

Identificatore del webhook (UUID).

**url** `string` *required*

L'URL HTTPS a cui Aniva invia gli eventi.

**description** `string`

Testo libero per tuo riferimento. Può essere `null`.

**enabled\_events** `string[]` *required*

[Tipi di evento](https://docs.anivahealth.com/it/concepts/webhooks.md#eventi) che questo webhook riceve. `*` indica tutti i tipi.

**alert\_emails** `string[]` *required*

Indirizzi a cui Aniva invia un'email quando le consegne continuano a fallire.

**status** `string` *required*

`enabled` o `disabled`.

**disabled\_at** `string`

Istante ISO 8601 UTC in cui il webhook è stato disabilitato. `null` mentre è abilitato.

**disabled\_reason** `string`

Motivo per cui il webhook è stato disabilitato. Vedi [Avvisi di errore](https://docs.anivahealth.com/it/concepts/webhooks.md#avvisi-di-errore). `null`
mentre è abilitato.

**failing\_since** `string`

Istante ISO 8601 UTC in cui è iniziata la serie di errori attuale. `null` quando l'ultima consegna è riuscita.

**previous\_secret\_expires\_at** `string`

Istante ISO 8601 UTC in cui il secret precedente smette di firmare. `null` quando non è in corso alcuna rotazione.

**created\_at** `string` *required*

Istante ISO 8601 UTC in cui il webhook è stato creato.

**updated\_at** `string` *required*

Istante ISO 8601 UTC dell'ultima modifica.

## Risposte di errore

| Stato | Descrizione |
| - | - |
| `400` | Richiesta non valida. Vedi il messaggio `error`. |
| `401` | Chiave API non valida. |
| `403` | Nessuna chiave API, oppure chiave API senza lo scope `webhooks_manage`. |
| `404` | Webhook non trovato, oppure appartiene a un'altra chiave API. |
| `500` | Errore interno del server. |

```bash cURL theme={null}
curl --request GET \
  --url https://anivahealth.com/api/v1/webhooks/4a6c8e0f-2b4d-4f6a-8c0e-2a4c6e8f0b1d \
  --header 'x-api-key: YOUR_API_KEY'
```

```json 200 theme={null}
{
  "id": "4a6c8e0f-2b4d-4f6a-8c0e-2a4c6e8f0b1d",
  "url": "https://partner.example.com/webhooks/aniva",
  "description": "Production",
  "enabled_events": [
    "appointment.confirmed",
    "appointment.results.completed",
    "home_kit_order.results.completed"
  ],
  "alert_emails": ["ops@partner.example.com"],
  "status": "enabled",
  "disabled_at": null,
  "disabled_reason": null,
  "failing_since": null,
  "previous_secret_expires_at": null,
  "created_at": "2026-10-15T08:00:00.000Z",
  "updated_at": "2026-10-15T08:00:00.000Z"
}
```

```json 404 theme={null}
{
  "error": "Webhook not found"
}
```


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