Send a broadcast again to part of its audience
https://api.app2email.com/v1/{number}/broadcasts/{code}/retarget Scope: messages:send. Not with a sandbox key (except dry_run). Makes a NEW broadcast with the same template, values and media as a dashboard broadcast, to those of its recipients who did not read it, read it but did not click, clicked, replied (wrote back within 7 days of the send) or did not reply. The new broadcast sends in the background; the Do Not Call list and the plan limit are checked again, and broadcast.completed follows. dry_run only counts. The key's approval limit and daily cap apply as for POST /messages.
Path
-
Your app2email WhatsApp number - the number the message is sent FROM. Full number with country code, digits only.
e.g.4976659348270 -
The broadcast's code.
e.g.k3XbQ9rTzP2mWv7
Body application/json required
-
not_read: taken by WhatsApp but not read; read_not_clicked; clicked: opened a tracked link; replied: wrote back within 7 days of the send; not_replied.
not_readread_not_clickedclickedrepliednot_replied - name string
The new broadcast's name (default: the old name and the audience).
- dry_run boolean
true: only count; nothing is made or sent.
Responses
Fields
- e.g.
true - dry_run boolean
- audience string
- recipients integer
- numbers string[]
dry_run only (the first 1000).
-
5 fields
- code string
- name string
- status string
- status_url string
- report_url string
- note string
Errors
- 400 The request is malformed (missing or invalid fields, query parameters or times).
- 401 Missing, invalid, revoked or expired API key.
- 403 The key is valid but this call is not allowed: the key lacks the scope the call needs (insufficient_scope), the address is not allowed for the key (ip_not_allowed), the number or plan does not allow it, a recipient opted out or is not opted in, or a problem with the WhatsApp account.
- 404 The number, template, message, broadcast, webhook, delivery, opt-in, logged request, booking or Flow was not found.
- 409 Idempotency-Key: the first request with this key is still running, or did not finish. Or a conflict: the template name exists, the webhook URL is used by another webhook, the broadcast cannot be cancelled, the booking slot is taken or the booking is already cancelled, or the Flow is not published.
- 429 A monthly plan limit, the number's own monthly cap, the key's daily cap, a WhatsApp rate limit, the API rate limit (rate_limited), or the webhook test limit (too_many_tests) was reached. Retry-After and error.retry_after_seconds say how long to wait.
- 500 Unexpected error on app2email's side.