create_webhook
Create a new webhook subscription for real-time events.
WHEN TO USE:
Setting up real-time notifications for device events
Integrating with external systems
Monitoring ad playback and impressions
AVAILABLE EVENTS:
device.online: When a device comes online
device.offline: When a device goes offline
impression.recorded: When an impression is logged
campaign.allocated: When a campaign is allocated to a device
payout.processed: When a payout is processed
programmatic.ad_started: When a programmatic ad begins playing
programmatic.ad_ended: When a programmatic ad finishes playing
programmatic.no_fill: When a programmatic ad request gets no fill
programmatic.error: When a programmatic ad request errors
RETURNS:
webhook_id: Unique webhook identifier
url: The webhook endpoint URL
events: Subscribed events
secret: HMAC signing secret (if provided)
status: enabled/disabled
EXAMPLE: User: "Set up a webhook for device status changes" create_webhook({ url: "https://api.mycompany.com/trillboards/webhooks", events: ["device.online", "device.offline", "programmatic.error"], secret: "my-signing-secret-123" })
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | HTTPS endpoint URL to receive webhook events | |
| events | Yes | Events to subscribe to | |
| secret | No | HMAC signing secret for verifying webhook authenticity (optional but recommended) | |
| description | No | Human-readable description for this webhook |