# Contentful

> Contentful: what the collector reads, how to connect it, its permissions, its certification by Atlantic Agentic Labs and its security posture.

Built, not certified Built and tested against recorded and synthetic responses (version 0.1.0, 21 November 2026). Not yet run against the vendor's sandbox or a client environment.

Reads the published entries and assets of a Contentful space through the Content Delivery API’s Sync API, so content and customer agents answer from what is actually published. It reads published content only; it never reads drafts and never changes content.

Built against the Contentful Content Delivery API, Sync API.

## At a glance

| Collector                   | Contentful, version `0.1.0`                                                                                                                                        |
| --------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Reads                       | Contentful: Contentful Content Delivery API (Sync API) ([the vendor's documentation](https://www.contentful.com/developers/docs/references/content-delivery-api/)) |
| Family                      | Knowledge                                                                                                                                                          |
| Kind                        | Cms                                                                                                                                                                |
| Ways to connect             | Access token                                                                                                                                                       |
| Scopes                      | - Read: `Content Delivery API access token (published content`, `the environments it is granted)`                                                                  |
| Read only                   | Yes                                                                                                                                                                |
| Vendor's API can move money | No                                                                                                                                                                 |
| Personal data               | Content                                                                                                                                                            |
| Hosts it may contact        | `cdn.contentful.com`, `cdn.eu.contentful.com`                                                                                                                      |
| Vendor API versions         | Contentful Content Delivery API: Sync API (initial sync, sync token)                                                                                               |
| Lowest engine version       | `0.47.1`                                                                                                                                                           |

## What it reads

- Entries: every published entry, with its fields shown in one locale (`locale`, `en-US` by default, falling back to the first locale a field has). Rich text is flattened to its text; links to other entries and assets are shown by id. The title is the first of `title`, `name`, `headline`, `heading`, `label` or `slug`.
- Assets: title, description and file details (name, type, size, image dimensions). The file itself is not downloaded; its delivery address is kept as the record’s link.
- The first run is an initial sync of the whole space (or environment); later runs send the sync token from the last run and receive only what changed. An entry or asset that is unpublished or deleted is withdrawn.
- `content_types` keeps only entries of the content types named.
- Never read: drafts (the Preview API), the Content Management API, content type definitions, users and roles.

## How to connect

1. In Contentful, open **Settings, API keys**, add an API key for the space and copy its **Content Delivery API access token**. Limit it to the environment to read.
2. In LightHouse, open **Connectors**, choose **Contentful**, give the space id, the environment (or leave it empty for the default), the data residency (`us` or `eu`), the locale, a label and how often to read, and paste the token.
3. In code, give the deployment the token as `CONTENTFUL_DELIVERY_TOKEN` from your secret store and add a `kind: contentful` source card with `space_id`, `environment`, `locale`, `label` and `requires`. `token_env` changes the variable name; `content_types` and `body_chars` narrow what is kept.

## Permissions

A Content Delivery API token only. It reads published content and cannot write; a Content Management or Preview token is not needed and should not be given. The collector sends only `GET` requests to the delivery host, with the token as a Bearer credential. Its read-only test proves it on every change.

## Limits

- `region` is `us` (`cdn.contentful.com`) or `eu` (`cdn.eu.contentful.com`); no other host is contacted, and a redirect to another host is refused.
- An initial sync reads 100 items a page; `max_pages` (500) stops a run before a very large space becomes an unbounded read, and fails it rather than keeping part of a sync as if it were all of it.
- If Contentful refuses the saved sync token, the collector starts an initial sync again; anything deleted while the token was refused is then not withdrawn.
- One locale is shown per record. Name the locale your agents answer in.
- Entry bodies are kept to 20,000 characters (`body_chars`).
- Requests are paced and back off when Contentful asks (`Retry-After`); requests served from Contentful’s cache do not count against its rate limit.

## Data handling

- Published field values, asset titles and descriptions are copied into the deployment’s corpus under the source’s `label`. Published content can name people (authors, staff profiles); the label should match how the content is published.
- Drafts and unpublished content are never read.
- The token stays in your secret store and is never written to logs or run notes; it is sent only to the delivery host.
- Nothing leaves the deployment: only counts reach LightHouse.

## Troubleshooting

| What you see                                                 | What it means                                                        | What to do                                        |
| ------------------------------------------------------------ | -------------------------------------------------------------------- | ------------------------------------------------- |
| `space_id is the Contentful space id`                        | `space_id` is empty or malformed                                     | Copy the space id from Settings, General settings |
| `region is 'us' or 'eu'`                                     | `region` names another residency                                     | Use the space’s data residency                    |
| `credential variable 'CONTENTFUL_DELIVERY_TOKEN' is not set` | The token variable is empty                                          | Set it from your secret store                     |
| `HTTP 401`                                                   | The token is revoked, or not a delivery token                        | Copy the Content Delivery API token               |
| `HTTP 404` on the first read                                 | The space or environment id is wrong, or the token is not granted it | Check the ids and the token’s environments        |
| `raise max_pages`                                            | The initial sync ran past `max_pages`                                | Raise `max_pages`                                 |
| Read succeeded, 0 written                                    | Nothing changed since the last read                                  | Nothing to do                                     |

## Certification

Each entry is a run by Atlantic Agentic Labs, newest first. Only a run against the vendor’s sandbox or a client environment certifies a collector; a certification lasts six months, or less if the vendor publishes an API version the collector does not list. See [How collectors are certified](/collectors/certification/).

| Date             | Collector | Engine   | Vendor API                     | Method                              | Expires        |
| ---------------- | --------- | -------- | ------------------------------ | ----------------------------------- | -------------- |
| 21 November 2026 | `0.1.0`   | `0.47.1` | Content Delivery API: Sync API | Fixtures only: built, not certified | Not applicable |

## Security posture

From the collector’s last scan on the default branch. What each line means, and what blocks a release: [Security posture](/collectors/security/).

| Last scanned               | 25 November 2026                                                                                                                                                                                                      |
| -------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Critical findings          | 0                                                                                                                                                                                                                     |
| High findings              | 0                                                                                                                                                                                                                     |
| Medium findings            | 0                                                                                                                                                                                                                     |
| Low findings               | 0                                                                                                                                                                                                                     |
| Info findings              | 0                                                                                                                                                                                                                     |
| Release blocked            | No                                                                                                                                                                                                                    |
| Network allow-list check   | Pass                                                                                                                                                                                                                  |
| Read-only behavioural test | Pass                                                                                                                                                                                                                  |
| SBOM (CycloneDX)           | Produced                                                                                                                                                                                                              |
| Dependency licences        | Pass                                                                                                                                                                                                                  |
| Scanners                   | bandit 1.9.4, semgrep 1.181.1, pip-audit 2.10.1, osv-scanner 2.7.0, cyclonedx-py 7.5.0, pip-licenses 5.5.5, gitleaks repository job aal-secrets, hosts_check tools/hosts_check.py, read-only test pytest -m read_only |

Source: https://docs.atlanticagenticlabs.com/collectors/catalogue/contentful/
