> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nixflex.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Resume SMS campaign

> Resume a bounded page of verified, unattempted recipients in a running Nixflex SMS campaign. This can dispatch messages after policy checks.

**FIXED · campaign** **MUST** Resume covers only unattempted work in the existing running launch, and neither resume nor reuse replays completed work.\
reuse\_campaign\_id replaces settings and recipients atomically only on an owned, never-launched voice draft or scheduled campaign. A launch claim prevents replacement. SMS creation always generates a fresh ID, even if the request forwards this field. Omit it for SMS.

**NOT OFFERED → do this instead · campaign** A launched or finished campaign cannot run again. For another run create a campaign with a fresh ID, selected recipients and reviewed settings. The dashboard’s Use again button follows the same rule for voice: it edits a campaign that never launched, otherwise it opens a new campaign filled with the original settings and recipients for review before launch. SMS campaigns have no Use again button.

**YOU CAN CHANGE · campaign** Use schedule\_type=schedule, scheduled\_date (YYYY-MM-DD), timezone, window\_days and optional paired window\_start\_minutes/window\_end\_minutes. UTC date checks, local windows and capacity apply.

**SCOPE · campaign** `DELETE /v1/calls/batch/{id}` deletes a voice campaign. Voice and SMS have separate cancel routes. Cancel stops future work. Running attempts may finish.

For one owned sender, send business\_number (encode + as %2B) on `GET /v1/campaigns` or `GET /v1/sms/campaigns`. Omit for account scope. Keep the same number and status through SMS cursors. Restart paging if either changes. Voice include\_totals=true covers returned campaigns only (default 50, max 200).

Pickup rate = answered attempts / all attempts, including failed starts. Answered means over five seconds with no detected voicemail. Sum counts before dividing. Zero attempts means no rate. SMS delivery rate = delivered / (delivered + failed).

