# API and MCP overview

> What the Peach API and MCP server do, who can use them, and the conventions every endpoint follows.

Web page: https://www.gotopeach.com/docs/api-overview (updated 2026-11-03)

> **In short.** Peach has a REST API at `https://app.gotopeach.com/api/v1` and an MCP server at `https://app.gotopeach.com/mcp`. The API comes with the Enterprise plan, after we approve a request; reading data is free, and actions that ask AI engines or write content use prepaid credits. The MCP server also comes with the Growth plan, where your AI tool's actions count against your plan's monthly limits instead.

## What you can build

- **Your own dashboard.** Show how often AI assistants name your brand, per engine and over time, next to the rest of your numbers.
- **A CMS integration.** Pull the articles you approved in Peach into your own CMS, then tell Peach the address they went live at, so it can re-check them on days 7, 14 and 30.
- **AI tools and agents.** Let Claude Code, Cursor, Claude, ChatGPT or your own agent read your visibility, run checks and draft content in Peach.

The whole Peach loop is in the API: Company Brain, tracked questions and checks, opportunities, topics, outlines and articles, publishing, results, weekly reports, full analyses and the free checks.

## What stays in the app

Some things are only in the Peach app, because they take a payment, hold someone's credentials or belong to a person rather than the account:

- billing, changing plans and buying credits;
- your team, organisation, sign-in and profile;
- connecting publishing destinations such as WordPress.com and GitHub;
- onboarding and personal email settings.

## Who can use it

The API is part of Peach's **Enterprise plan**. The MCP server comes with **Growth** and above: Growth accounts connect their AI tools by signing in, with no request needed (see [MCP server](https://www.gotopeach.com/docs/api-mcp.md)). Anyone can ask for access, customer or not. We review each request, agree a price, monthly credits and limits with you, and switch access on once the plan is paid, or straight away with a pilot. See [Request API access](https://www.gotopeach.com/docs/api-request-access.md).

Use is paid with **credits**: 1 credit is 1 US cent, the plan includes a monthly allowance, and you can buy more. Reading is free. See [Credits and pricing](https://www.gotopeach.com/docs/api-credits.md).

## Two ways in

| | REST API | MCP server |
|---|---|---|
| Address | `https://app.gotopeach.com/api/v1` | `https://app.gotopeach.com/mcp` |
| Sign-in | A secret key from your server: `Authorization: Bearer peach_sk_…` | Browser sign-in through Peach, or a key for agents that run without a person |
| Best for | Your website, CMS, dashboards and scheduled jobs | AI assistants and agents |

Both run the same endpoints with the same permissions, site limits, prices, refunds and logs. See [Authentication and keys](https://www.gotopeach.com/docs/api-authentication.md) and [MCP server](https://www.gotopeach.com/docs/api-mcp.md).

## Conventions

- **JSON in and out.** Send `Content-Type: application/json` with a request body.
- **Sites by domain.** A site is addressed by its domain, for example `/sites/acme.com`. `www.` and any path are ignored, so `www.acme.com` names the same site.
- **Everything else by id.** Questions, articles, checks and the rest are addressed by the id the API gave you.
- **Errors** look like `{ "error": { "code", "message", "request_id" } }`. See [Errors and limits](https://www.gotopeach.com/docs/api-errors-and-limits.md).
- **Lists** are paged with `limit` and `cursor`, and the answer carries `next_cursor`. See [Pagination](https://www.gotopeach.com/docs/api-errors-and-limits.md#pagination).
- **Prices before you pay.** Add `?dry_run=true` to any endpoint to see what it would cost without running it. See [Seeing the price first](https://www.gotopeach.com/docs/api-credits.md#seeing-the-price-first).
- **Safe retries.** Send an `Idempotency-Key` header with any change, and a retry returns the first answer instead of running twice. See [Retrying safely](https://www.gotopeach.com/docs/api-quickstart.md#retrying-safely).
- **Long tasks** answer `202` with a job you can follow. See [Jobs](https://www.gotopeach.com/docs/api-jobs.md).
- **Headers.** Every answer carries `X-Request-Id`. Once your key is accepted, answers also carry `X-RateLimit-Limit`, `X-RateLimit-Remaining`, `X-Credits-Charged` and `X-Credits-Remaining`.
- **New fields can appear.** Build your integration to ignore fields it doesn't know.

## Without a key

- `GET https://app.gotopeach.com/api/v1` says what is there.
- `GET https://app.gotopeach.com/api/v1/openapi.json` is the OpenAPI 3.1 description of every endpoint, with its price, for generating a client.
- These docs are written to be read by AI assistants too: [an index of the API pages](https://www.gotopeach.com/docs/api/llms.txt), a Markdown copy of every page (add `.md` to its address) and a **Copy page** button at the top of each page.

## Your account

| Endpoint | What it does | Credits | Key permission |
|---|---|---|---|
| `GET /me` | Who this key belongs to: the account, its plan and limits, and the key itself. MCP: `get_account`. | Free | Any key |
| `GET /usage` | This month's requests, errors and credits, by key. | Free | Any key |

`GET /me` is the quickest way to check a key works. It answers with the account, its plan and limits, your Enterprise contract (its status, pilot end date, monthly credits and renewal date), the caller (the key's name, permissions, sites and credit cap, or the MCP connection) and the credit balance.

## Where to next

1. [Request API access](https://www.gotopeach.com/docs/api-request-access.md), if you haven't yet.
2. [Authentication and keys](https://www.gotopeach.com/docs/api-authentication.md): making a key and keeping it safe.
3. [Quick start](https://www.gotopeach.com/docs/api-quickstart.md): your first calls, by hand or with your AI assistant.
4. [Credits and pricing](https://www.gotopeach.com/docs/api-credits.md): what each action costs.
