Playground Generate
Enqueue an ARQ playground_generation task per target lead.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Body
POST /campaigns/{id}/playground/generate body.
Enqueues one ARQ task per target lead. Each call creates a fresh
batch_id server-side — V1 does not coalesce spam-clicks; the client
should debounce the button. The canonical idempotency tuple
(campaign_id, campaign_lead_id, prompt_version_hash, batch_id) keeps
duplicate workers no-op via the DB-authoritative cancel/batch check.
Campaign step to generate drafts for.
1 <= x <= 32Number of PERSONALIZATION-assigned leads to enqueue.
1 <= x <= 200Optional override prompt; else server resolves via campaign.system_prompt -> sender.custom_prompt -> DEFAULT.
32000