QamaqQamaq
POST

Webhook erstellen

/webhooks

Erstellt 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*:string

Webhook name

url*:string

Webhook URL to receive events

events*:string[]

List of event types to subscribe to

secret:string

Secret for HMAC signature verification

headers:object

Custom headers to include in requests

is_active:boolean

Whether 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:string
name:string
url:string
events:string[]
has_secret:boolean
headers:object
is_active:boolean
last_triggered_at:string (date-time)
last_status:string
failure_count:integer
created_at:string (date-time)
updated_at:string (date-time)
}