# Management API

Authenticate with `Authorization: Bearer sk_…`. Create keys under **API keys** in the dashboard; we store only a hash, so copy the key when it is shown. Secret keys belong on servers and in CI, never in a page.

| Method | Path | What |
|---|---|---|
| GET | `/v1/sites` | Your sites |
| GET | `/v1/sites/:id/stats?days=30` | The dashboard numbers as JSON |
| PUT | `/v1/sites/:id/index` | Replace the index with an `agentprose.json` body |
| POST | `/v1/sites/:id/crawl` | Queue a crawl |

## Examples

```bash
curl -H "Authorization: Bearer sk_…" https://agentprose.cloud/v1/sites

curl -X POST -H "Authorization: Bearer sk_…" https://agentprose.cloud/v1/sites/SITE_ID/crawl
```

The public search endpoint is described in [Hosted search](/docs/hosted-search). The management API is rate-limited to 120 requests a minute per client.
