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

# Get Campaign

> Returns a single campaign based on the ID supplied



## OpenAPI

````yaml openapi-campaigns GET /campaigns/{campaign_id}
openapi: 3.0.1
info:
  title: Puretalk AI
  description: Api Documentation for Puretalk AI
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://api.puretalk.ai/api
security:
  - ApiKeyAuth: []
paths:
  /campaigns/{campaign_id}:
    get:
      description: Returns a single campaign based on the ID supplied
      parameters:
        - name: campaign_id
          in: path
          description: ID of campaign to return
          required: true
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: Campaign response
          content:
            application/json:
              schema:
                type: object
                properties:
                  msg:
                    type: string
                    description: Message from the API
                    example: Campaign retrieved successfully
                  err:
                    type: boolean
                    description: Indicates if the response is an error
                    example: false
                  results:
                    $ref: '#/components/schemas/Campaign'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    Campaign:
      type: object
      properties:
        ai_assistant:
          type: object
          properties:
            assistant_id:
              type: string
              description: ID of the AI assistant
              example: 123e4567-e89b-12d3-a456-426614174000
            name:
              type: string
              description: Name of the AI assistant
              example: My Assistant
            variables:
              type: array
              items:
                type: string
                description: Variables of the AI assistant
                example: name
        schedules:
          type: array
          items:
            type: object
            properties:
              campaign_schedule_id:
                type: string
                description: ID of the campaign schedule
                example: 123e4567-e89b-12d3-a456-426614174000
              day:
                type: string
                description: Day of the campaign schedule
                example: Monday
              start_time:
                type: string
                format: time
                description: Start time of the campaign schedule
                example: '10:00'
              end_time:
                type: string
                format: time
                description: End time of the campaign schedule
                example: '11:00'
        campaign_id:
          type: string
          description: ID of the campaign
          example: 123e4567-e89b-12d3-a456-426614174000
        type:
          type: string
          description: Type of the campaign
          example: call
        name:
          type: string
          description: Name of the campaign
          example: My Campaign
        start_date:
          type: string
          format: date
          description: Start date of the campaign
          example: '2021-01-01'
        end_date:
          type: string
          format: date
          description: End date of the campaign
          example: '2021-01-01'
        status:
          type: string
          description: Status of the campaign
          example: active
        created_at:
          type: string
          format: date-time
          description: Created at date of the campaign
          example: '2021-01-01'
        updated_at:
          type: string
          format: date-time
          description: Updated at date of the campaign
          example: '2021-01-01'
        total_tasks:
          type: integer
          description: Total number of tasks
          example: 100
        completed_tasks:
          type: integer
          description: Total number of completed tasks
          example: 100
        pending_tasks:
          type: integer
          description: Total number of pending tasks
          example: 100
    Error:
      type: object
      properties:
        err:
          type: boolean
          description: Indicates if the response is an error
          example: false
        msg:
          type: string
          description: Message from the API
          example: Error message
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-KEY
      description: >-
        Authorization header containing API key. You can find your API key in
        the dashboard under 'API Keys'.

````