> ## 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.

# Check whether a campaign can be approved

> Runs approve's checks without approving: whether POST /business/campaigns/{campaignId}/approve would start the campaign now and, if not, `reason`, the first check it fails in the order approve runs them, the same code approve would answer with. An active campaign is ready, as approve answers it with 202; one paused by hand is not (`CAMPAIGN_NOT_APPROVABLE`). `contacts` counts the people on the campaign's source lists as the app's list picker does before launch: `withEmail` those with a professional email, `withoutEmail` the rest, who are skipped on an email-only campaign unless an email is found first, and `withLinkedin` those with a LinkedIn profile. `withEmail` and `withLinkedin` come from each list's counters, which are recomputed in the background after a list changes, so each is capped at its list's size; a source list that is gone, archived or private to a teammate counts as empty. `dueNow` is what goes out as soon as the campaign runs: `queuedSends` whose scheduled time has already come (on a stopped campaign, everything that came due while it was stopped), split by step in `steps`, plus `leadsToStart`, leads that have not started and get their first step once it runs, over as many sending days as the campaign's sending accounts' daily limits need. A campaign that has never run (`initializing` or `initialization_failed`) has no leads enrolled until approval enrolls its source lists, so for it `leadsToStart` is `contacts.total`, some of whom enrollment may skip. The sender takes due sends oldest first within each sending account's daily limits and the campaign's sending days, so a large number goes out over the next sending windows rather than in one burst. List the sends themselves with GET .../scheduled-sends?status=scheduled&scheduledBefore=<now>. Nothing is written. Ownership is required, as on approve. Rate limit: 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` — More than 30 campaign requests in a minute, or 1,000 in a day, for this token owner (the bucket is shared by every /business/campaigns, /business/scheduled-sends, /business/campaign-templates and /business/knowledge-hubs call).
- `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 get /business/campaigns/{campaignId}/readiness
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}/readiness:
    get:
      tags:
        - Campaigns
      summary: Check whether a campaign can be approved
      description: >-
        Runs approve's checks without approving: whether POST
        /business/campaigns/{campaignId}/approve would start the campaign now
        and, if not, `reason`, the first check it fails in the order approve
        runs them, the same code approve would answer with. An active campaign
        is ready, as approve answers it with 202; one paused by hand is not
        (`CAMPAIGN_NOT_APPROVABLE`). `contacts` counts the people on the
        campaign's source lists as the app's list picker does before launch:
        `withEmail` those with a professional email, `withoutEmail` the rest,
        who are skipped on an email-only campaign unless an email is found
        first, and `withLinkedin` those with a LinkedIn profile. `withEmail` and
        `withLinkedin` come from each list's counters, which are recomputed in
        the background after a list changes, so each is capped at its list's
        size; a source list that is gone, archived or private to a teammate
        counts as empty. `dueNow` is what goes out as soon as the campaign runs:
        `queuedSends` whose scheduled time has already come (on a stopped
        campaign, everything that came due while it was stopped), split by step
        in `steps`, plus `leadsToStart`, leads that have not started and get
        their first step once it runs, over as many sending days as the
        campaign's sending accounts' daily limits need. A campaign that has
        never run (`initializing` or `initialization_failed`) has no leads
        enrolled until approval enrolls its source lists, so for it
        `leadsToStart` is `contacts.total`, some of whom enrollment may skip.
        The sender takes due sends oldest first within each sending account's
        daily limits and the campaign's sending days, so a large number goes out
        over the next sending windows rather than in one burst. List the sends
        themselves with GET
        .../scheduled-sends?status=scheduled&scheduledBefore=<now>. Nothing is
        written. Ownership is required, as on approve. Rate limit: 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` — More than 30 campaign requests in a minute, or
        1,000 in a day, for this token owner (the bucket is shared by every
        /business/campaigns, /business/scheduled-sends,
        /business/campaign-templates and /business/knowledge-hubs call).

        - `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: getCampaignReadiness
      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:
        '200':
          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
                  ready:
                    type: boolean
                    description: Whether approve would start the campaign now.
                  reason:
                    type:
                      - string
                      - 'null'
                    enum:
                      - CAMPAIGN_NOT_APPROVABLE
                      - CAMPAIGN_HAS_NO_LIST
                      - CAMPAIGN_HAS_NO_STEPS
                      - STEP_BODY_MISSING
                      - STEP_SUBJECT_MISSING
                      - STEP_TOPIC_MISSING
                      - CONDITION_BRANCH_EMPTY
                      - SEQUENCE_STRUCTURE_INVALID
                      - CLICK_TRACKING_REQUIRED
                      - CAMPAIGN_MAILBOX_NOT_PERMITTED
                      - NO_ACTIVE_EMAIL_ACCOUNTS
                      - NO_ACTIVE_LINKEDIN_ACCOUNTS
                      - null
                    description: >-
                      The first check the campaign fails, as approve's refusal
                      names it; null when it is ready.
                  contacts:
                    type: object
                    properties:
                      total:
                        type: integer
                        description: People on the campaign's source lists.
                      withEmail:
                        type: integer
                        description: Those with a professional email.
                      withoutEmail:
                        type: integer
                        description: Those without one.
                      withLinkedin:
                        type: integer
                        description: Those with a LinkedIn profile.
                    required:
                      - total
                      - withEmail
                      - withoutEmail
                      - withLinkedin
                  dueNow:
                    type: object
                    description: What goes out as soon as the campaign runs.
                    properties:
                      queuedSends:
                        type: integer
                        description: Queued sends whose scheduled time is now or earlier.
                      steps:
                        type: array
                        description: The same sends by sequence step, most first.
                        items:
                          type: object
                          properties:
                            stepId:
                              type:
                                - string
                                - 'null'
                              description: >-
                                The step, as GET
                                /business/campaigns/{campaignId}/steps lists it;
                                null for AI replies, which belong to no step.
                            queuedSends:
                              type: integer
                          required:
                            - stepId
                            - queuedSends
                      leadsToStart:
                        type: integer
                        description: >-
                          Leads not started yet; each gets its first step once
                          the campaign runs, over as many sending days as its
                          sending accounts' daily limits need. For a campaign
                          that has never run, which approval enrolls from its
                          source lists, this is `contacts.total`.
                    required:
                      - queuedSends
                      - steps
                      - leadsToStart
                required:
                  - campaignId
                  - ready
                  - reason
                  - contacts
                  - dueNow
              example:
                campaignId: 6a8da7718707dbcfb4448b96
                ready: false
                reason: NO_ACTIVE_EMAIL_ACCOUNTS
                contacts:
                  total: 1200
                  withEmail: 1080
                  withoutEmail: 120
                  withLinkedin: 950
                dueNow:
                  queuedSends: 46
                  steps:
                    - stepId: 6a8da7718707dbcfb4448b9a
                      queuedSends: 40
                    - stepId: 6a8da7718707dbcfb4448b9b
                      queuedSends: 6
                  leadsToStart: 12
        '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.