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

# Channel content API

> List the content allocated to a channel in your Zapnito community through the API, with pagination and example requests.

Get the content in a channel. To get a channel's ID, [list channels](/api/v1/channels#list-channels).

Before you start, read about [authentication](/api/v1/authentication), [pagination](/api/v1/pagination) and [responses and errors](/api/v1/errors). The [API overview](/api/v1/overview) covers the base URL and lists every resource.

## List content in a channel

Return an index of all the content allocated to a channel.

<ParamField path="channel_id" type="string" required>
  The ID of the channel to list content for.
</ParamField>

<ParamField query="page" type="integer">
  The page of results to return.
</ParamField>

<ParamField query="per_page" type="integer">
  The number of results to return per page.
</ParamField>

```bash title="List content in a channel" theme={null}
curl "https://your-community.zapnito.com/api/v1/channels/1/contents?page=1&per_page=20" \
  -H "Authorization: Token token=YOUR_API_TOKEN" \
  -H "Content-Type: application/json; charset=utf-8"
```

`GET https://your-community.zapnito.com/api/v1/channels/:channel_id/contents`

<ResponseExample>
  ```json 200 OK theme={null}
  {
    "contents": [
      {
        "id": 3,
        "type": "Document",
        "title": "Annual compliance checklist",
        "introduction": "A year-round checklist for staying audit ready",
        "canonical_url": "https://your-community.zapnito.com/users/3-maya-patel/documents/3-annual-compliance-checklist",
        "thumbnail_url": "https://images.your-community.zapnito.com/users/3/documents/3/",
        "published_at": "2026-03-03T09:00:00Z",
        "created_at": "2026-03-02T15:00:00Z"
      },
      {
        "id": 2,
        "type": "Post",
        "title": "Preparing for an audit",
        "introduction": "A practical checklist for getting ready for your first audit.",
        "canonical_url": "https://your-community.zapnito.com/users/3-maya-patel/posts/2-preparing-for-an-audit",
        "thumbnail_url": null,
        "published_at": "2026-03-10T09:00:00Z",
        "created_at": "2026-03-09T16:30:00Z"
      },
      {
        "id": 1,
        "type": "Video",
        "title": "Audit walkthrough",
        "introduction": "A walkthrough of what inspectors look for during an audit",
        "canonical_url": "https://your-community.zapnito.com/users/3-maya-patel/videos/1-audit-walkthrough",
        "thumbnail_url": "https://images.your-community.zapnito.com/static-assets/images/default_lrg_video_thumb.png",
        "published_at": "2026-02-24T09:00:00Z",
        "created_at": "2026-02-23T14:00:00Z"
      }
    ]
  }
  ```
</ResponseExample>

* `200 OK`: the channel's content was returned.
* `404 Not Found`: no channel matches the ID.


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