cURL
curl --request POST \ --url https://api.getomni.ai/webhook \ --header 'Content-Type: application/json' \ --header 'x-api-key: <api-key>' \ --data '{ "url": "<string>", "id": "<string>", "headers": [ {} ], "isEnabled": true }'
{ "id": "123e4567-e89b-12d3-a456-426614174000", "success": true }
Create or update a webhook
Webhook URL
Webhook ID. If not provided, a new webhook will be created
Headers sent with the webhook
Show headers
Example:
{ "headers": [ { "key": "Authorization", "value": "Bearer <token>" } ] }
Whether the webhook is enabled
Webhook ID
Whether the webhook was created or updated successfully