smartchat

Send newsletter

Sends a newsletter now, or schedules it, to every contact with a confirmed opt-in inside its audience; unsubscribed contacts never receive it. Needs an approved template and an idempotency key. Sending cannot be undone once started.

POST /v1/newsletters/{newsletter_id}/send

Permissionnewsletters:send (all permissions)
RiskSend (reaches other people)
Idempotency-KeyRequired (how it works)
Safe to repeatSafe to repeat with the same Idempotency-Key: the first answer comes back and nothing is done twice.
Rate limit classsend (120 requests per minute per key)
ConfirmationNone
MCP toolsend_newsletter
Since version2026-10-25

#What it does

  • Sends WhatsApp messages to contacts.
  • Safe to repeat with the same Idempotency-Key.

#Request

Header

NameRequiredDescription
AuthorizationyesBearer <key>
Idempotency-KeyyesA unique value for this operation, for example a UUID (1 to 255 visible ASCII characters).

Path parameters

NameTypeDescription
newsletter_idstringID of the newsletter, from list_newsletters.

Body (JSON)

NameTypeRequiredDescription
whenstringyes'now' or a time in ISO 8601, for example 2026-11-03T10:00:00+01:00. A time without a zone counts as Zurich time. length 3 to 40

#Examples

curl -X POST "https://api.smartchat.marketing/v1/newsletters/nwl_3c9e1f7a5b2d4e8f9a0b1c2d3e4f5a6b/send" \
  -H "Authorization: Bearer $SMARTCHAT_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
  "when": "now"
}'
import os
import uuid
import requests

response = requests.post(
    "https://api.smartchat.marketing/v1/newsletters/nwl_3c9e1f7a5b2d4e8f9a0b1c2d3e4f5a6b/send",
    headers={
        "Authorization": "Bearer " + os.environ["SMARTCHAT_API_KEY"],
        "Idempotency-Key": str(uuid.uuid4()),
    },
    json={
        "when": "now",
    },
)
response.raise_for_status()
print(response.json())
const response = await fetch("https://api.smartchat.marketing/v1/newsletters/nwl_3c9e1f7a5b2d4e8f9a0b1c2d3e4f5a6b/send", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.SMARTCHAT_API_KEY}`,
    "Idempotency-Key": crypto.randomUUID(),
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "when": "now"
  }),
});
if (!response.ok) throw new Error(await response.text());
console.log(await response.json());

Response (202):

{
  "object": "newsletter_send",
  "id": "nwl_3c9e1f7a5b2d4e8f9a0b1c2d3e4f5a6b",
  "newsletter_id": "nwl_3c9e1f7a5b2d4e8f9a0b1c2d3e4f5a6b",
  "status": "sending",
  "recipients": 412,
  "scheduled_at": null
}

#Response

Status 202. Every response has the headers Request-Id, SmartChat-Version and X-RateLimit-*.

NameTypeDescription
objectstringAlways "newsletter_send". always newsletter_send
idstringID of the send. It is the newsletter ID.
newsletter_idstringNewsletter ID.
statusstringsending = messages are queued now. scheduled = they go out at scheduled_at. one of: sending, scheduled
recipientsintegerContacts that receive the newsletter. 0 to 100000000
scheduled_atstring or nullWhen the send starts if it is scheduled, otherwise null. up to 40 characters; format date-time

#Errors

CodeStatusWhen
bad_request400The request could not be read.
idempotency_key_invalid400The 'Idempotency-Key' header must be 1 to 255 visible ASCII characters.
idempotency_key_required400This call needs an 'Idempotency-Key' header.
missing_parameter400A required field is missing.
unknown_parameter400A field is not known.
api_key_expired401This API key has expired.
api_key_invalid401This API key is not valid.
api_key_revoked401This API key was revoked.
authentication_required401No API key was sent. Send 'Authorization: Bearer <key>'.
insufficient_credits402The credits are not enough.
quota_exceeded402The monthly message quota is used up.
account_blocked403This account is blocked.
insufficient_scope403This key lacks a required permission.
ip_not_allowed403This IP address is not allowed for this key.
subscription_locked403The subscription or payment state blocks this function.
newsletter_not_found404No newsletter with this ID exists in this account.
conflict409The state of the object does not allow this.
idempotency_in_progress409A request with this idempotency key is still running.
newsletter_locked409The newsletter is scheduled or sent and cannot be changed.
audience_empty422The audience has no reachable contacts.
idempotency_key_reused422This idempotency key was already used with a different request.
template_not_approved422The template is not approved.
template_rejected422WhatsApp rejected the template.
validation_failed422A field is not valid.
whatsapp_not_connected422No WhatsApp number is connected.
rate_limited429Too many requests. Wait and try again.
internal_error500Something went wrong on our side.
upstream_error502A connected service (for example WhatsApp) reported an error.
service_unavailable503The service is temporarily unavailable.
suppression_check_unavailable503The suppression list cannot be read, so nothing was sent.

All errors use one format.