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

# Vypsat webhooky

> Vypsat webhooky patřící tvému API klíči

Vypiš webhooky, které patří tvému API klíči, od nejstaršího. Odpověď nikdy neobsahuje podpisový
klíč.

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

## Požadavek

Tento endpoint nepřijímá žádné parametry.

## Odpověď

Při úspěchu vrátí API `200 OK` s polem objektů webhooků.

**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

| Status | Popis |
| - | - |
| `401` | Neplatný API klíč. |
| `403` | Chybějící API klíč, nebo API klíč bez oprávnění `webhooks_manage`. |
| `500` | Interní chyba serveru. |

```bash cURL theme={null}
curl --request GET \
  --url https://anivahealth.com/api/v1/webhooks \
  --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"
  }
]
```


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