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

# Read one campaign.

> Required permission: `campaigns:read`. Accepted credentials: a signed-in person, an API key, the account token.




## OpenAPI

````yaml /api-reference/openapi.yaml get /campaigns/{campaign_id}
openapi: 3.1.0
info:
  title: Sendblue Omni API
  version: '2026-11-23'
  summary: The native Sendblue communications API served by Omni.
  description: |
    The Sendblue Omni API: messages, numbers, calls, recordings, media, 10DLC
    registration, billing and webhooks for US messaging and calling.

    Every operation on this page is live. Requests and responses are JSON with
    `snake_case` names, at the root of the host with no version prefix. See the
    guides for [authentication](/authentication), [idempotency](/idempotency),
    [errors](/errors), [pagination](/pagination) and [webhooks](/webhooks).
  contact:
    name: Sendblue
    url: https://sendblue.com
servers:
  - url: https://omni-api.sendblue.com
    description: Production
security:
  - person: []
  - bearer: []
  - legacyKeyId: []
    legacyKeySecret: []
tags:
  - name: account
  - name: messages
  - name: numbers
  - name: brands
  - name: campaigns
  - name: calls
  - name: recordings
  - name: media
  - name: contacts
  - name: tags
  - name: variables
  - name: workflows
  - name: admin
  - name: operations
paths:
  /campaigns/{campaign_id}:
    parameters:
      - name: campaign_id
        in: path
        required: true
        schema:
          type: string
    get:
      tags:
        - campaigns
      summary: Read one campaign.
      description: >
        Required permission: `campaigns:read`. Accepted credentials: a signed-in
        person, an API key, the account token.
      operationId: getCampaign
      responses:
        '200':
          description: The campaign.
          headers:
            Request-Id:
              $ref: '#/components/headers/RequestId'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Campaign'
        default:
          $ref: '#/components/responses/Error'
