QamaqQamaq
POST

Webhookを作成

/webhooks

イベント通知を受信するための新しいWebhookを作成します。

一般的なユースケース

  • Sync ticket updates to external systems
  • Trigger automations when files are uploaded
  • Send notifications to Slack or Teams

重要な注意事項

  • Webhook payloads are signed with your secret for verification
  • Failed deliveries are retried up to 3 times
  • Use webhook.site for testing during development

リクエストボディ

application/json必須
{
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

}

コード例

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"}'

レスポンス

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)
}