---
title: "List saved campaign sections"
method: GET
path: "/campaign-sections"
tags: ["Content Library"]
---

# List saved campaign sections

`GET /campaign-sections`

## Request

- Base URL: `https://api.sendfox.com`
- URL: `https://api.sendfox.com/campaign-sections`
- Auth: OAuth 2
  - Authorization code: `https://sendfox.com/oauth/authorize`
  - Token URL: `https://sendfox.com/oauth/token`

Returns only content owned by the authenticated account, including saved HTML. Shared gallery content is not included. This endpoint does not publish, modify or send content. Results are ordered by descending ID, 20 per page.

## Query parameters

- `page` integer
- `q` string

## Response `200`

Saved content

- object
  - `data` CampaignSection[], required
    - `id` integer, required
    - `name` string, required
    - `html` string, nullable, required
    - `created_at` string, date-time, nullable, required
    - `updated_at` string, date-time, nullable, required
  - `current_page` integer, required
  - `per_page` 20, required
  - `total` integer, required
  - `last_page` integer
  - `next_page_url` string, nullable
  - `prev_page_url` string, nullable

## Other responses

- `401`: Unauthorized
- `403`: Forbidden. Most often an ownership/authorization failure (Laravel's default `{"message": "..."}` shape). If the account is restricted by SendFox, the response instead carries the structured `account_restricted` body with a link to the account status page.
- `422`: Invalid page or search input
- `429`: Rate limit reached: 60 requests per minute per user, shared across all endpoints. Wait for the `Retry-After` seconds, then try again.

## Changes

- **2026-11-07** `ae5d5ba1d502`: 1 info
  - added the non-success response with the status `429`
- **2026-10-14** `7afac8298a43`: 1 info
  - removed the non-success response with the status `402`
- **2026-09-22** `c33829ff3c7f`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/sendfox/apis/sendfox-api/changes/campaign-sections/get.md)

---

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