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

# Campaigns

> Group links into campaigns and channels so their performance can be compared as a unit.

A campaign groups links so their performance can be read as a unit. Channels
subdivide a campaign — email, social, paid — so you can compare them against each
other.

The usual shape is: create a campaign, create channels within it, then add links
to channels. A link can belong to more than one channel.

`get_campaign_kpis` returns the headline numbers for a campaign, and accepts the
same filters as the analytics endpoints.

## Endpoints

| Endpoint | Method | Description |
| - | - | - |
| [`/api/v1/campaigns/create_campaign`](https://docs.dashlink.ai/api-reference/campaigns/create-campaign) | `POST` | Create a campaign |
| [`/api/v1/campaigns/update_campaign`](https://docs.dashlink.ai/api-reference/campaigns/update-campaign) | `POST` | Update a campaign |
| [`/api/v1/campaigns/delete_campaign`](https://docs.dashlink.ai/api-reference/campaigns/delete-campaign) | `POST` | Delete a campaign |
| [`/api/v1/campaigns/get_campaigns`](https://docs.dashlink.ai/api-reference/campaigns/get-campaigns) | `GET` | List campaigns |
| [`/api/v1/campaigns/get_campaign_details`](https://docs.dashlink.ai/api-reference/campaigns/get-campaign-details) | `GET` | Retrieve a campaign |
| [`/api/v1/campaigns/get_campaign_kpis`](https://docs.dashlink.ai/api-reference/campaigns/get-campaign-kpis) | `GET` | Retrieve campaign KPIs |
| [`/api/v1/campaigns/create_channel`](https://docs.dashlink.ai/api-reference/campaigns/create-channel) | `POST` | Create a channel |
| [`/api/v1/campaigns/update_channel`](https://docs.dashlink.ai/api-reference/campaigns/update-channel) | `POST` | Update a channel |
| [`/api/v1/campaigns/delete_channel`](https://docs.dashlink.ai/api-reference/campaigns/delete-channel) | `POST` | Delete a channel |
| [`/api/v1/campaigns/fetch_channels`](https://docs.dashlink.ai/api-reference/campaigns/fetch-channels) | `GET` | List channels |
| [`/api/v1/campaigns/add_shortlinks_to_channel`](https://docs.dashlink.ai/api-reference/campaigns/add-shortlinks-to-channel) | `POST` | Add links to a channel |
| [`/api/v1/campaigns/remove_shortlinks_from_channel`](https://docs.dashlink.ai/api-reference/campaigns/remove-shortlinks-from-channel) | `POST` | Remove links from a channel |


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