v1

latestOpenAPI 3.0.32026-07-2226694862.5 KB
Webhooks

Create Webhook

post/networks/webhooks

Request body

webhook_typesstring[] required

Event types that should trigger this webhook. You can specify more than one.

http_method'get' | 'post' required

HTTP method to use when sending the webhook.

webhook_urlstring required

The webhook endpoint URL.

descriptionstring required

Name or description for the webhook.

status'active' | 'inactive' required

Webhook status.

Response

network_webhook_idinteger

Unique webhook ID.

network_idinteger

Network ID.

webhook_typesstring[]

Event types that trigger this webhook.

http_method'get' | 'post'

HTTP method used when sending the webhook.

webhook_urlstring

The webhook endpoint URL.

descriptionstring

Optional description for the webhook.

status'active' | 'inactive'

Webhook status.

time_createdinteger

Unix timestamp of creation.

time_savedinteger

Unix timestamp of last update.

Example response

{
  "network_webhook_id": 1,
  "network_id": 1,
  "webhook_types": [
    "affiliate_updated"
  ],
  "http_method": "post",
  "webhook_url": "https://example.com/webhook",
  "description": "My webhook",
  "status": "active",
  "time_created": 1774726693,
  "time_saved": 1774726693
}