---
title: "Get assigned campaigns"
method: GET
path: "/{sub_domain}/api/groups/{id}/campaigns"
tags: ["Groups"]
---

# Get assigned campaigns

`GET /{sub_domain}/api/groups/{id}/campaigns`

## Request

- Base URL: `https://api.commpeak.com/dialer`
- URL: `https://api.commpeak.com/dialer/{sub_domain}/api/groups/{id}/campaigns`
- Auth: API key in header `Authorization`

Retrieve the campaigns assigned to a user group.

**When to use.** See which campaigns a group dials. Send the group `id` in the path.

**Parameters.** `fields` (optional): a semicolon-separated list of campaign fields to return, for example `id;name`. When omitted, the full set of campaign fields is returned.

**Returns.** `{ "groupCampaigns": [ ... ] }`, one entry per assigned campaign, or an empty array if the group has no campaigns. Returns `404` if no group matches the id.

**Example.** `GET /api/groups/5/campaigns`

## Path parameters

- `id` integer, required: Group ID.
- `sub_domain` string, required: Dialer Name (subdomain)

## Query parameters

- `fields` string, nullable: Semicolon-separated list of campaign fields to return, for example id;name.

## Response `200`

Successful Response

- GroupCampaignsResponse
  - `groupCampaigns` CampaignResult[], required
    - `id` integer, nullable, required: Campaign ID.
    - `name` string, nullable, required: Campaign name.
    - `description` string, nullable, required: Campaign description.

## Other responses

- `404`: Not Found
- `422`: Validation Error
- `500`: Internal Server Error

---

[API](https://skmtc.dev/commpeak/apis/commpeak-dialer-api.md) - [All operations](https://skmtc.dev/commpeak/apis/commpeak-dialer-api/llms.txt) - [OpenAPI document](https://skmtc.dev/commpeak/apis/commpeak-dialer-api/revisions/18c5edc07544?raw)