components:
  headers:
    RequestId:
      description: |
        `Request-Id`. Identifies this request in Sendblue's logs. Present on
        every response of this API, success or error, and readable by a page
        on an allowed origin.
      schema:
        type: string
        pattern: ^RQ[0-9a-f]{32}$
      example: RQ0123456789abcdef0123456789abcdef
    RetryAfter:
      description: >-
        Seconds to wait before repeating the request. Present on throttled
        requests and resource service outages.
      schema:
        type: integer
  schemas:
    Campaign:
      type: object
      required:
        - id
        - brand_id
        - name
        - status
        - review_stage
        - failure_reasons
        - use_case
        - sub_use_cases
        - description
        - message_flow
        - sample_messages
        - privacy_policy_url
        - terms_url
        - opt_in_keywords
        - opt_in_message
        - opt_out_keywords
        - opt_out_message
        - help_keywords
        - help_message
        - has_embedded_links
        - has_embedded_phone
        - age_gated
        - direct_lending
        - subscriber_opt_in
        - auto_renewal
        - auto_renewal_requested
        - current_term_ends_at
        - renewal_fund_by
        - renewal_cutoff_missed
        - renewal_notice
        - committed_term_starts_at
        - committed_term_ends_at
        - renewal_commitment_status
        - renewal_status
        - renewal_review_required
        - price
        - monthly_price
        - number_count
        - operation_id
        - created_at
        - updated_at
      additionalProperties: false
      properties:
        id:
          type: string
          description: Also the `campaign_id` of a message and of a number.
        brand_id:
          type: string
        name:
          type: string
        status:
          $ref: '#/components/schemas/CampaignStatus'
        deactivation:
          type:
            - object
            - 'null'
          description: >-
            Set when the owner requests permanent registry deletion. A confirmed
            campaign reports expired. `review` means Sendblue must resolve the
            request. Deactivation carries no refund.
          additionalProperties: false
          required:
            - status
            - irreversible
            - fees_refundable
          properties:
            status:
              type: string
              enum:
                - pending
                - confirmed
                - refused
                - review
            irreversible:
              type: boolean
              enum:
                - true
            fees_refundable:
              type: boolean
              enum:
                - false
          example:
            status: confirmed
            irreversible: true
            fees_refundable: false
        review_stage:
          type:
            - string
            - 'null'
          description: |
            The carrier's own review phase, lower-cased, for example
            `tcr_pending`, `tcr_accepted`, `mno_pending`, `mno_provisioned`.
            Null until the carrier has accepted the submission.
        failure_reasons:
          type: array
          description: >-
            Why the campaign is `rejected`, and what to correct. Empty
            otherwise.
          items:
            $ref: '#/components/schemas/FailureReason'
        use_case:
          type: string
        sub_use_cases:
          type: array
          items:
            type: string
        description:
          type: string
        message_flow:
          type: string
        sample_messages:
          type: array
          items:
            type: string
        privacy_policy_url:
          type: string
        terms_url:
          type: string
        opt_in_keywords:
          type: array
          items:
            type: string
        opt_in_message:
          type:
            - string
            - 'null'
        opt_out_keywords:
          type: array
          description: >-
            Registered for every campaign and answered by the carrier; not
            configurable.
          items:
            type: string
        opt_out_message:
          type: string
        help_keywords:
          type: array
          description: Registered for every campaign; not configurable.
          items:
            type: string
        help_message:
          type: string
        has_embedded_links:
          type: boolean
        has_embedded_phone:
          type: boolean
        age_gated:
          type: boolean
        direct_lending:
          type: boolean
        subscriber_opt_in:
          type: boolean
        auto_renewal:
          type:
            - boolean
            - 'null'
          description: >-
            Last carrier-confirmed renewal setting. Null while confirmation is
            pending for a new enrollment. Legacy one-time registrations report
            false.
        auto_renewal_requested:
          type: boolean
          description: >-
            The current renewal instruction. Opt-out, expiry, or an unpaid
            renewal at the safety cutoff turns it off.
        current_term_ends_at:
          description: >-
            End of the current term reported by the carrier. Null until
            supplied.
          oneOf:
            - $ref: '#/components/schemas/Timestamp'
            - type: 'null'
        renewal_fund_by:
          description: >-
            Absolute UTC deadline to cover the fee for the next month. Pinned to
            the observed carrier term. Null until Omni knows an applicable
            deadline.
          oneOf:
            - $ref: '#/components/schemas/Timestamp'
            - type: 'null'
        renewal_cutoff_missed:
          type: boolean
          description: >-
            Omni requested opt-out after finding the next monthly fee uncovered
            at or after this term's funding deadline. Read auto_renewal for the
            last confirmed carrier setting.
        renewal_notice:
          type:
            - string
            - 'null'
          description: >-
            Funding deadline, recovery instructions after nonpayment, or the
            charge and campaign end after a late voluntary cancellation. Null
            when none applies. Captured for campaign.updated at the time of the
            change.
          examples:
            - >-
              Fund by 2027-03-16T12:00:00.000000Z or Omni will request that
              auto-renewal be turned off. If the fee is already reserved, no
              additional funds are needed.
            - >-
              Omni requested auto-renewal be turned off and is awaiting carrier
              confirmation. The carrier's cancellation cutoff for the term
              starting 2027-01-31T12:00:00.000000Z has passed. You will still be
              charged for that month when the carrier confirms the new period.
              The campaign is expected to end on 2027-02-28T12:00:00.000000Z.
        committed_term_starts_at:
          description: >-
            Start of the next month affected by a late cancellation. Review can
            identify a known term with incomplete billing evidence even when no
            reservation exists. Null when no relevant term was captured.
          oneOf:
            - $ref: '#/components/schemas/Timestamp'
            - type: 'null'
        committed_term_ends_at:
          description: >-
            Expected end of that committed month, one calendar month later in
            UTC until the carrier confirms the actual term. If the carrier
            confirms it never billed that month, the campaign ended at
            committed_term_starts_at.
          oneOf:
            - $ref: '#/components/schemas/Timestamp'
            - type: 'null'
        renewal_commitment_status:
          type:
            - string
            - 'null'
          enum:
            - pending
            - billed
            - not_billed
            - review
            - null
          description: >-
            Pending retains the existing hold. Billed means Omni captured the
            hold against a confirmed new carrier period. Not_billed means
            confirmed expiry without a renewed month released any hold. Review
            means billing evidence is unresolved. Any existing hold remains in
            place. Null when no late cancellation commitment applies.
        renewal_status:
          type: string
          enum:
            - unavailable
            - false
            - pending
            - scheduled
            - awaiting_funds
            - spend_limit
            - disabling
            - expired
            - review
          description: |
            `unavailable` means there is no monthly offer. `off` means renewal
            is disabled. `pending` awaits carrier confirmation. `scheduled`
            has a renewal scheduled. `awaiting_funds` means the wallet needs
            funding before cutoff. `spend_limit` means the account's spending
            ceiling prevents the renewal hold. Ask the parent account owner
            to review the ceiling before renewal_fund_by. Funding alone
            leaves the ceiling in place. `disabling` awaits carrier confirmation
            of opt-out or nonpayment. `expired` means the term ended.
            `review` means Sendblue must resolve it. The status describes
            the current term. An earlier disputed or unverified charge can
            remain under separate review.
        renewal_review_required:
          type: boolean
          description: >-
            True when an earlier renewal still holds wallet funds awaiting
            matching carrier billing evidence. Check this flag alongside the
            current term's renewal_status.
        price:
          $ref: '#/components/schemas/Price'
          description: >-
            The registration fee held for this campaign and charged on
            submission.
        monthly_price:
          description: >-
            The agreed monthly amount for subsequent terms, or the offer on an
            unenrolled campaign. Null when no price is available.
          oneOf:
            - $ref: '#/components/schemas/Price'
            - type: 'null'
        number_count:
          type: integer
          description: How many numbers are assigned to the campaign.
        operation_id:
          type: string
          description: The submission, for `GET /operations/{operation_id}`.
        created_at:
          $ref: '#/components/schemas/Timestamp'
        updated_at:
          $ref: '#/components/schemas/Timestamp'
      example:
        id: MG0123456789abcdef0123456789abcdef
        brand_id: BN0123456789abcdef0123456789abcdef
        name: Order updates
        status: pending
        review_stage: tcr_accepted
        failure_reasons: []
        use_case: CUSTOMER_CARE
        sub_use_cases: []
        description: Order confirmations and support replies for customers of the shop.
        message_flow: >-
          Customers tick an unchecked box at checkout to receive order updates
          by text.
        sample_messages:
          - Your order 1042 has shipped and arrives on Friday.
          - Thanks for writing in. An agent will reply within one hour.
        privacy_policy_url: https://example.com/privacy
        terms_url: https://example.com/terms
        opt_in_keywords: []
        opt_in_message: null
        opt_out_keywords:
          - STOP
          - STOPALL
          - UNSUBSCRIBE
          - CANCEL
          - END
          - QUIT
        opt_out_message: You are unsubscribed and will receive no more messages.
        help_keywords:
          - HELP
        help_message: 'Synthetic Works support: write to help@example.com.'
        has_embedded_links: false
        has_embedded_phone: false
        age_gated: false
        direct_lending: false
        subscriber_opt_in: true
        auto_renewal: null
        auto_renewal_requested: true
        current_term_ends_at: null
        renewal_fund_by: null
        renewal_cutoff_missed: false
        renewal_notice: null
        committed_term_starts_at: null
        committed_term_ends_at: null
        renewal_commitment_status: null
        renewal_status: pending
        renewal_review_required: false
        price:
          amount: '15.00'
          amount_micro_usd: 15000000
          currency: USD
        monthly_price:
          amount: '10.00'
          amount_micro_usd: 10000000
          currency: USD
        number_count: 0
        operation_id: OP1123456789abcdef0123456789abcdef
        created_at: '2026-11-23T18:04:05.123456Z'
        updated_at: '2026-11-23T18:09:05.123456Z'
    CampaignStatus:
      type: string
      description: |
        Where the campaign stands with the registry and the mobile networks.

        - `pending`: recorded, being submitted, or in review.
        - `approved`: registered and provisioned by the mobile networks.
          Numbers can be assigned to it and send.
        - `rejected`: the carrier refused the submission, or the registry, the
          carrier or a mobile network rejected the campaign
          (`failure_reasons`).
        - `suspended`: the registry suspended the campaign. Its numbers
          cannot send.
        - `expired`: the campaign's term ended. Its numbers cannot send.
      enum:
        - pending
        - approved
        - rejected
        - suspended
        - expired
    FailureReason:
      type: object
      required:
        - code
        - message
      additionalProperties: false
      properties:
        code:
          type: string
          description: |
            For a brand: `submission_rejected`, `registration_failed`,
            `identity_unverified`. For a campaign: `submission_rejected`,
            `registry_rejected`, `carrier_rejected`, `network_rejected`,
            `network_provisioning_failed`.
        message:
          type: string
          description: What happened and what to correct, for people.
    Timestamp:
      type: string
      format: date-time
      description: RFC 3339, UTC.
    Price:
      type: object
      description: |
        An amount in US dollars. `amount` is a decimal string with two to six
        decimals; `amount_micro_usd` is the same amount as every other money
        member of this API states it.
      required:
        - amount
        - amount_micro_usd
        - currency
      additionalProperties: false
      properties:
        amount:
          type: string
          pattern: ^[0-9]+\.[0-9]{2,6}$
        amount_micro_usd:
          type: integer
          format: int64
          minimum: 0
        currency:
          type: string
          const: USD
      example:
        amount: '4.00'
        amount_micro_usd: 4000000
        currency: USD
    Error:
      type: object
      required:
        - error
      additionalProperties: false
      properties:
        error:
          type: object
          required:
            - code
            - message
          additionalProperties: false
          properties:
            code:
              $ref: '#/components/schemas/ErrorCode'
            message:
              type: string
            details:
              type: object
              description: >
                Machine-readable context. `field` names the request member,

                parameter or header at fault; `reason` narrows `unprocessable`,

                and `forbidden` for a verified person with no seat (`no_seat`),

                whose active membership could not be confirmed
                (`membership_unclassified`), or

                whose company has no usable account (`account_required`,
                `account_suspended`).
              properties:
                field:
                  type: string
                reason:
                  type: string
                recovery:
                  type: string
                  enum:
                    - retry_same_idempotency_key
                    - read_resource
                    - reconcile_tag_membership
                  description: >-
                    Required for write_outcome_unknown. Follow the
                    operation-specific recovery before attempting another write.
                required_permission:
                  $ref: '#/components/schemas/Permission'
              additionalProperties: true
    ErrorCode:
      type: string
      description: >
        The catalogue of error codes, with the status each is sent with.


        | Code | Status | Meaning |

        | --- | --- | --- |

        | `invalid_request` | 400 | The request is malformed: bad JSON, an
        unknown or mistyped member, a bad parameter or header. |

        | `unauthenticated` | 401 | No credential, or one that does not verify.
        |

        | `insufficient_funds` | 402 | The balance cannot cover the price, or
        debt is outstanding. |

        | `forbidden` | 403 | The account, resource or deployment refuses this
        operation. |

        | `permission_denied` | 403 | The credential lacks the named permission.
        See `details.required_permission`. |

        | `not_found` | 404 | No such route, or no such resource in this
        account. |

        | `method_not_allowed` | 405 | The route exists and does not take this
        method. |

        | `conflict` | 409 | The resource is not in a state that allows the
        change. |

        | `idempotency_conflict` | 409 | The `Idempotency-Key` was used for a
        different request. |

        | `payload_too_large` | 413 | The request body is over the limit. |

        | `unsupported_media_type` | 415 | The body is not `application/json`. |

        | `unprocessable` | 422 | The request is well formed and cannot be
        carried out; `details.reason` says why. |

        | `unsupported` | 422 | The member or value is defined and not available
        yet. |

        | `rate_limited` | 429 | Too many requests; wait `Retry-After` seconds.
        |

        | `internal` | 500 | An unexpected failure. |

        | `unavailable` | 503 | A dependency is unavailable or the request ran
        out of time; retry. |

        | `upstream_unavailable` | 503 | The resource service is unavailable.
        Wait the number of seconds in Retry-After. |

        | `write_outcome_unknown` | 503 | The owner may have committed. Follow
        details.recovery. Retry-After is omitted. |
      enum:
        - invalid_request
        - unauthenticated
        - insufficient_funds
        - forbidden
        - permission_denied
        - not_found
        - method_not_allowed
        - conflict
        - idempotency_conflict
        - payload_too_large
        - unsupported_media_type
        - unprocessable
        - unsupported
        - rate_limited
        - internal
        - unavailable
        - upstream_unavailable
        - write_outcome_unknown
    Permission:
      type: string
      enum:
        - accounts:create
        - billing:history
        - billing:read
        - billing:refill
        - billing:top_up
        - brands:read
        - brands:write
        - calls:create
        - calls:read
        - calls:write
        - campaigns:read
        - campaigns:write
        - company_settings:read
        - contacts:read
        - contacts:write
        - keys:manage
        - me:read
        - media:read
        - media:write
        - messages:read
        - messages:send
        - messages:write
        - number_orders:cancel
        - number_orders:create
        - number_orders:read
        - numbers:purchase
        - numbers:read
        - numbers:release
        - numbers:write
        - operations:read
        - prices:read
        - recordings:read
        - recordings:write
        - settings:read
        - settings:write
        - subaccounts:manage
        - tags:read
        - tags:write
        - team:manage
        - team:read
        - variables:read
        - variables:write
        - webhooks:manage
        - webhooks:receive
        - workflows:read
        - workflows:write
  responses:
    Error:
      description: >
        Any response that is not 2xx: `400 invalid_request`,

        `401 unauthenticated`, `402 insufficient_funds`, `403 forbidden` or
        `permission_denied`,

        `404 not_found`, `405 method_not_allowed`, `409 conflict` or

        `idempotency_conflict`, `413 payload_too_large`,

        `415 unsupported_media_type`, `422 unprocessable`, `429 rate_limited`,

        `500 internal`, `503 unavailable`, `upstream_unavailable` or
        `write_outcome_unknown`.
      headers:
        Request-Id:
          $ref: '#/components/headers/RequestId'
        Retry-After:
          $ref: '#/components/headers/RetryAfter'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: invalid_request
              message: Unknown field
              details:
                field: colour
  securitySchemes:
    person:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        A person's session: `Authorization: Bearer <ID token>`, the ID token the
        Sendblue sign-in issues. The person acts in their company's root account
        with the role of their seat.
    bearer:
      type: http
      scheme: bearer
      bearerFormat: <credential id>.<secret>
      description: >-
        `Authorization: Bearer <credential id>.<secret>`: an API key ID (`SK…`)
        with the key's secret, or an account ID (`AC…`) with the account's
        token. An existing Sendblue API key is accepted in the same form.
    legacyKeyId:
      type: apiKey
      in: header
      name: sb-api-key-id
      description: >-
        The ID of an existing Sendblue API key (or of an `SK…` key or `AC…`
        account), sent together with `sb-api-secret-key`.
    legacyKeySecret:
      type: apiKey
      in: header
      name: sb-api-secret-key
      description: The credential's secret, sent together with `sb-api-key-id`.

````

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