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

# Pridobi webhook

> Pridobi en webhook

Pridobi en webhook. Odgovor nikoli ne vsebuje skrivnosti za podpisovanje.

> [!NOTE]
>
> Zahteva obseg `webhooks_manage`.

## Zahteva

### Parametri poti

**id** `string` *required*

Identifikator webhooka (UUID).

## Odgovor

Ob uspehu API vrne `200 OK` z webhookom.

**id** `string` *required*

Identifikator webhooka (UUID).

**url** `string` *required*

HTTPS URL, na katerega Aniva pošilja dogodke.

**description** `string`

Prosto besedilo za lastno evidenco. Lahko je `null`.

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

[Vrste dogodkov](https://docs.anivahealth.com/sl/concepts/webhooks.md#dogodki), ki jih ta webhook prejema. `*` pomeni vse vrste.

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

Naslovi, na katere Aniva pošilja e-pošto, ko dostave vedno znova ne uspejo.

**status** `string` *required*

`enabled` ali `disabled`.

**disabled\_at** `string`

Trenutek ISO 8601 UTC, ko je bil webhook onemogočen. `null`, dokler je omogočen.

**disabled\_reason** `string`

Zakaj je bil webhook onemogočen. Glej [Obvestila o napakah](https://docs.anivahealth.com/sl/concepts/webhooks.md#obvestila-o-napakah). `null`,
dokler je omogočen.

**failing\_since** `string`

Trenutek ISO 8601 UTC, ko se je začel trenutni niz neuspehov. `null`, ko je zadnja dostava uspela.

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

Trenutek ISO 8601 UTC, ko prejšnja skrivnost neha podpisovati. `null`, ko rotacija ni v teku.

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

Trenutek ISO 8601 UTC, ko je bil webhook ustvarjen.

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

Trenutek ISO 8601 UTC zadnje spremembe.

## Odgovori z napako

| Status | Opis |
| - | - |
| `400` | Neveljavna zahteva. Glej sporočilo `error`. |
| `401` | Brez ključa API ali neveljaven ključ API. |
| `403` | Tvoj ključ API nima obsega `webhooks_manage`. |
| `404` | Webhook ni najden ali pripada drugemu ključu API. |
| `500` | Notranja napaka strežnika. |

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