Webhook Configuration
Endpoint:POST /api/v1/webhooks
Purpose: Register a webhook URL to receive event notifications from Enigma AI.
Request Body (JSON):
Authorization: Bearer <API_KEY>Content-Type: application/json
201 Created– Webhook successfully registered.- Body:
GET request with a challenge parameter to verify ownership of the URL.
Security: Each webhook request includes an X-Signature header containing an HMAC SHA256 signature of the request body using the secret provided during registration.
Error Cases:
400 Bad Request– Invalid payload.401 Unauthorized– Missing or invalid API key.409 Conflict– Webhook URL already registered.
Authorization header.
Permissions: Requires webhook:create scope.