Register a webhook subscription; the signing secret is returned ONCE
POST/v1/networks/:networkId/webhooks
Registers an endpoint to receive push deliveries for the given lifecycle events. Valid event types are offer.accepted, offer.rejected, optin.completed, invitation.accepted, creative.ready, and creative.failed. The response carries a high-entropy signing secret returned only here (store it now); it keys the HMAC-SHA256 X-AdBridge-Signature on every delivery so you can verify authenticity. New subscriptions start active. Requires administrator access to the network.
Request
Responses
- 201
- 400
- 401
- 403
- 404
Webhook created; response carries the secret (shown only here)
Response Headers
Location
URL of the created webhook
Missing/invalid url (must be http/https) or unknown/empty events
Missing or invalid API key
The API key is not authorized for this resource
The requested resource was not found