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

# List campaign groups

> Returns the workspace's campaign groups with their campaigns, weights and stats. Beta: answers 403 feature_unavailable when campaign groups are not switched on for the workspace.

## Overview

List the workspace's [campaign groups](https://docs.kakiyo.com/guides/campaign-groups/campaign-groups.md): campaigns, usually on different LinkedIn profiles, that share one pool of people. Each group returns its campaigns with their weight (share of new prospects) and the group's results.

Use a group's `id` as `groupId` in [Add Single Prospect](https://docs.kakiyo.com/api-reference/prospects/add-single.md) or [Add Prospects Batch](https://docs.kakiyo.com/api-reference/prospects/add-batch.md) to split prospects across the group.

> [!NOTE]
>
> Campaign groups are in beta and switched on per workspace. Workspaces without them get `403 feature_unavailable`. Groups are created and edited in the dashboard.

## Example

```bash theme={null}
curl "https://api.kakiyo.com/v1/campaign-groups" \
  -H "Authorization: Bearer YOUR_API_KEY"
```

```json theme={null}
{
  "groups": [
    {
      "id": "group_12345abcde",
      "name": "Series A founders",
      "paused": false,
      "members": [
        { "campaignId": "campaign_aaa", "name": "Series A founders · Ayush", "weight": 80, "agentId": "agent_aaa", "status": "active" },
        { "campaignId": "campaign_bbb", "name": "Series A founders · Liam", "weight": 20, "agentId": "agent_bbb", "status": "active" }
      ],
      "stats": { "people": 120, "contacted": 96, "connected": 41, "replied": 12, "qualified": 4, "retargeted": 9, "rescued": 2 }
    }
  ]
}
```

`weight` is relative: 80 and 20 mean 80% and 20% of new prospects. `retargeted` counts people tried by more than one campaign, and `rescued` the people who answered after a second try.


## OpenAPI

````yaml GET /campaign-groups
openapi: 3.1.0
info:
  title: Kakiyo API
  description: API for automating LinkedIn outreach campaigns with AI-powered conversations
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://api.kakiyo.com/v1
security:
  - bearerAuth: []
paths:
  /campaign-groups:
    get:
      summary: List Campaign Groups
      description: >-
        Returns the workspace's campaign groups with their campaigns, weights
        and stats. Beta: answers 403 feature_unavailable when campaign groups
        are not switched on for the workspace.
      operationId: listCampaignGroups
      responses:
        '200':
          description: Campaign groups
          content:
            application/json:
              schema:
                type: object
                properties:
                  groups:
                    type: array
                    items:
                      $ref: '#/components/schemas/CampaignGroup'
        '401':
          description: Authentication failed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Campaign groups are not enabled for this workspace
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    CampaignGroup:
      type: object
      properties:
        id:
          type: string
          example: group_12345abcde
        name:
          type: string
          example: Series A founders
        paused:
          type: boolean
          description: Paused groups stop second tries; new prospects are still split.
          example: false
        members:
          type: array
          items:
            type: object
            properties:
              campaignId:
                type: string
                example: campaign_12345abcde
              name:
                type: string
                example: Series A founders · Ayush
              weight:
                type: integer
                minimum: 0
                maximum: 100
                description: Relative share of new prospects
                example: 80
              agentId:
                type: string
                description: LinkedIn profile running the campaign
                example: agent_12345abcde
              status:
                type: string
                example: active
        stats:
          type: object
          properties:
            people:
              type: integer
              example: 120
            contacted:
              type: integer
              example: 96
            connected:
              type: integer
              example: 41
            replied:
              type: integer
              example: 12
            qualified:
              type: integer
              example: 4
            retargeted:
              type: integer
              description: People tried by more than one campaign
              example: 9
            rescued:
              type: integer
              description: People who answered after a second try
              example: 2
    Error:
      type: object
      properties:
        error:
          type: string
          example: validation_error
        message:
          type: string
          example: The request parameters failed validation
        details:
          type: array
          items:
            type: object
            properties:
              field:
                type: string
                example: name
              message:
                type: string
                example: The name field is required
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````

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