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

# Create 10DLC campaign

> Create a 10DLC campaign under an existing brand. The campaign starts in draft status. Submit it for carrier review using the submit endpoint.



## OpenAPI

````yaml /openapi.json post /v1/10dlc/campaigns
openapi: 3.0.3
info:
  title: Zavu Unified Messaging Layer API
  version: 0.2.0
  description: >
    Unified multi-channel messaging API for Zavu.


    Supported channels:

    - **SMS**: Simple text messages

    - **WhatsApp**: Rich messaging with media, buttons, lists, CTA URL buttons,
    and templates

    - **Telegram**: Bot messaging with text, media, and interactive elements

    - **Email**: Transactional emails via Amazon SES


    Design goals:

    - Simple `send()` entrypoint for developers

    - Project-level authentication via Bearer token

    - Support for all WhatsApp message types (text, image, video, audio,
    document, sticker, location, contact, buttons, list, cta_url, reaction,
    template)

    - If a non-text message type is sent, WhatsApp channel is used automatically

    - 24-hour WhatsApp conversation window enforcement

    - Universal `to` field accepts phone numbers (E.164), email addresses, or
    numeric chat IDs (Telegram/Instagram)
servers:
  - url: https://api.zavu.dev
security:
  - bearerAuth: []
paths:
  /v1/10dlc/campaigns:
    post:
      tags:
        - 10DLC
      summary: Create 10DLC campaign
      description: >-
        Create a 10DLC campaign under an existing brand. The campaign starts in
        draft status. Submit it for carrier review using the submit endpoint.
      operationId: createTenDlcCampaign
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TenDlcCampaignCreateRequest'
            example:
              brandId: brand_abc123
              name: Order Notifications
              useCase: ACCOUNT_NOTIFICATION
              description: >-
                Send order status updates and shipping notifications to
                customers who opted in.
              sampleMessages:
                - >-
                  Hi {{name}}, your order #{{order_id}} has shipped! Track it at
                  {{url}}
                - >-
                  Your order #{{order_id}} has been delivered. Thank you for
                  your purchase!
              subscriberOptIn: true
              subscriberOptOut: true
              subscriberHelp: true
              numberPooling: false
              directLending: false
              embeddedLink: true
              embeddedPhone: false
              affiliateMarketing: false
              ageGated: false
      responses:
        '201':
          description: Campaign created in draft status.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TenDlcCampaignResponse'
        '400':
          description: Invalid request.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Unauthorized.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Brand not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - bearerAuth: []
components:
  schemas:
    TenDlcCampaignCreateRequest:
      type: object
      required:
        - brandId
        - name
        - useCase
        - description
        - sampleMessages
        - subscriberOptIn
        - subscriberOptOut
        - subscriberHelp
        - numberPooling
        - directLending
        - embeddedLink
        - embeddedPhone
        - affiliateMarketing
        - ageGated
      properties:
        brandId:
          type: string
          description: ID of the brand to create this campaign under.
        name:
          type: string
          maxLength: 100
        useCase:
          type: string
          maxLength: 50
          description: Campaign use case (e.g., ACCOUNT_NOTIFICATION, MARKETING, 2FA).
        subUseCases:
          type: array
          items:
            type: string
        description:
          type: string
          maxLength: 4096
        sampleMessages:
          type: array
          items:
            type: string
            maxLength: 1024
          minItems: 1
          maxItems: 5
        subscriberOptIn:
          type: boolean
        subscriberOptOut:
          type: boolean
        subscriberHelp:
          type: boolean
        numberPooling:
          type: boolean
        directLending:
          type: boolean
        embeddedLink:
          type: boolean
        embeddedPhone:
          type: boolean
        affiliateMarketing:
          type: boolean
        ageGated:
          type: boolean
        messageFlow:
          type: string
          maxLength: 2048
        helpMessage:
          type: string
          maxLength: 500
        optInKeywords:
          type: array
          items:
            type: string
            maxLength: 50
        optOutKeywords:
          type: array
          items:
            type: string
            maxLength: 50
    TenDlcCampaignResponse:
      type: object
      required:
        - campaign
      properties:
        campaign:
          $ref: '#/components/schemas/TenDlcCampaign'
    Error:
      type: object
      required:
        - code
        - message
      properties:
        code:
          type: string
          example: invalid_request
        message:
          type: string
          example: Phone number is invalid
        details:
          type: object
          additionalProperties: true
    TenDlcCampaign:
      type: object
      required:
        - id
        - brandId
        - name
        - useCase
        - description
        - sampleMessages
        - subscriberOptIn
        - subscriberOptOut
        - subscriberHelp
        - numberPooling
        - directLending
        - embeddedLink
        - embeddedPhone
        - affiliateMarketing
        - ageGated
        - status
        - createdAt
        - updatedAt
      properties:
        id:
          type: string
        brandId:
          type: string
          description: ID of the brand this campaign belongs to.
        name:
          type: string
          example: Order Notifications
        useCase:
          type: string
          description: Campaign use case type.
          example: ACCOUNT_NOTIFICATION
        subUseCases:
          type: array
          items:
            type: string
          nullable: true
        description:
          type: string
          description: Description of the messaging campaign.
        sampleMessages:
          type: array
          items:
            type: string
          description: Sample messages representative of campaign content.
        subscriberOptIn:
          type: boolean
        subscriberOptOut:
          type: boolean
        subscriberHelp:
          type: boolean
        numberPooling:
          type: boolean
        directLending:
          type: boolean
        embeddedLink:
          type: boolean
        embeddedPhone:
          type: boolean
        affiliateMarketing:
          type: boolean
        ageGated:
          type: boolean
        messageFlow:
          type: string
          nullable: true
        helpMessage:
          type: string
          nullable: true
        optInKeywords:
          type: array
          items:
            type: string
          nullable: true
        optOutKeywords:
          type: array
          items:
            type: string
          nullable: true
        status:
          $ref: '#/components/schemas/TenDlcCampaignStatus'
        dailyLimit:
          type: integer
          nullable: true
          description: Daily message limit based on brand trust score.
        failureReason:
          type: string
          nullable: true
        registrationCostCents:
          type: integer
          nullable: true
          description: One-time registration cost in cents.
        monthlyFeeCents:
          type: integer
          nullable: true
          description: Recurring monthly fee in cents.
        submittedAt:
          type: string
          format: date-time
          nullable: true
        approvedAt:
          type: string
          format: date-time
          nullable: true
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
    TenDlcCampaignStatus:
      type: string
      description: Status of a 10DLC campaign registration.
      enum:
        - draft
        - pending
        - approved
        - rejected
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````