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

# Rewrite queued sends from the current steps

> Rewrites, in the background, every send the campaign has queued but not yet sent (emails, LinkedIn messages, InMails and connection notes) from its current sequence steps. Each send is written out when it is queued, so editing a step with PATCH /business/campaigns/{campaignId}/steps/{stepId} changes only contacts not yet scheduled for it; call this afterwards to bring the queue in line. It replaces the wording of every queued send, including edits made with PATCH /business/scheduled-sends/{sendId}. Sends awaiting approval and sends already out are left alone, and a campaign with nothing queued (such as a draft) is a no-op. AI writing a message has not yet paid for is charged in credits; if the balance cannot cover it, that send is stopped and the campaign is paused. Answers 202 at once; list the queue with GET .../scheduled-sends (add `stepId` for one step) to confirm the new copy. Only the token owner's own campaigns resolve: a campaign delegated to you, one shared by your team's visibility settings, and a deleted one all answer 404. Rate limit: this endpoint has a tighter cap of 10 requests/minute and 100/day, applied inside the shared campaigns bucket of 30 requests/minute and 1,000/day per token owner (shared by every campaign, scheduled-send, campaign-template and knowledge-hub endpoint).

Errors:
- `404` `CAMPAIGN_NOT_FOUND` — No campaign with this id exists, it belongs to another account (including a campaign delegated to you or shared by your team's visibility settings), or it has been deleted.
- `422` `VALIDATION_FAILED` — campaignId is not a 24-character hex id.
- `429` `RATE_LIMITED` — Either this endpoint's own cap (10 requests/minute, 100/day) or the shared campaigns bucket (30/minute, 1,000/day for this token owner, shared by every /business/campaigns, /business/scheduled-sends, /business/campaign-templates and /business/knowledge-hubs call) was exceeded. The RateLimit-* headers on the response describe the shared bucket, so a refusal from this endpoint's own cap can still report requests remaining and carries no Retry-After.
- `500` `UNEXPECTED_ERROR` — An unhandled failure; the detail stays in our logs and is never returned.

Requires one of the following token scopes: campaigns.



## OpenAPI

````yaml /openapi.json post /business/campaigns/{campaignId}/scheduled-sends/regenerate
openapi: 3.1.0
info:
  title: Fuse Business API
  version: 1.0.0
  description: >-
    External API for lists, campaigns, prospect search and contacts.
    Authenticate with your API token as HTTP Basic. All paths are under /api/v1.
servers:
  - url: https://api.tryfuse.ai/api/v1
    description: Production
security:
  - basicAuth: []
tags:
  - name: Lists
  - name: Custom columns
  - name: Smart columns
  - name: Exports
  - name: Campaigns
  - name: Knowledge hubs
  - name: Analytics
  - name: Website intent
  - name: LinkedIn
  - name: Conversations
  - name: Account
  - name: Sending accounts
  - name: Data
  - name: Prospect search
  - name: Campaign steps
  - name: Scheduled sends
  - name: Campaign templates
  - name: Tracking domains
  - name: Agents
  - name: Research
  - name: Company search
  - name: Saved searches
  - name: Folders
  - name: Exclusions
  - name: Contacts
paths:
  /business/campaigns/{campaignId}/scheduled-sends/regenerate:
    post:
      tags:
        - Scheduled sends
      summary: Rewrite queued sends from the current steps
      description: >-
        Rewrites, in the background, every send the campaign has queued but not
        yet sent (emails, LinkedIn messages, InMails and connection notes) from
        its current sequence steps. Each send is written out when it is queued,
        so editing a step with PATCH
        /business/campaigns/{campaignId}/steps/{stepId} changes only contacts
        not yet scheduled for it; call this afterwards to bring the queue in
        line. It replaces the wording of every queued send, including edits made
        with PATCH /business/scheduled-sends/{sendId}. Sends awaiting approval
        and sends already out are left alone, and a campaign with nothing queued
        (such as a draft) is a no-op. AI writing a message has not yet paid for
        is charged in credits; if the balance cannot cover it, that send is
        stopped and the campaign is paused. Answers 202 at once; list the queue
        with GET .../scheduled-sends (add `stepId` for one step) to confirm the
        new copy. Only the token owner's own campaigns resolve: a campaign
        delegated to you, one shared by your team's visibility settings, and a
        deleted one all answer 404. Rate limit: this endpoint has a tighter cap
        of 10 requests/minute and 100/day, applied inside the shared campaigns
        bucket of 30 requests/minute and 1,000/day per token owner (shared by
        every campaign, scheduled-send, campaign-template and knowledge-hub
        endpoint).


        Errors:

        - `404` `CAMPAIGN_NOT_FOUND` — No campaign with this id exists, it
        belongs to another account (including a campaign delegated to you or
        shared by your team's visibility settings), or it has been deleted.

        - `422` `VALIDATION_FAILED` — campaignId is not a 24-character hex id.

        - `429` `RATE_LIMITED` — Either this endpoint's own cap (10
        requests/minute, 100/day) or the shared campaigns bucket (30/minute,
        1,000/day for this token owner, shared by every /business/campaigns,
        /business/scheduled-sends, /business/campaign-templates and
        /business/knowledge-hubs call) was exceeded. The RateLimit-* headers on
        the response describe the shared bucket, so a refusal from this
        endpoint's own cap can still report requests remaining and carries no
        Retry-After.

        - `500` `UNEXPECTED_ERROR` — An unhandled failure; the detail stays in
        our logs and is never returned.


        Requires one of the following token scopes: campaigns.
      operationId: regenerateScheduledSends
      parameters:
        - name: campaignId
          in: path
          required: true
          description: >-
            The campaign's id (24-character hex ObjectId), as returned by POST
            /business/campaigns or as the campaignId of a GET
            /business/campaigns row.
          schema:
            type: string
            description: >-
              The campaign's id (24-character hex ObjectId), as returned by POST
              /business/campaigns or as the campaignId of a GET
              /business/campaigns row.
      responses:
        '202':
          description: Success
          headers:
            RateLimit-Limit:
              schema:
                type: integer
              description: Requests permitted in the current window.
            RateLimit-Remaining:
              schema:
                type: integer
              description: Requests remaining in the current window.
            RateLimit-Reset:
              schema:
                type: integer
              description: Seconds until the current window resets.
          content:
            application/json:
              schema:
                type: object
                properties:
                  campaignId:
                    type: string
                    description: The campaign whose queue is being rewritten.
                  status:
                    type: string
                    enum:
                      - processing
                    description: >-
                      The rewrite runs in the background; list the queue with
                      GET .../scheduled-sends to see the new copy.
                required:
                  - campaignId
                  - status
              example:
                campaignId: 6a8da7718707dbcfb4448b96
                status: processing
        '400':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '402':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '422':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - basicAuth: []
components:
  schemas:
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
            message:
              type: string
            param:
              type:
                - string
                - 'null'
            doc_url:
              type:
                - string
                - 'null'
            request_id:
              type:
                - string
                - 'null'
          required:
            - code
            - message
      required:
        - error
  securitySchemes:
    basicAuth:
      type: http
      scheme: basic
      description: >-
        Your API token (`af_…`) as the Basic-auth username, with an empty
        password.

````

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