Skip to main content

Send a scheduled message now

Send a pending scheduled message right away instead of waiting for its scheduled time. The message is handed to the scheduler, which sends it on its next run. The response shows next_send_at_utc set to the moment of the request.

  • One-time message: it's sent now and doesn't go out again at its original time.
  • Recurring series: this send counts as the series' next one, and the following sends are counted from now. For example, a daily series at 09:00 sent now at 15:10 continues every day at 15:10.

Only messages with status pending can be sent now. A message that already failed can't be resent: schedule a new one.

Endpointโ€‹

POST https://api.p.2chat.io/open/whatsapp/scheduled-messages/{uuid}/send-now

Authenticationโ€‹

Include your API key in the X-User-API-Key header. Learn more about authentication.

API costโ€‹

1API credit

Each call to this endpoint deducts 1 API credit from your plan's API credit pool.

Parametersโ€‹

FieldInRequiredDescription
uuidpathYesThe uuid of the scheduled message, as returned when it was scheduled or by List scheduled messages (e.g. EST83feed3c-4f8d-446b-8cbc-4efcc14ef901).

The request has no body.

Invocationโ€‹

curl --location --request POST 'https://api.p.2chat.io/open/whatsapp/scheduled-messages/EST83feed3c-4f8d-446b-8cbc-4efcc14ef901/send-now' \
--header 'X-User-API-Key: your_api_key_here'

Responseโ€‹

Success (HTTP 200)โ€‹

The scheduled message, with next_send_at_utc set to now. The other fields are described in The scheduled message object.

{
"data": {
"uuid": "EST83feed3c-4f8d-446b-8cbc-4efcc14ef901",
"status": "pending",
"cancelled": false,
"next_send_at_utc": "2026-11-20 20:10:05",
"timezone": "America/New_York",
"channel_uuid": "WPNb932ad7f-250a-4ada-86a6-c1691e00a2cb",
"to_number": "+447700900461",
"text": "Your weekly menu is ready!",
"url": "https://example.com/menu.jpg",
"template": null,
"recurring": true,
"repeat": {
"unit": "weekly",
"every": "1"
},
"ends": {
"type": "occurrences",
"occurrences": "4",
"date": null
},
"sent_count": "0",
"created_at": "2026-11-20 15:04:12"
},
"success": true
}
FieldDescription
successtrue when the message was handed to the scheduler
dataThe scheduled message

Errorโ€‹

{
"error": true,
"error_message": "Payload is invalid: The scheduled message is being sent or was already sent"
}
FieldDescription
errortrue when the request failed
error_messageA description of what went wrong
HTTP statuserror_messageCause
400Payload is invalid: The scheduled message is being sent or was already sentThe message is in_progress or completed.
400Payload is invalid: The scheduled message failed and was closed; schedule a new oneThe message is failed.
404Resource Not Found: Scheduled message not foundThe uuid doesn't exist on your account, or the message was cancelled.