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

# REST API

> Same account as MCP. Header X-API-Key. MCP never buys credits; REST does.

Base URL: `https://api.screencrafter.io`

Auth: `X-API-Key: sc_live_…` (or `sc_session` cookie from studio). Anonymous `sc_anon` / `scweb-` keys work on some REST capture routes and are **rejected on MCP**.

MCP is `POST /api/v1/mcp`. It can read the balance and spend. It cannot start Stripe Checkout. Purchase is this REST API (and, for humans, the studio Buy credits page).

| Job          | REST                                                                        | MCP                              |
| ------------ | --------------------------------------------------------------------------- | -------------------------------- |
| Sign up      | `POST /api/v1/auth/signup` or [studio](https://app.screencrafter.io/signup) | No                               |
| Balance      | `GET /api/v1/credits/balance`                                               | Tool `credits`                   |
| Buy packs    | `POST /api/v1/credits/purchase`                                             | No                               |
| Instant Post | `POST /api/v1/instant-post` then poll                                       | Tool `instant_post`              |
| Screenshot   | `POST /api/v1/capture/screenshot`                                           | Tool `take_screenshot`           |
| Poll         | `GET /api/v1/jobs/{id}`                                                     | `instant_post` poll or `get_job` |
| Zip          | `GET /api/v1/instant-post/jobs/{id}/zip`                                    | `instant_post` zip               |

<CardGroup cols={2}>
  <Card title="Auth and keys" href="/rest-auth">Signup, login, `sc_live_` keys.</Card>
  <Card title="Credits" href="/credits">Balance and Stripe packs.</Card>
  <Card title="Instant Post" href="/rest-instant-post">URL, idea, or media → pack.</Card>
  <Card title="Screenshots" href="/rest-screenshot">Sync URL capture.</Card>
</CardGroup>
