Register a new webhook for the authenticated brand.
POST /brands/me/webhooks
POST
/brands/me/webhooks
Returns the webhook DTO with a one-time raw secret. The server stores only the AES-encrypted form; the raw secret is NEVER shown again. Supported events: polst.voted, polst.closed, campaign.step_completed, campaign.completed, brand.updated, brand.theme_updated.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Header Parameters
Section titled “Header Parameters ” X-Polst-Idempotency-Key
required
string
Idempotency key, 8–255 URL-safe chars.
Request Body required
Section titled “Request Body required ”Responses
Section titled “ Responses ”Webhook created.
object
data
required
Missing idempotency key.
Missing or invalid bearer token.
Bearer token lacks manage scope or brand context.
Request body failed validation.