SmsResendMessage¶
POST sms/message/resend
Creates a new message as a copy of an existing one. The original is left untouched, so its attempt history and provider responses stay readable.
Duplicate protection does not apply here: a resend is a deliberate operator action, and the whole point is to send the same text to the same number again.
Access Control¶
Allowed roles: admin, leader, manager.
Request¶
POST https://{broker_domain}/sms/message/resend
{
"smsId": 812
}
{
"command": "SmsResendMessage",
"extID": "1",
"data": {
"smsId": 812
}
}
const res = await platform.SmsResendMessage({
smsId: 812
});
Request Data¶
| Field | Type | Required | Description |
|---|---|---|---|
smsId |
int | Yes | Message to copy |
Response Data¶
{
"smsId": 816,
"resentFrom": 812,
"parts": 1
}
Errors¶
| Code | Error | Description |
|---|---|---|
403 |
PERMISSION_DENIED |
The message belongs to another manager |
403 |
PHONE_BLACKLISTED |
The number has been blacklisted since the original message |
404 |
SMS_NOT_FOUND |
Message not found in the brand |
409 |
NO_ROUTE_AVAILABLE |
No profile can send to this destination any more |