webhook_create
Create webhooks to listen for Voog events (ticket, order, form) and send HTTP requests to your endpoint. Specify target, event, and URL.
Instructions
Create a webhook (POST /webhooks). Body is FLAT — no envelope wrapper. Required: target, event, url. Optional: enabled (default true), target_id, source (default 'api'), description. Voog target+event matrix: target='ticket' → create/update/delete; target='form' → submit; target='order' → create/update/delete/paid/cancelled/shipped/payment_failed. Voog returns 422 for invalid combinations.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | Yes | ||
| target | Yes | ticket | form | order | |
| event | Yes | Event name; depends on target (see description) | |
| url | Yes | HTTP(S) endpoint Voog calls when the event fires | |
| enabled | No | Whether the webhook fires (default true) | |
| target_id | No | Optional id of the specific target object (e.g. order id) | |
| source | No | Origin marker — 'api' (default) or 'user' | |
| description | No | Free-text description (optional) |