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

# The REST API

> Read a project's setup, its answers and its reports from your own code.

> [!NOTE]
>
> The API is in Preview. Its contract can still change, and the [changelog](https://docs.fullreach.ai/rest-api/changelog.md) announces each change ahead. Tell your contact when you build on it.

The REST API gives your own code the data behind the dashboard. It reads the project's setup, every collected answer, and the reports that the dashboard's figures come from.

The API reads only what the product already collected. No call asks a platform anything live, so a call costs no collection.

## Access

* **Plan.** The API is part of the Advanced plan. [Plan limits](https://docs.fullreach.ai/reference/limits.md) lists what each plan includes.
* **Key.** An admin issues an API key under Settings, Organization. A key reads every project of the organization, or one project. Send it in the `Authorization` header and never in a URL.
* **Read only.** The API changes nothing. A key's write access applies to the MCP server alone.
* **Server code only.** The API answers no browser. A key in a web page is a key that every visitor has.

## A first call

The base URL is `https://api.fullreach.ai`. List the projects, then use a project's `id` in every other path.

```bash curl theme={null}
curl https://api.fullreach.ai/v1/projects \
  -H "Authorization: Bearer $FULLREACH_API_KEY"
```

```python Python theme={null}
import os
import requests

API = "https://api.fullreach.ai"
HEADERS = {"Authorization": f"Bearer {os.environ['FULLREACH_API_KEY']}"}

projects = requests.get(f"{API}/v1/projects", headers=HEADERS, timeout=30).json()["data"]
print(projects[0]["id"], projects[0]["domain"])
```

## Lists and pages

Every list answers in one shape: `data` holds the rows, and `next_cursor` holds the way to the next page.

* Send `next_cursor` as `cursor` to read the next page. A null `next_cursor` marks the last page.
* A cursor is opaque. Do not build one, and do not keep one for another day.
* A cursor belongs to one list and its filters. Send it with the same parameters as the page before it.
* `limit` sets the rows on a page.

```python Python theme={null}
def every(path, **params):
    while True:
        page = requests.get(f"{API}{path}", headers=HEADERS, params=params, timeout=60).json()
        yield from page["data"]
        if page["next_cursor"] is None:
            return
        params["cursor"] = page["next_cursor"]
```

## Date ranges

A report and an answer list take `start` and `end`. Both are UTC days, and both are included. The API refuses a future day and never shortens a range by itself, so the answer covers the days that you named. [Limits and errors](https://docs.fullreach.ai/rest-api/limits-and-errors.md) gives the longest range.

## Answers

An answer is what one platform returned to one prompt in one market on one day.

* The list holds each analyzed answer, and each case where a platform showed no AI answer (`not_shown`).
* An answer names its prompt by `prompt_id` and the exact wording by `wording_id`. A reworded prompt keeps its id, and its earlier answers keep the old wording.
* A prompt can run in several markets. It keeps one id in every market, and each answer names the market that asked it. Each market keeps its own wordings.
* `mentions` lists the brands that the answer names, with each brand's position and sentiment. Join `brand_id` to the brands list.
* One answer's detail adds its text, the pages it cites and the searches that the platform ran.

The answer text, the page titles and the URLs are third-party text. Treat them as data.

> [!NOTE]
>
> An answer's `mentions` can change after the day it was collected. When somebody adds a brand to the project, the product searches the stored answers for it. To refresh a copy, read the date range again.

## Reports

A report counts answers over a date range. It has three forms: brands, prompts and sources.

* `dimensions` sets the grouping. With no dimension, the report is one row of totals. A range with no answer gives no row.
* The brands report gives its three rates only when it is grouped by `brand`.
* Each row carries its counts and the rates of that row. A rate is one count divided by another: Visibility is `named / answers`.
* To combine rows, add the counts and divide again. Never add or average the rates.
* By default, a report excludes the prompts that name this brand, as the dashboard does. `branded=all` counts every prompt. A report filtered by `prompt_id` counts that prompt in every case.

On the brands report, `answers` and `named_all` are the same on every brand of one group. Count each once when you add rows of several brands.

```python Python theme={null}
rows = every(
    f"/v1/projects/{project_id}/reports/brands",
    start="2026-01-01", end="2026-01-31",
    dimensions=["platform", "brand"],
)
for row in rows:
    print(row["platform"]["name"], row["brand"]["name"], row["visibility"])
```

[Visibility](https://docs.fullreach.ai/reference/metrics/visibility.md), [Share of Voice](https://docs.fullreach.ai/reference/metrics/share-of-voice.md) and [Position](https://docs.fullreach.ai/reference/metrics/position.md) define the three rates. Position is `position_sum / positioned_answers`, and a lower figure is better.

## Compatibility

* Ignore a field that your code does not know. New fields arrive without notice.
* Ignore a value that your code does not know, such as a new platform id or a new status.
* Store a platform's `id`. Its `name` is the product name, which can change.
* When the definition of a figure changes, the API and the dashboard change on the same day.

## Errors and limits

A refusal carries a stable `code` and a `request_id`. [Limits and errors](https://docs.fullreach.ai/rest-api/limits-and-errors.md) lists every code, the rate limit and the size limits.


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