Auto
EN
POST/api/v2/verification/resend

Resend verification code

Sends a new code for the same attempt according to cooldown and max-resend settings. Send verificationId or to.

When to use it. When the user says the code did not arrive, after the cooldown.

Code example

Correct: Resend by verificationId

curl --request POST 'https://raselsms.com/api/v2/verification/resend' \--header 'X-API-Key: YOUR_API_KEY' \--header 'Content-Type: application/json' \--data '{"verificationId":"6800abc123def4567890fedc","channel":"int_sms"}'

Response example

200 — Resend by verificationId

{  "verificationId": "6800abc123def4567890fedc",  "status": "sent",  "channel": "int_sms",  "expiresAt": "2026-09-05T10:10:00.000Z",  "resendAvailableAt": "2026-09-05T10:01:00.000Z",  "resendCount": 1}

HTTP request

POST /api/v2/verification/resend

Request Headers

HeaderTypeDescription
X-API-KeystringYour Rasel API key. Send it on every documented request except inbound webhooks. *

Request body

FieldTypeDescriptionExample
verificationIdstringIdentifier returned from the verification send step. Prefer this on resend and verify.
tostringRecipient: E.164 phone, email when channel is email, WhatsApp group JID, Telegram chat id, or a string array of up to 100 recipients for an official batch.
channelenumDelivery channel. For unified send prefer auto, local_sms, int_sms, official_whatsapp, WhatsApp Web sessions, telegram_bot, or email_user. For verification omit the field for automatic selection; do not send bare sms, whatsapp, or auto.
senderIdstringApproved SMS sender id. When omitted, the default then the platform sender is used.
officialSenderIdstringOfficial WhatsApp sender id from /api/v2/official-senders. Alias of sender.officialId. Use platform for the default Meta number when listing templates.
senderobjectOptional sender override. If omitted, Rasel uses the default approved sender, then the platform sender.
sender.idstringApproved SMS sender id. Leave it out to use the default sender.
sender.officialIdstringOfficial WhatsApp sender id. Same as officialSenderId.

Response Fields

FieldTypeDescriptionExample
verificationIdstringIdentifier returned from the verification send step. Prefer this on resend and verify.
statusenumDelivery or record status. On send: sent, queued, or scheduled. On other resources it is the row status filter or value.
channelstringDelivery channel. For unified send prefer auto, local_sms, int_sms, official_whatsapp, WhatsApp Web sessions, telegram_bot, or email_user. For verification omit the field for automatic selection; do not send bare sms, whatsapp, or auto.
channelsstring-listPublic channel names when send-on-all-compatible-channels fan-out succeeded on more than one channel.
deliveriesjsonPer-channel tracking when fan-out is enabled.
expiresAtstringWhen the current verification code expires.
resendAvailableAtstringEarliest time a resend is allowed.
resendCountnumberHow many times the code has been resent.
trialobjectيظهر لحسابات الخطة التجريبية. القالب يبقي {code} ولا يتضمن رمز التحقق نفسه. sent_as_is يعني أن النص المعتمد أُرسل كما هو، substituted يعني أن طلب التحقق استُبدل بهذا النص، وrejected يعني أن المحتوى المخصص لم يُرسل.
trial.activeenumالحساب على الخطة التجريبية. *
trial.actionenumماذا فعل النظام بالنص: أرسله كما هو، أو استبدله بالنص المعتمد، أو رفض المحتوى المخصص. *
trial.templatestringTemplate reference (id or key), language, variables, and optional per-send header media. *
trial.ignoredstring-listحقول أرسلها العميل ولم تُستخدم في الرسالة التي خرجت.
trial.messagestringHuman-readable result message from create or upload. *
trial.upgradeHrefstringمسار ترقية الخطة داخل لوحة التحكم. *
trial.exampleobjectمثال طلب ينجح أثناء التجربة. يظهر عند الرفض فقط.
trial.example.methodenumطريقة الطلب في المثال.
trial.example.pathstringمسار الطلب الذي يرسل رمز التحقق بدون نص مخصص.
trial.example.bodyobjectWhatsApp template body with numbered placeholders. Pair with bodyParameters at create and variablesIndexed at send.
trial.example.body.tostringRecipient: E.164 phone, email when channel is email, WhatsApp group JID, Telegram chat id, or a string array of up to 100 recipients for an official batch.
trial.example.body.channelstringDelivery channel. For unified send prefer auto, local_sms, int_sms, official_whatsapp, WhatsApp Web sessions, telegram_bot, or email_user. For verification omit the field for automatic selection; do not send bare sms, whatsapp, or auto.

Status Codes

StatusDescription
200Success.
400Invalid request, validation error, or the resource cannot be used in this state.
404Resource not found for this API key owner.
409Conflict, such as an idempotency key reuse with a different body, or a session that is not ready.
429Rate limit exceeded, or the maximum number of verification attempts was reached.
401Missing or invalid API key.

Try it

Parameters

Delivery channel. For unified send prefer auto, local_sms, int_sms, official_whatsapp, WhatsApp Web sessions, telegram_bot, or email_user. For verification omit the field for automatic selection; do not send bare sms, whatsapp, or auto.

Recipient: E.164 phone, email when channel is email, WhatsApp group JID, Telegram chat id, or a string array of up to 100 recipients for an official batch.

Official WhatsApp sender id from /api/v2/official-senders. Alias of sender.officialId. Use platform for the default Meta number when listing templates.

sender

Approved SMS sender id. Leave it out to use the default sender.

Official WhatsApp sender id. Same as officialSenderId.

Optional sender override. If omitted, Rasel uses the default approved sender, then the platform sender.

Identifier returned from the verification send step. Prefer this on resend and verify.

Approved SMS sender id. When omitted, the default then the platform sender is used.

Request

{}

Response

Example response

{  "verificationId": "6800abc123def4567890fedc",  "status": "sent",  "channel": "int_sms",  "expiresAt": "2026-09-05T10:10:00.000Z",  "resendAvailableAt": "2026-09-05T10:01:00.000Z",  "resendCount": 1}