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

# List campaigns

> Keyset-paginated list of the team's campaigns, oldest first — the discovery feed for the other outbound endpoints. Feed `campaign_id` into `campaign-texts` or `campaign-customers` rather than maintaining a campaign list by hand. A plain row read with no per-campaign analytics. Test and deleted campaigns are excluded. Always scoped to the team in the URL path. Requires the `read:outbound` permission.



## OpenAPI

````yaml /api-reference/openapi.json get /api/v1/teams/{teamId}/outbound/campaigns
openapi: 3.1.0
info:
  title: Avoca Enterprise API
  description: >-
    Read-only programmatic access to Avoca data: calls and recordings,
    transcripts, leads, coach evaluations, Simple Scheduler sessions and
    analytics, outbound texting activity, enterprise support tickets, and
    customer survey results.
  version: 1.5.0
servers:
  - url: https://enterprise-api.avoca.ai
security:
  - bearerAuth: []
tags:
  - name: Calls
    description: Call records, recordings, transcripts, and pre-call transfers
  - name: Leads
    description: Unified leads (v0) and the canonical leads feed (v1)
  - name: Teams
    description: Teams accessible to the API key
  - name: Coach
    description: Coach (QA) call evaluations and rubrics
  - name: Scheduler Analytics (v0)
    description: Simple Scheduler analytics — legacy flat endpoints
  - name: Sessions & Bookings
    description: v1 scheduling-widget sessions and completed bookings
  - name: Analytics (v1)
    description: v1 funnel, UTM, service-area, and issue-type analytics
  - name: Outbound Texting
    description: Campaign text and subscription-event feeds for BI ingestion
  - name: Support Tickets
    description: Customer-safe enterprise support-ticket feed
  - name: Surveys
    description: >-
      Post-call customer survey results (CSAT, resolution, feedback) for BI
      ingestion
paths:
  /api/v1/teams/{teamId}/outbound/campaigns:
    get:
      tags:
        - Outbound Texting
      summary: List campaigns
      description: >-
        Keyset-paginated list of the team's campaigns, oldest first — the
        discovery feed for the other outbound endpoints. Feed `campaign_id` into
        `campaign-texts` or `campaign-customers` rather than maintaining a
        campaign list by hand. A plain row read with no per-campaign analytics.
        Test and deleted campaigns are excluded. Always scoped to the team in
        the URL path. Requires the `read:outbound` permission.
      operationId: listOutboundCampaigns
      parameters:
        - $ref: '#/components/parameters/teamIdPath'
        - name: campaign_status
          in: query
          required: false
          description: >-
            Comma-separated campaign statuses (default
            `ACTIVE,SCHEDULED,COMPLETED`). Pass `ACTIVE` for running campaigns
            only.
          schema:
            type: string
            default: ACTIVE,SCHEDULED,COMPLETED
        - $ref: '#/components/parameters/cursor'
        - $ref: '#/components/parameters/limit500default50'
      responses:
        '200':
          description: Paginated campaigns
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/OutboundCampaign'
                  pagination:
                    $ref: '#/components/schemas/CursorPagination'
                  meta:
                    type: object
                    properties:
                      team_id:
                        type: integer
                      campaign_status:
                        type: array
                        items:
                          type: string
                        description: The effective status filter
        '400':
          $ref: '#/components/responses/BadRequest'
        '403':
          $ref: '#/components/responses/Forbidden'
components:
  parameters:
    teamIdPath:
      name: teamId
      in: path
      required: true
      description: The team ID
      schema:
        type: integer
    cursor:
      name: cursor
      in: query
      description: >-
        Opaque pagination cursor from the previous response's
        `pagination.cursor`
      schema:
        type: string
    limit500default50:
      name: limit
      in: query
      description: Results per page (default 50, max 500)
      schema:
        type: integer
        default: 50
        maximum: 500
  schemas:
    OutboundCampaign:
      type: object
      properties:
        campaign_id:
          type: integer
        campaign_name:
          type:
            - string
            - 'null'
          description: >-
            Not unique within a team; use `campaign_id` to select a campaign on
            the other feeds
        campaign_status:
          type: string
          description: Raw campaign status
          enum:
            - CREATED
            - SCHEDULED
            - ACTIVE
            - PAUSED
            - COMPLETED
        campaign_type:
          type:
            - string
            - 'null'
          description: >-
            The campaign's workflow type (e.g. `SPEED_TO_LEAD`, `RESCHEDULE`,
            `MAINTENANCE`)
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
        scheduled_at:
          type:
            - string
            - 'null'
          format: date-time
        active_at:
          type:
            - string
            - 'null'
          format: date-time
        paused_at:
          type:
            - string
            - 'null'
          format: date-time
        completed_at:
          type:
            - string
            - 'null'
          format: date-time
    CursorPagination:
      type: object
      properties:
        cursor:
          type:
            - string
            - 'null'
          description: >-
            Pass back as the `cursor` query parameter to fetch the next page;
            `null` on the last page
        has_more:
          type: boolean
        limit:
          type: integer
    Error:
      type: object
      properties:
        error:
          type: string
          description: Error type
        message:
          type: string
          description: Human-readable description (newer endpoints)
      required:
        - error
  responses:
    BadRequest:
      description: Invalid parameters
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Forbidden:
      description: API key lacks the required permission or team access
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: API key in the format `avoca_<64 hex characters>`

````