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

# Get apiv1campaigns



## OpenAPI

````yaml https://backend.aflux.ai/openapi get /api/v1/campaigns/{campaignId}
openapi: 3.0.3
info:
  title: AdFlux Backend API
  version: v1
servers:
  - url: /
security: []
tags:
  - name: auth
  - name: users
  - name: uploads
  - name: projects
  - name: campaigns
  - name: placements
  - name: billing
  - name: payments
  - name: image-generations
paths:
  /api/v1/campaigns/{campaignId}:
    get:
      tags:
        - campaigns
      operationId: campaignsGetById
      parameters:
        - in: path
          name: campaignId
          required: true
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Campaign'
        default:
          $ref: '#/components/responses/DefaultError'
      security:
        - Bearer: []
components:
  schemas:
    Campaign:
      type: object
      required:
        - id
        - projectId
        - name
        - destinationUrl
        - adCopy
        - platform
        - distributionType
        - mediaAssets
        - budget
        - startsAt
        - endsAt
        - dailyDistribution
        - approvalMode
        - creativeChangesAllowed
        - status
        - createdAt
        - updatedAt
      properties:
        id:
          type: string
          format: uuid
        projectId:
          type: string
          format: uuid
        name:
          type: string
        destinationUrl:
          type: string
          description: >-
            As stored, which is as it was sent except that the names of any
            known placeholders (see CreateCampaignRequest.destinationUrl) have
            been lowercased. Placeholders are never substituted here: what each
            one becomes depends on the placement, and this is the campaign.
        adCopy:
          type: string
        platform:
          $ref: '#/components/schemas/CampaignPlatform'
        objective:
          $ref: '#/components/schemas/CampaignObjective'
          nullable: true
        distributionType:
          $ref: '#/components/schemas/CampaignDistributionType'
        mediaAssets:
          type: array
          items:
            $ref: '#/components/schemas/AssetRef'
        budget:
          $ref: '#/components/schemas/MoneyAmount'
        startsAt:
          type: string
          format: date
        endsAt:
          type: string
          format: date
        dailyDistribution:
          type: array
          items:
            $ref: '#/components/schemas/DailyDistributionItem'
        approvalMode:
          $ref: '#/components/schemas/ApprovalMode'
        creativeChangesAllowed:
          type: boolean
        status:
          $ref: '#/components/schemas/CampaignStatus'
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
    CampaignPlatform:
      type: string
      enum:
        - TELEGRAM
    CampaignObjective:
      type: string
      enum:
        - AWARENESS
        - TRAFFIC
        - CONVERSIONS
        - APP_INSTALLS
    CampaignDistributionType:
      type: string
      enum:
        - RECOMMENDED
        - MANUAL
    AssetRef:
      type: object
      required:
        - assetId
        - publicUrl
      properties:
        assetId:
          type: string
          format: uuid
        publicUrl:
          type: string
    MoneyAmount:
      type: string
      pattern: ^-?\d+(\.\d{1,6})?$
      example: '125.500000'
    DailyDistributionItem:
      type: object
      required:
        - date
        - amount
      properties:
        date:
          type: string
          format: date
        amount:
          $ref: '#/components/schemas/MoneyAmount'
    ApprovalMode:
      type: string
      enum:
        - OPERATOR
        - USER
    CampaignStatus:
      type: string
      enum:
        - ACTIVE
        - COMPLETED
        - ARCHIVED
    ErrorResponse:
      type: object
      required:
        - error
      properties:
        error:
          type: string
  responses:
    DefaultError:
      description: Error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
  securitySchemes:
    Bearer:
      type: http
      scheme: bearer
      bearerFormat: JWT

````