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

# Campaign Resources and Stats

> Campaign-level stats and linked resources endpoints

# Campaign Resources and Stats

## Endpoints

* `GET /api/campaigns/:id/stats`
* `GET /api/campaigns/:id/links`
* `GET /api/campaigns/:id/rules`

## Access

* `campaigns:read` for stats
* `links:read` for campaign links
* `rules:read` for campaign rules

## `GET /api/campaigns/:id/stats`

Returns campaign-level KPI summary including:

* link count
* click/unique click totals
* conversion totals
* revenue/cost/CPA/ROI

Cost is computed from campaign cost model settings.

## `GET /api/campaigns/:id/links`

Returns links assigned to the campaign.

Response includes resolved short URLs and link-level click counters.

## `GET /api/campaigns/:id/rules`

Returns rules currently associated with the campaign.

## Common errors

* `404`: campaign not found in workspace scope
* `500`: analytics source unavailable for stats enrichments
