Skip to Content
1MSG
ReferenceCampaigns API

Retry failed recipients as a new draft

POST
/api/v1/campaigns/{campaignId}/retry-failed

Creates a new manual segment from recipients with deliveryStatus === "failed" and a new draft campaign cloned from this campaign.

  • Allowed only when the source campaign status is completed or failed (no request body).
  • Copies recipient name, phone, bsuid, and attributes into "{source.name} — retry failed", and copies channel, content, bindings, messageSendTtlSeconds, dailyLimitOverride, excludeStoplist, and excludeBlocked into "{source.name} (retry)".
  • Leaves the source campaign unchanged and returns the new draft campaign.
  • Error codes (400): invalid_status, no_failed_recipients, too_many_failed (over 500 failed recipients).

Authorization

bearer
headerAuthorizationBearer <API key>

Key issued in Settings → Developer → API key. Inbox methods need the Inbox scope. Campaigns methods need the Campaigns scope.

Path Parameters

campaignId*string

Campaign id returned by create or list.

Response Body

application/json
  1. response
id*string

Campaign id.

name*string

Campaign title.

channelId*string

Channel that sends the campaign.

segmentId*|

Segment used as the audience, or null while unset on a draft.

status*string

Campaign status.

Value in"draft""sending""pause""completed""failed""scheduled"
content*||

Template or session text stored on the campaign.

excludeStoplist*boolean

Whether recipients on the channel stoplist are suppressed at send time (always enforced as true for MARKETING templates).

excludeBlocked*boolean

Whether contacts whose Inbox dialog on the campaign channel is blocked are excluded.

sentAt*|

When sending started, or null if it has not started.

Formatdate-time
scheduledAt*|

UTC instant for a scheduled send, or null.

Formatdate-time
queuedRemaining*number

Recipients still waiting to be sent.

sentThisPortion*number

Template sends already started in the current tier window.

dailyLimitOverride*|

Client cap stored for this campaign. Null when unset. This is not the tier snapshot.

dailyLimit*|

Tier snapshot written at send: how many template sends this channel may start in a rolling 24 hours (waba_info.current_limit). Null when the tier was unknown or unlimited at send, and null before send. The client cap is dailyLimitOverride. Session text is not counted.

nextPortionAt*|

When the next template portion can start after the tier window is full. Null when a portion is not waiting.

Formatdate-time
estimatedEndsAt*|

Estimated completion from queuedRemaining and the effective 24h cap (override and/or tier snapshot), using nextPortionAt or a rolling 24h window. Null when the queue is empty or the cap is unlimited/unknown.

Formatdate-time
createdAt*string

When the campaign was created.

Formatdate-time
updatedAt*string

When the campaign was last updated.

Formatdate-time
stats*

Recipient funnel counts for list tables. All campaign responses include this object; the list endpoint loads live aggregates; non-list endpoints return zero-filled stats.

Example Request
curl -X POST 'https://api.1msg.io/api/v1/campaigns/string/retry-failed'
Example Response
{  "id": "cm3campaign01",  "name": "April restock",  "channelId": "cm3channel01",  "segmentId": "cm3segment01",  "status": "draft",  "content": {    "mode": "text",    "text": "Hello"  },  "excludeStoplist": true,  "excludeBlocked": true,  "sentAt": "2026-11-01T09:00:00.000Z",  "scheduledAt": "2026-11-01T09:00:00.000Z",  "queuedRemaining": 0,  "sentThisPortion": 0,  "dailyLimitOverride": 0,  "dailyLimit": 1000,  "nextPortionAt": null,  "estimatedEndsAt": null,  "createdAt": "2026-11-01T09:00:00.000Z",  "updatedAt": "2026-11-01T09:00:00.000Z",  "stats": {    "recipients": 1200,    "sent": 1150,    "delivered": 1100,    "read": 420,    "replied": 85,    "errors": 12  }}