---
title: "GetRecited API documentation"
description: "The GetRecited read API and MCP servers: a first request, keys and scopes, endpoints, examples in curl, JavaScript, Python and the CLI, errors and rate limits."
canonical: https://getrecited.com/developers
last-updated: 2026-12-04
---

# GetRecited API documentation

The GetRecited API is a read-only JSON API for what a GetRecited workspace measures about a brand in AI answers: its tracked brands, their daily visibility and the scan runs behind them. AI agents read the same data, and also cited sources and frozen reports, through an MCP server.

## Quickstart

### 1. Call the sandbox without a key

The sandbox answers with invented data in the shape of the real API, so you can see a response before you have an account.

```sh
curl https://getrecited.com/sandbox/api/v1/brands
```

```json
{
  "data": [
    {
      "id": "00000000-0000-4000-8000-000000000001",
      "brand_id": "00000000-0000-4000-8000-000000000002",
      "name": "Synthetic Example Brand",
      "slug": "synthetic-example",
      "domain": "example.com",
      "is_owned": false,
      "visibility_7d": 0.25,
      "tracked_at": "2026-10-01T00:00:00Z"
    }
  ]
}
```

### 2. Create a key

In the dashboard, open Settings → Developer in a workspace you administer and create a key with only the scopes you need. The key is shown once. API access is part of the Growth and Enterprise plans; see [pricing](https://getrecited.com/pricing.md).

### 3. List your brands

```sh
export GETRECITED_API_KEY="ctx_…"

curl --fail-with-body https://getrecited.com/api/v1/brands \
  -H "Authorization: Bearer $GETRECITED_API_KEY"
```

The fields are the ones the sandbox returned. Each `id` is a workspace brand id, and the next request takes it.

### 4. Read a brand's daily visibility

```sh
# Use an id from the brands response, not its brand_id.
curl --fail-with-body \
  "https://getrecited.com/api/v1/brands/$WORKSPACE_BRAND_ID/visibility?days=30" \
  -H "Authorization: Bearer $GETRECITED_API_KEY"
```

The answer holds `provenance`, which says what was measured and over which days, and `data`: one row per day and category with `visibility_rate`, a 95% interval (`ci_low`, `ci_high`) and `responses_sampled`. The figures are sampled: quote a rate together with its interval and its sample count.

## Which interface should I use?

GetRecited can be read through six interfaces. Pick by who is calling and what they need:

| Interface | Use it when | Credential |
| --- | --- | --- |
| REST API at `/api/v1` | A server or a script needs brands, daily visibility or scan status as JSON | Workspace key, or an OAuth token made from it |
| JavaScript and Python clients | You want those reads from Node 20 or Python 3.10 and later, with errors as objects and a 10 second timeout | Workspace key |
| `getrecited` command | A terminal or a scheduled job needs those reads as JSON | Workspace key |
| MCP server at `/mcp` | An AI agent needs the reads as tools, with cited sources and frozen reports as well | Workspace key |
| Documentation MCP server at `/mcp/docs`, and `/ask` | An agent needs to search or fetch this public documentation | None |
| Sandbox at `/sandbox/api/v1` | You want the response shapes without a key or real data | None |

## Authentication

Send the key in the `Authorization` header as `Bearer ctx_…`. The REST API also accepts it in an `X-Api-Key` header. A key reads only what its scopes allow:

| Scope | Lets a key read |
| --- | --- |
| `read:brands` | Tracked brands and their 7-day visibility |
| `read:visibility` | The daily visibility series of a brand |
| `read:scans` | Recent scan runs, their status and progress |
| `read:sources` | The domains answers cite for a brand |
| `read:reports` | Frozen reports and their figures |

> **Keep the key on your server.** Store it in a secret store or an environment variable. Never put it in a browser, a repository or a conversation with an agent.

A server can also exchange the key for a short-lived token with OAuth 2.0 client credentials. The token works on the REST API only, lasts 15 minutes and never holds more scopes than its key.

```sh
curl https://getrecited.com/oauth/token \
  -d grant_type=client_credentials \
  -d client_id="$(echo "$GETRECITED_API_KEY" | cut -c1-12)" \
  -d client_secret="$GETRECITED_API_KEY" \
  --data-urlencode "scope=read:brands read:visibility"
```

[GetRecited API authentication](https://getrecited.com/auth.md) covers the exchange and its answer, the token endpoint's errors, revocation and rotation.

## Endpoints

- **Base URL:** `https://getrecited.com/api/v1`
- **Requests:** `GET` over HTTPS. A read never starts a scan, spends credits or changes anything.
- **Responses:** JSON. A list arrives in `data`.
- **Contract:** the [OpenAPI document](https://getrecited.com/openapi.json).

| Request | Scope | Query | Returns |
| --- | --- | --- | --- |
| `GET /api/v1` | Any valid key | None | The API's name and version, and the key's scopes |
| `GET /api/v1/brands` | `read:brands` | None | Tracked brands: `id`, `brand_id`, `name`, `slug`, `domain`, `is_owned`, `visibility_7d`, `tracked_at` |
| `GET /api/v1/brands/{workspace_brand_id}/visibility` | `read:visibility` | `days`, 1 to 90, default 30 | `provenance`, and one row per day and category |
| `GET /api/v1/scans` | `read:scans` | `limit`, 1 to 100, default 20; `cursor` | Recent scan runs with `status`, `trigger`, `sample_n` and their times, and `next_cursor` |

`workspace_brand_id` is the `id` of a row from `/api/v1/brands`, never its `brand_id`. A brand outside the key's workspace answers 404. To read the next page of scans, send the `next_cursor` of one answer as `cursor`; it is `null` on the last page.

> **Cited sources and frozen reports are read through MCP.** Use the tools `list_cited_sources`, `list_reports` and `get_report` below. The OpenAPI document also describes REST paths for them; `getrecited.com` does not serve those paths.

## Examples

The quickstart reads brands and visibility with curl. These examples cover the rest.

### curl

```sh
curl --fail-with-body "https://getrecited.com/api/v1/scans?limit=20" \
  -H "Authorization: Bearer $GETRECITED_API_KEY"
```

### JavaScript

`@getrecited/sdk` is a client for Node 20 or later. It is not on npm yet: install it from `packages/sdk-js` of the [source repository](https://github.com/AliMuhammadOfficial/getrecited-fe), which needs access until its public release.

```js
import { GetRecited } from "@getrecited/sdk"

const client = new GetRecited({ apiKey: process.env.GETRECITED_API_KEY })

const { data: brands } = await client.brands()
const visibility = await client.visibility(brands[0].id, { days: 30 })
console.log(visibility.data)
```

A failed request throws `GetRecitedError` with `status`, `code`, `requestId` and `retryAfter`.

### Python

`getrecited` is a client for Python 3.10 or later with no dependencies. Install it from `packages/sdk-python` of the same repository.

```python
import os
from getrecited import GetRecited

client = GetRecited(os.environ["GETRECITED_API_KEY"])

brands = client.brands()["data"]
visibility = client.visibility(brands[0]["id"], days=30)
print(visibility["data"])
```

A failed request raises `GetRecitedError` with `status`, `code`, `request_id` and `retry_after`.

### CLI

Both packages install a `getrecited` command that prints JSON.

```sh
getrecited brands
getrecited visibility "$WORKSPACE_BRAND_ID" --days 30
getrecited scans --limit 20
```

The command reads `GETRECITED_API_KEY` from the environment. On a failure it prints the error as JSON to standard error and exits with 1. Set `GETRECITED_BASE_URL` to send it to another origin, such as a local stack.

The clients and the command cover the four requests of the table above: `describe`, `brands`, `visibility` and `scans`.

## MCP

GetRecited runs two MCP servers over Streamable HTTP. Each answers a POST with one JSON response and keeps no session.

| Server | Address | Credential | Tools |
| --- | --- | --- | --- |
| Workspace data | `https://getrecited.com/mcp` | A `ctx_` key as a Bearer token | The six below |
| Documentation | `https://getrecited.com/mcp/docs` | None | `search_documentation`, `get_documentation` |

### Connect a client

```json
{
  "mcpServers": {
    "getrecited": {
      "url": "https://getrecited.com/mcp",
      "headers": { "Authorization": "Bearer ctx_…" }
    }
  }
}
```

The file and the field names differ between clients. What every client needs is the address and the header.

### Workspace tools

| Tool | Scope | Arguments | Returns |
| --- | --- | --- | --- |
| `list_tracked_brands` | `read:brands` | None | The workspace's tracked brands and their ids |
| `get_brand_visibility` | `read:visibility` | `workspace_brand_id`; `days`, 1 to 90, default 30 | Sampled daily visibility of one brand |
| `list_recent_scans` | `read:scans` | `limit`, 1 to 100, default 20 | Recent scan runs and their status; starts nothing |
| `list_cited_sources` | `read:sources` | `workspace_brand_id`; `days`, 1 to 90, default 30; `limit`, 1 to 100, default 20 | The domains answers cite for one brand, with how many answers cite each |
| `list_reports` | `read:reports` | `limit`, 1 to 100, default 20 | Frozen reports that have not expired |
| `get_report` | `read:reports` | `report_id` | One frozen report as it was taken |

`tools/list` shows only the tools the key's scopes allow. Each result wraps its rows in `scope`, `filters`, `coverage`, `freshness` and `result`.

### Try the documentation server

```sh
curl https://getrecited.com/mcp/docs \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'
```

Both headers are required.

### Protocol and limits

- Protocol versions `2026-07-28`, `2025-11-25`, `2025-06-18` and `2025-03-26`.
- A `GET` answers 405: the servers do not open an event stream.
- The workspace server takes a `ctx_` key only. It does not accept an OAuth token, and there is no OAuth sign-in for MCP.
- A request body holds at most 16,384 characters.
- Every request to the workspace server spends one count of the key's rate limit to check the key. A tool call spends one more for its read.

## Sandbox

`https://getrecited.com/sandbox/api/v1` serves fixed, invented data. It needs no key, costs nothing and touches no workspace.

| Request | Returns |
| --- | --- |
| `GET /sandbox/api/v1` | A name, a version and the three scopes the sandbox imitates |
| `GET /sandbox/api/v1/brands` | One brand, "Synthetic Example Brand" |
| `GET /sandbox/api/v1/brands/00000000-0000-4000-8000-000000000001/visibility` | One day of visibility; `days` is checked, 1 to 90 |
| `GET /sandbox/api/v1/scans` | One completed scan; `limit` is checked, 1 to 100 |

Every answer carries the header `X-GetRecited-Sandbox: synthetic`. A value out of range answers 422 with `invalid_argument`, and an unknown path 404 with `not_found`. The sandbox has no sources and no reports. The clients cannot be pointed at it, so call it over HTTP. There is no hosted sandbox that holds customer data. Read the [sandbox contract](https://getrecited.com/sandbox/openapi.json).

## Errors

An error is JSON with a `code`, a `message` and a `request_id`. Give the `request_id` when you ask for help, and never the key.

```json
{
  "code": "forbidden",
  "message": "missing scope: read:visibility",
  "request_id": "5f0c2a9e-8f0b-4c61-9d1e-2b7a4c3d9e10"
}
```

| Status | `code` | Meaning | What to do |
| --- | --- | --- | --- |
| 401 | `unauthenticated` | The key is missing, wrong, revoked or expired | Check the header, or create a new key |
| 403 | `forbidden` | The key lacks the scope the request needs | Use a key that has the scope |
| 403 | `plan_limited` | The organization's plan does not include API access | Change the plan |
| 404 | `not_found` | No such path, or the brand is not in the key's workspace | Take the `id` from `/api/v1/brands` |
| 422 | `invalid_argument` | The brand id in the path is not a UUID | Send an `id` from `/api/v1/brands` |
| 422 | `validation_error` | A query value is out of range; `field_errors` names it | Correct the value |
| 429 | `rate_limited` | Too many requests in the current minute | Wait the seconds in `Retry-After` |
| 502 | `invalid_upstream_response` | The service did not answer with JSON | Try again later |
| 503 | `dependency_unavailable` | The service could not be reached | Try again later; do not use sandbox data in its place |

A 401 also carries a `WWW-Authenticate` header that points to the protected-resource metadata. The token endpoint answers in the OAuth form instead: `{"error": "invalid_client", "error_description": "Invalid client credentials."}`.

## Rate limits

The GetRecited API counts requests in fixed windows of 60 seconds. A new key may make 60 requests in a window. Two wider counts are shared: one by all keys of a workspace, one by all keys of an organization. A token request counts against its key, and so does every request to the workspace MCP server (see MCP).

Over a limit the API answers 429 with the header `Retry-After: 60` and this body:

```json
{
  "code": "rate_limited",
  "message": "rate limit exceeded",
  "request_id": "5f0c2a9e-8f0b-4c61-9d1e-2b7a4c3d9e10",
  "retry_after": 60
}
```

Wait that long, then send the request again.

## Agent skills

Two published skills teach an agent to use these interfaces:

- The [read API skill](https://getrecited.com/skills/getrecited-read-api/SKILL.md): scoped workspace reads over REST and MCP.
- The [documentation skill](https://getrecited.com/skills/getrecited-documentation/SKILL.md): searching the public documents and citing them.

The [skill index](https://getrecited.com/.well-known/agent-skills/index.json) lists both with a SHA-256 digest of each file.

## Other interfaces

- **Documentation search over HTTP:** [search for "API authentication"](https://getrecited.com/ask?query=API+authentication). It returns matching documents and writes no answer of its own.
- **A2A:** the [agent card](https://getrecited.com/.well-known/agent-card.json) advertises A2A 0.3 JSON-RPC at `/a2a`. `message/send` returns an immediate reply grounded in the public documents. It creates no persistent task, does not stream and reads no workspace data.
- **Server cards:** [workspace MCP](https://getrecited.com/mcp/server-card) and [documentation MCP](https://getrecited.com/mcp/docs/server-card).
- **API catalog:** [/.well-known/api-catalog](https://getrecited.com/.well-known/api-catalog).
- **Agents:** the [GetRecited agent guide](https://getrecited.com/agents.md) says what an agent may do without a credential and what a read never does.
- **Webhooks:** set up under Settings → Developer in the dashboard, which also shows how to verify a delivery.

## Common questions

### Does the API start scans or spend credits?

No. Every request is a read. Nothing in the API or the MCP tools starts a scan, generates content, publishes a change or spends a credit.

### Which plans include API access?

Growth and Enterprise. A key of an organization on another plan answers 403 with `plan_limited`.

### Where do I find a workspace brand id?

It is the `id` of each row of `GET /api/v1/brands`, or of the `list_tracked_brands` tool. The `brand_id` beside it names the brand in the public index and is not accepted in its place.

### Can an agent sign in with OAuth?

The REST API accepts an OAuth client-credentials token made from a key. The MCP server takes the key itself. There is no interactive OAuth sign-in and no automatic registration.
