Skip to main content
WEBHOOK
Required permissions:
  • webhook_receive:ad_campaigns

Overskrifter

webhook-id
string
påkrævet

A unique identifier for this webhook request

Eksempel:

"msg_xxxxxxxxxxxxxxxxxxxxxxxx"

webhook-signature
string
påkrævet

The signature of the webhook request with the webhook version prepended

Eksempel:

"v1,BASE64ENCODEDSIGNATURE"

webhook-timestamp
string
påkrævet

The timestamp in seconds since the Unix epoch that the webhook was sent at on the server

Eksempel:

"1727606400"

Krop

application/json
api_version
string
påkrævet

The API version for this webhook

Allowed value: "v1"
Eksempel:

"v1"

api_version_date
string | null
påkrævet

The dated API version (Api-Version-Date) the payload is serialized to

Eksempel:

"2026-07-20"

data
object
påkrævet
id
string
påkrævet

A unique ID for every single webhook request

Eksempel:

"msg_xxxxxxxxxxxxxxxxxxxxxxxx"

timestamp
string<date-time>
påkrævet

The timestamp in ISO 8601 format that the webhook was sent at on the server

Eksempel:

"2025-01-01T00:00:00.000Z"

type
string
påkrævet

The webhook event type

Allowed value: "ad_campaign.updated"
Eksempel:

"ad_campaign.updated"

account_id
string | null

The account ID that this webhook event is associated with

Eksempel:

"biz_xxxxxxxxxxxxxx"

previous_attributes
object

For some .updated events, the old values of the payload fields that changed, keyed by field name. Omitted when no capture is available for the event

Eksempel:

Svar

200

Return a 200 status to indicate that the data was received successfully