Preview a broadcast (variable coverage + sample)

Search Documentation

Search across all developer documentation

broadcasts

Preview a broadcast (variable coverage + sample)

POST /v1/broadcasts/{id}/preview
Auth required api.broadcasts.view

Pre-send validation for a broadcast: the parallel to segment preview. For the broadcast's pinned template version and resolved audience it classifies every declared template variable (attribute, reserved, or unbound) and computes per-variable coverage over the current audience population — what fraction is resolved by a contact attribute, falls back to default_template_data, or renders blank — plus a small rendered sample.

Read-only: it never mutates the broadcast. Runs under the same ClickHouse query governors segment preview uses. Returns 422 validation_failed when the template version has no renderable content or the audience cannot be resolved (e.g. an invalid segment predicate); unresolved variables are surfaced in the body, not raised.

Path parameters

id string<uuid> required

Resource UUID. An unparseable id reads as a clean 404 not_found.

Responses

200 The computed preview application/json
401 Missing, malformed, or unknown API key application/problem+json
403 Key lacks the required scope or plan limit violated application/problem+json
404 Resource not found application/problem+json
422 Query parameter or path value failed validation application/problem+json
429 Per-org rate limit exceeded application/problem+json
500 Unexpected server-side failure. The code is internal_error. The request_id field can be quoted to SendOps support to investigate. application/problem+json