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, source.scan.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Header Parameters
Section titled “Header Parameters ” X-Polst-Idempotency-Key
required
string
Idempotency key, 8–128 URL-safe chars.
Request Body required
Section titled “Request Body required ”Responses
Section titled “ Responses ”Webhook created.
object
data
required
object
id
required
string format: uuid
url
required
string format: uri
events
required
Array<string>
status
required
string
verified
required
boolean
createdAt
required
string format: date-time
updatedAt
required
string format: date-time
secret
required
string
Missing idempotency key.
Missing or invalid bearer token.
Bearer token lacks manage scope or brand context.
Request body failed validation.