Webhooks: Add a webhook
gapify_add_webhookAdd a webhook subscription to an account to receive event notifications at a specified URL. Choose which events to subscribe to.
Instructions
Add a webhook subscription to the account [Webhooks]
POST /api/v1/accounts/{account_id}/webhooks
Auth: User API key (header api-access-token).
Body fields: url, subscriptions. Extra fields can be passed via extra_body.
Text values may be written in Persian (Farsi) or any other language and are sent unchanged; IDs, numbers and phone numbers may use Persian or Arabic-Indic digits.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | The url where the events should be sent Example: "https://example.com" | |
| account_id | Yes | The numeric ID of the account | |
| extra_body | No | Additional JSON body fields to merge into the request (for keys not listed above). | |
| subscriptions | No | The events you want to subscribe to. Example: ["conversation_created"] |