POST
Webhook erstellen
/webhooksErstellt einen neuen Webhook, um Ereignisbenachrichtigungen zu erhalten.
Häufige Anwendungsfälle
- Sync ticket updates to external systems
- Trigger automations when files are uploaded
- Send notifications to Slack or Teams
Wichtige Hinweise
- Webhook payloads are signed with your secret for verification
- Failed deliveries are retried up to 3 times
- Use webhook.site for testing during development
Anfragekörper
application/jsonerforderlich
{
name*:stringWebhook name
url*:stringWebhook URL to receive events
events*:string[]List of event types to subscribe to
secret:stringSecret for HMAC signature verification
headers:objectCustom headers to include in requests
is_active:booleanWhether the webhook is active
Default: true
}
Code-Beispiele
curl -X POST "https://api.qamaq.io/api/v1/webhooks" \
-H "Authorization: Bearer qmq_your_api_key" \
-H "Content-Type: application/json" \
-d '{"key": "value"}'Antworten
201Webhook created successfully
Response Body
{
id:stringname:stringurl:stringevents:string[]has_secret:booleanheaders:objectis_active:booleanlast_triggered_at:string (date-time)last_status:stringfailure_count:integercreated_at:string (date-time)updated_at:string (date-time)}