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

# Download a campaign report

> Export completed campaign runs as CSV.

Requires a Labs `super_user` OAuth bearer token. Optional ISO 8601 `start_date` and `end_date` filter creation time. The response is a `text/csv` attachment, not JSON. A campaign outside the selected workspace returns `404`.


## OpenAPI

````yaml GET /api/v1/campaign/{campaign_id}/report
openapi: 3.1.0
info:
  title: Bandwidth Agent Builder API
  version: v1
  description: >-
    Manage agents, place calls, and retrieve conversation results in your
    workspace.
servers:
  - url: https://agents.labs.bandwidth.com
    description: Workspace API
security: []
paths:
  /api/v1/campaign/{campaign_id}/report:
    get:
      tags:
        - campaigns
      summary: Download a campaign report
      description: >-
        **Authorization:** Requires a Labs OAuth bearer token with the
        `super_user` role. API keys are not accepted. A workspace Owner role
        alone is insufficient.


        Export completed campaign runs as CSV.
      operationId: download_campaign_report_api_v1_campaign__campaign_id__report_get
      parameters:
        - in: path
          name: campaign_id
          required: true
          schema:
            title: Campaign Id
            type: integer
        - description: Filter runs created on or after this datetime (ISO 8601)
          in: query
          name: start_date
          required: false
          schema:
            anyOf:
              - format: date-time
                type: string
              - type: 'null'
            description: Filter runs created on or after this datetime (ISO 8601)
            title: Start Date
        - description: Filter runs created on or before this datetime (ISO 8601)
          in: query
          name: end_date
          required: false
          schema:
            anyOf:
              - format: date-time
                type: string
              - type: 'null'
            description: Filter runs created on or before this datetime (ISO 8601)
            title: End Date
      responses:
        '200':
          content:
            text/csv:
              schema:
                type: string
          description: CSV download
        '401':
          description: Missing, invalid, or expired credential.
        '403':
          description: >-
            The account lacks access to the workspace, resource, or required
            role.
        '404':
          description: Not found
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
      security:
        - LabsAuth: []
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    ValidationError:
      properties:
        ctx:
          title: Context
          type: object
        input:
          title: Input
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object
  securitySchemes:
    LabsAuth:
      description: >-
        Bandwidth Labs OAuth access token. Uses the user's selected workspace;
        the workspace header is not required. Do not also send an API key.
        Bearer-only operations may additionally require the Labs `super_user`
        role.
      scheme: bearer
      type: http

````

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