---
title: "Créer un webhook"
method: POST
path: "/api/v1/webhooks"
tags: ["Webhooks"]
---

# Créer un webhook

`POST /api/v1/webhooks`

## Request

- Base URL: `https://lucidnest.test`
- URL: `https://lucidnest.test/api/v1/webhooks`
- Auth: HTTP bearer

Enregistre un nouveau webhook pour recevoir des notifications d'événements.
Le secret HMAC SHA-256 est généré automatiquement.

## Request body

- object
  - `url` string, required: L'URL de destination du webhook.
  - `events` string[], required: Les événements à écouter.

## Response `201`

- object
  - `data` object
    - `id` integer
    - `uuid` string
    - `url` string
    - `events` string[]
    - `is_active` boolean
    - `last_triggered_at` string, nullable
    - `created_at` string

## Other responses

- `422`

---

[API](https://skmtc.dev/lucidnest/apis/lucidnest-api-documentation.md) · [All operations](https://skmtc.dev/lucidnest/apis/lucidnest-api-documentation/llms.txt) · [OpenAPI document](https://skmtc.dev/lucidnest/apis/lucidnest-api-documentation/revisions/38638944c947?raw)
