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

# Získat webhook

> Načíst jeden webhook

Načti jeden webhook. Odpověď nikdy neobsahuje podpisový tajný klíč.

> [!NOTE]
>
> Vyžaduje scope `webhooks_manage`.

## Požadavek

### Parametry cesty

**id** `string` *required*

Identifikátor webhooku (UUID).

## Odpověď

Při úspěchu API vrátí `200 OK` s webhookem.

**id** `string` *required*

Identifikátor webhooku (UUID).

**url** `string` *required*

HTTPS URL, na kterou Aniva posílá události.

**description** `string`

Volný text pro tvou vlastní poznámku. Může být `null`.

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

[Typy událostí](https://docs.anivahealth.com/cs/concepts/webhooks.md#udalosti), které tento webhook přijímá. `*` znamená všechny typy.

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

Adresy, na které Aniva posílá e-maily, když doručování opakovaně selhává.

**status** `string` *required*

`enabled` nebo `disabled`.

**disabled\_at** `string`

Čas v ISO 8601 UTC, kdy byl webhook vypnut. `null`, dokud je zapnutý.

**disabled\_reason** `string`

Proč byl webhook vypnut. Viz [Oznámení o selhání](https://docs.anivahealth.com/cs/concepts/webhooks.md#upozorneni-na-selhani). `null`,
dokud je zapnutý.

**failing\_since** `string`

Čas v ISO 8601 UTC, kdy začala aktuální série selhání. `null`, pokud poslední doručení uspělo.

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

Čas v ISO 8601 UTC, kdy předchozí tajný klíč přestane podepisovat. `null`, pokud neprobíhá rotace.

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

Čas v ISO 8601 UTC, kdy byl webhook vytvořen.

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

Čas poslední změny v ISO 8601 UTC.

## Chybové odpovědi

| Stav | Popis |
| - | - |
| `400` | Neplatný požadavek. Viz zprávu `error`. |
| `401` | Neplatný API klíč. |
| `403` | Chybí API klíč nebo API klíč nemá scope `webhooks_manage`. |
| `404` | Webhook nebyl nalezen nebo patří jinému API klíči. |
| `500` | Interní chyba serveru. |

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