# Organisation REST API

The organisation REST API is a **read** surface on the control-plane host `https://api.newtalaria.com`. It is not ingest and it is not OTLP. Project API keys (`tal_pk_…`, `tal_sk_…`) and monitor tokens do not work here. Send telemetry to `https://ingest-nz1.newtalaria.com` (native `/v1` or [`/otlp`](https://docs.newtalaria.com/reference/otlp.md)) instead.

## Auth and shape

- Base URL: `https://api.newtalaria.com/api/v1`
- Auth: `Authorization: Bearer` and an organisation token (`tal_org_<cell>_…`)
- Rate limit: 60 requests per minute
- Errors: RFC 9457 `application/problem+json`, same as ingest — see [Error types](https://docs.newtalaria.com/reference/errors.md)
- OpenAPI document: `GET https://api.newtalaria.com/api/v1/openapi.json` — no token required

```bash
curl -sS https://api.newtalaria.com/api/v1/openapi.json | head
```

```bash
curl -sS https://api.newtalaria.com/api/v1/organization \
  -H "Authorization: Bearer tal_org_nz1_…"
```

Mint and revoke organisation tokens in the dashboard. Treat them as secrets.

This routes table matches the public OpenAPI document (Talaria Public REST API 1.0.0).

## Routes

| Method | Path | Summary |
| --- | --- | --- |
| GET | `/api/v1/events` | List events |
| POST | `/api/v1/exports` | Start an NDJSON export |
| GET | `/api/v1/exports/download` | Download a signed export (expires in 24 hours) |
| GET | `/api/v1/exports/{exportId}` | Get export status and signed URL |
| GET | `/api/v1/issues` | List issues |
| GET | `/api/v1/logs` | List logs |
| GET | `/api/v1/metrics` | List metrics |
| GET | `/api/v1/openapi.json` | OpenAPI document generated from Dart types |
| GET | `/api/v1/reports` | List saved reports |
| POST | `/api/v1/reports/run` | Run an AN0 ReportSpec |
| GET | `/api/v1/reports/{reportId}` | Get a saved report |
| GET | `/api/v1/traces` | List traces |

List endpoints return a page of items and may include `nextCursor`. Query parameters for search and pagination are in the OpenAPI document.

## Related

- [Ingest API](https://docs.newtalaria.com/reference/ingest-api.md) — project keys, `/v1` write routes
- [OTLP](https://docs.newtalaria.com/reference/otlp.md) — OpenTelemetry HTTP ingest
- [Error types](https://docs.newtalaria.com/reference/errors.md) — RFC 9457 `code` and `type` anchors
- [MCP](https://docs.newtalaria.com/agents/mcp.md) — agent tools on `https://api.newtalaria.com/mcp` (OAuth or a personal token, never an API key)