[Read the compact AI rules](https://docs.nixflex.com/ai-rules.md#campaigns)

Resume one bounded page of verified unattempted recipients in the current running SMS campaign. This can dispatch contact and keeps the existing launch generation.

Method: **POST** · Success: **200** · Scope: **Owning account**

**The important part**

* This resumes a bounded page of verified unattempted recipients in the current running campaign.
* It can dispatch messages and keeps the existing launch generation; do not create a second campaign to recover an uncertain result.

[Business guide](https://docs.nixflex.com/guides/business/sms-campaigns.md) · [Developer guide](https://docs.nixflex.com/sms/sms-campaigns.md) · [Glossary](https://docs.nixflex.com/guides/glossary.md)

## Authentication

Send `Authorization: Bearer KEY_ID:KEY_SECRET` using the owning account’s server-side credential.

## Request fields

| Field | Type | Required | Default | Limits and meaning |
| - | - | - | - | - |
| `id` (path) | string | Yes | None | Account-owned campaign identifier. Maximum 100 characters. Minimum 1 characters. Pattern: `^[A-Za-z0-9_-]+$`. |

Do not send a request body.

The body is unused and there is no public cursor field. At most 100 verified unattempted recipients are processed per request. Only status running with a current launch claim is resumable; paused, cancelled and finished campaigns are refused. A 200 may still contain paused or held in page\_result. Inspect page\_result.outcome and dispatchSafety: a page can stop safely after earlier messages were accepted; the top-level message does not confirm sending.

## Response fields

`200 OK` returns the shape below. Nullable fields can be unknown or unset; do not turn null into zero or false.

| Field | Type | Meaning |
| - | - | - |
| `campaign_id` | string | Campaign ID. |
| `status` | string | Same running generation. Value: `"running"`. |
| `page_result` | object | Branch-specific page result; at most 100 verified unattempted rows. |
| `page_result.enqueued` | integer | Voice jobs queued in this page. |
| `page_result.next` | string or null | Row ID of the last recipient queued by this request (at most 100 rows per request), or null when none was queued. You cannot send it back; a later resume request queues rows that are still unattempted. |
| `page_result.paused` | boolean | Dispatch processing is paused. |
| `page_result.held` | integer or string | Held count or reason, depending on the returned branch. |
| `page_result.outcome` | string | SMS page outcome, such as completed, held or stopped\_safety. |
| `page_result.reason` | string or null | Page hold or stop reason. |
| `page_result.sent` | integer | SMS accepted sends in this page. |
| `page_result.failed` | integer | SMS known failures in this page. |
| `page_result.segments` | integer | SMS segments in this page. |
| `page_result.campaign_done` | boolean or null | Whether completion was confirmed. |
| `page_result.dispatchSafety` | boolean | This page stopped before its current attempted recipient. |
| `page_result.attempt_outcome` | string | Current attempted recipient result. |
| `page_result.attempt_sent` | boolean | Current attempt sent flag. |
| `page_result.attempt_charged` | boolean | Current attempt charged flag. |
| `page_result.attempt_safe_to_retry` | boolean | Applies only to the current attempt, never the whole page. |
| `page_result.safe_to_retry` | boolean | Whole-page replay is not safe. |
| `page_result.stop_message` | string | Current attempt refusal explanation. |
| `page_result.not_sent` | integer | Remaining recipients in the page. |
| `page_result.stop_recorded` | boolean | Whether the stop evidence was saved. |
| `page_result.attempted_recipient_id` | string | Current recipient ID. |
| `safe_to_retry` | boolean | Do not automatically replay this response. Value: `false`. |
| `message` | string | Admission explanation; inspect page\_result for actual holds or sends. |

## Example request

These examples require Node/CLI 0.11.0 or later, Python 0.4.0 or later and MCP 0.5.0 or later. Keep `NIXFLEX_API_KEY` private. cURL uses Bash; CLI uses PowerShell and reads the key through `NIXFLEX_API_KEY`. Replace fixture identifiers and reserved example numbers with approved account-owned values. Configure the existing MCP installation for the same account at `https://api.nixflex.com` before using the shown tool arguments. Python shows the synchronous client; `AsyncNixflex` uses the same method with `async with` and `await`. This example changes state. Review the target and payload before running it. Running it can contact recipients immediately or when scheduled; scheduled creation is executable, not a draft.

```bash cURL theme={"dark"}
curl --request POST \
  --url "https://api.nixflex.com/v1/sms/campaigns/campaign_fixture/resume" \
  --header "Authorization: Bearer $NIXFLEX_API_KEY"
```

```javascript Node theme={"dark"}
import Nixflex from 'nixflex';

const c = new Nixflex({
  apiKey: process.env.NIXFLEX_API_KEY,
  baseUrl: 'https://api.nixflex.com',
  maxRetries: 0,
});
const result = await c.sms.campaigns.resume("campaign_fixture");
```

```python Python theme={"dark"}
import os
from nixflex import Nixflex

with Nixflex(
    api_key=os.environ["NIXFLEX_API_KEY"],
    base_url="https://api.nixflex.com",
    max_retries=0,
) as c:
    result = c.sms.campaigns.resume('campaign_fixture')
```

```powershell CLI (PowerShell) theme={"dark"}
nixflex sms campaigns resume campaign_fixture --confirm --json --base-url "https://api.nixflex.com"
```

MCP does not offer this operation because it can enable outreach; use the API, Node, CLI or Python.

## Example response

Illustrative `200` response. Identifiers and values are examples; some optional or compatibility fields are omitted.

```json Response theme={"dark"}
{
  "campaign_id": "campaign_example",
  "status": "running",
  "page_result": {
    "next": null,
    "enqueued": 0
  },
  "safe_to_retry": false,
  "message": "Queued for final permission, local-hours and capacity checks; queued does not mean sent."
}
```

## Errors

Failures return an `error` object with `code`, `message`, `doc_url` and optional details. Each code links to the shared error catalog. Read the message and details before deciding whether to resend.

| Status | Code | Meaning | What to do |
| - | - | - | - |
| 400 | [`invalid_request`](https://docs.nixflex.com/api-reference/errors#invalid_request) | The identifier or request fields are invalid. | Correct the documented fields before resending. |
| 404 | [`not_found`](https://docs.nixflex.com/api-reference/errors#not_found) | No matching object belongs to this account. | Check the account and identifier. |
| 503 | [`feature_paused`](https://docs.nixflex.com/api-reference/errors#feature_paused) | This control is paused. | Wait for availability; do not work around the refusal. |
| 503 | [`outcome_unknown`](https://docs.nixflex.com/api-reference/errors#outcome_unknown) | The write result could not be confirmed. | Read current state; do not resend automatically. |
| 409 | [`not_resumable`](https://docs.nixflex.com/api-reference/errors#not_resumable) | Only a running campaign with a current launch claim can resume. | Read the campaign. Do not relaunch completed or cancelled work. |
| 401 | [`unauthorized`](https://docs.nixflex.com/api-reference/errors#unauthorized) | The credential is missing or invalid. | Check the full account credential. |
| 429 | [`rate_limit_exceeded`](https://docs.nixflex.com/api-reference/errors#rate_limit_exceeded) | The account request limit was reached. | Wait for Retry-After. Reconcile uncertain writes before resending. |

## Retry and idempotency

Do not automatically repeat resume after a timeout, 5xx or safe\_to\_retry:false. Inspect the same campaign and its recipient evidence first. Resume selects verified unattempted work; it never grants permission to replay accepted or uncertain attempts.

## Related endpoints

* [List SMS campaigns](https://docs.nixflex.com/api-reference/sms/campaigns-list.md)
* [Create an SMS campaign](https://docs.nixflex.com/api-reference/sms/campaigns-create.md)
* [Errors and recovery](https://docs.nixflex.com/api-reference/errors.md#error-envelope)


## OpenAPI

````yaml api-reference/public.openapi.json POST /sms/campaigns/{id}/resume
openapi: 3.1.0
info:
  title: Nixflex public API
  version: 1.0.0
  description: >-
    Nixflex API reference for agents, calls, messaging, knowledge, organisations
    and integrations. Authenticate with the owning account and follow each
    operation’s permissions, response and retry contract.
servers:
  - url: https://api.nixflex.com/v1
security:
  - bearerAuth: []
paths:
  /sms/campaigns/{id}/resume:
    post:
      tags:
        - SMS campaigns
      summary: Resume SMS campaign
      description: >-
        Resume one bounded page of verified unattempted recipients in the
        current running SMS campaign. This can dispatch contact and keeps the
        existing launch generation. The body is unused and there is no public
        cursor field. At most 100 verified unattempted recipients are processed
        per request. Only status running with a current launch claim is
        resumable; paused, cancelled and finished campaigns are refused. A 200
        may still contain paused or held in page_result. Inspect
        page_result.outcome and dispatchSafety: a page can stop safely after
        earlier messages were accepted; the top-level message does not confirm
        sending.
      operationId: post_sms_campaigns_id_resume
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
            description: Account-owned campaign identifier.
            minLength: 1
            maxLength: 100
            pattern: ^[A-Za-z0-9_-]+$
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  campaign_id:
                    type: string
                    description: Campaign ID.
                  status:
                    type: string
                    description: Same running generation.
                    const: running
                  page_result:
                    type: object
                    properties:
                      enqueued:
                        type: integer
                        description: Voice jobs queued in this page.
                      next:
                        type:
                          - string
                          - 'null'
                        description: >-
                          Row ID of the last recipient queued by this request
                          (at most 100 rows per request), or null when none was
                          queued. You cannot send it back; a later resume
                          request queues rows that are still unattempted.
                      paused:
                        type: boolean
                        description: Dispatch processing is paused.
                      held:
                        type:
                          - integer
                          - string
                        description: >-
                          Held count or reason, depending on the returned
                          branch.
                      outcome:
                        type: string
                        description: >-
                          SMS page outcome, such as completed, held or
                          stopped_safety.
                      reason:
                        type:
                          - string
                          - 'null'
                        description: Page hold or stop reason.
                      sent:
                        type: integer
                        description: SMS accepted sends in this page.
                      failed:
                        type: integer
                        description: SMS known failures in this page.
                      segments:
                        type: integer
                        description: SMS segments in this page.
                      campaign_done:
                        type:
                          - boolean
                          - 'null'
                        description: Whether completion was confirmed.
                      dispatchSafety:
                        type: boolean
                        description: >-
                          This page stopped before its current attempted
                          recipient.
                      attempt_outcome:
                        type: string
                        description: Current attempted recipient result.
                      attempt_sent:
                        type: boolean
                        description: Current attempt sent flag.
                      attempt_charged:
                        type: boolean
                        description: Current attempt charged flag.
                      attempt_safe_to_retry:
                        type: boolean
                        description: >-
                          Applies only to the current attempt, never the whole
                          page.
                      safe_to_retry:
                        type: boolean
                        description: Whole-page replay is not safe.
                      stop_message:
                        type: string
                        description: Current attempt refusal explanation.
                      not_sent:
                        type: integer
                        description: Remaining recipients in the page.
                      stop_recorded:
                        type: boolean
                        description: Whether the stop evidence was saved.
                      attempted_recipient_id:
                        type: string
                        description: Current recipient ID.
                    description: >-
                      Branch-specific page result; at most 100 verified
                      unattempted rows.
                    additionalProperties: true
                  safe_to_retry:
                    type: boolean
                    description: Do not automatically replay this response.
                    const: false
                  message:
                    type: string
                    description: >-
                      Admission explanation; inspect page_result for actual
                      holds or sends.
                required:
                  - campaign_id
                  - status
                  - page_result
                  - safe_to_retry
                  - message
                description: ''
                additionalProperties: false
              example:
                campaign_id: campaign_example
                status: running
                page_result:
                  enqueued: 0
                  next: null
                safe_to_retry: false
                message: >-
                  Queued for final permission, local-hours and capacity checks;
                  queued does not mean sent.
        '400':
          description: 'invalid_request: The identifier or request fields are invalid.'
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                        description: Machine-readable error code.
                      message:
                        type: string
                        description: Explanation.
                      doc_url:
                        type: string
                        description: Error reference link.
                      details:
                        type: object
                        properties: {}
                        description: >-
                          Optional context; inspect campaign_id, status, outcome
                          and safe_to_retry for uncertain writes.
                        additionalProperties: true
                    required:
                      - code
                      - message
                      - doc_url
                      - type
                    description: ''
                    additionalProperties: false
                required:
                  - error
                description: ''
                additionalProperties: false
        '401':
          description: 'unauthorized: The credential is missing or invalid.'
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                        description: Machine-readable error code.
                      message:
                        type: string
                        description: Explanation.
                      doc_url:
                        type: string
                        description: Error reference link.
                      details:
                        type: object
                        properties: {}
                        description: >-
                          Optional context; inspect campaign_id, status, outcome
                          and safe_to_retry for uncertain writes.
                        additionalProperties: true
                    required:
                      - code
                      - message
                      - doc_url
                      - type
                    description: ''
                    additionalProperties: false
                required:
                  - error
                description: ''
                additionalProperties: false
        '404':
          description: 'not_found: No matching object belongs to this account.'
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                        description: Machine-readable error code.
                      message:
                        type: string
                        description: Explanation.
                      doc_url:
                        type: string
                        description: Error reference link.
                      details:
                        type: object
                        properties: {}
                        description: >-
                          Optional context; inspect campaign_id, status, outcome
                          and safe_to_retry for uncertain writes.
                        additionalProperties: true
                    required:
                      - code
                      - message
                      - doc_url
                      - type
                    description: ''
                    additionalProperties: false
                required:
                  - error
                description: ''
                additionalProperties: false
        '409':
          description: >-
            not_resumable: Only a running campaign with a current launch claim
            can resume.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                        description: Machine-readable error code.
                      message:
                        type: string
                        description: Explanation.
                      doc_url:
                        type: string
                        description: Error reference link.
                      details:
                        type: object
                        properties: {}
                        description: >-
                          Optional context; inspect campaign_id, status, outcome
                          and safe_to_retry for uncertain writes.
                        additionalProperties: true
                    required:
                      - code
                      - message
                      - doc_url
                      - type
                    description: ''
                    additionalProperties: false
                required:
                  - error
                description: ''
                additionalProperties: false
        '429':
          description: 'rate_limit_exceeded: The account request limit was reached.'
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                        description: Machine-readable error code.
                      message:
                        type: string
                        description: Explanation.
                      doc_url:
                        type: string
                        description: Error reference link.
                      details:
                        type: object
                        properties: {}
                        description: >-
                          Optional context; inspect campaign_id, status, outcome
                          and safe_to_retry for uncertain writes.
                        additionalProperties: true
                    required:
                      - code
                      - message
                      - doc_url
                      - type
                    description: ''
                    additionalProperties: false
                required:
                  - error
                description: ''
                additionalProperties: false
        '503':
          description: >-
            feature_paused: This control is paused. outcome_unknown: The write
            result could not be confirmed.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                        description: Machine-readable error code.
                      message:
                        type: string
                        description: Explanation.
                      doc_url:
                        type: string
                        description: Error reference link.
                      details:
                        type: object
                        properties: {}
                        description: >-
                          Optional context; inspect campaign_id, status, outcome
                          and safe_to_retry for uncertain writes.
                        additionalProperties: true
                    required:
                      - code
                      - message
                      - doc_url
                      - type
                    description: ''
                    additionalProperties: false
                required:
                  - error
                description: ''
                additionalProperties: false
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        KEY_ID:KEY_SECRET from the owning account. Keep it server-side. A
        verified personal dashboard Bearer session may be used where the
        operation documents role-based access.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.