# Authentication and limits

> Which credential each endpoint needs, how to keep tokens safe, rate limits and size limits.

Source: https://sinapsi.wiki/docs/authentication-and-limits/

## Credentials

| Endpoint | Credential |
|---|---|
| Public wikis (MCP hub, per-wiki MCP, public REST) | none |
| `https://sinapsi.wiki/mcp/` | account token, space token, or OAuth sign-in |
| `/api/v1/spaces…` | account token |
| `contribute`, `propose_page` | account token (free registration) |

Tokens are credentials: keep them in environment variables or your client's secret store, never in code or in shared files. Revoke them in the app if exposed.

## Rate limits

Requests are rate-limited per token and per IP. When exceeded you get HTTP 429 with `Retry-After`; the limits are generous for interactive and agentic use. For high-volume commercial use of the public corpus, write to privacy@sinapsi.wiki.

## Size limits

| Item | Limit |
|---|---|
| Uploaded document | 50 MB, 500 per space |
| `read_document` per call | 20 pages, 80,000 characters |
| Data table (`upload_table`) | 2,000 rows |
| Memory per plan | Free 500 MB; see [pricing](https://sinapsi.wiki/pricing/) |
