/ 01Overview
Three logical APIs are mounted on the engine: the analysis engine (/api/v1/*), Sentinel (/api/sentinel/v1/*), and Ledger (/api/ledger/v1/*). They share authentication, rate limiting, and audit middleware.
All routes return JSON. All errors follow RFC 9457 (Problem Details). All timestamps are RFC 3339 UTC.
/ 02Authentication
Three modes, configured per tenant:
| Mode | Header | Use case |
|---|---|---|
| Anonymous | — | Beta, evaluation, demo |
| API Key | X-Redline-Key: ... | Server-to-server |
| SSO (Clerk) | Authorization: Bearer ... | Browser / Word add-in |
RBAC scopes
API keys and JWTs carry product:role tuples. E.g. sentinel:admin, lens:editor, ledger:viewer. See Getting started for the role grid.
/ 03Analyse routes
/analyse./ 04Export routes
See Export formats & their guarantees for the per-format contract.
/ 05Sentinel routes
Full Sentinel surface: see Sentinel feeds & webhook payloads.
/ 06Ledger routes
/ 07Webhooks
Configure webhook destinations under Settings → Webhooks. Each destination has a secret used to sign outgoing payloads.
| Event | Trigger |
|---|---|
analysis.completed | An /analyse call finishes |
sentinel.impact.detected | Impact assessment with severity ≥ minor |
ledger.obligation.overdue | Obligation crosses its deadline |
ledger.escalation.triggered | Escalation tier advances |
Signing: X-Parelion-Signature: sha256=<hex> over the raw body with the destination secret. Replay protection via X-Parelion-Timestamp (±5 minutes).
/ 08Rate limits
| Tier | Per minute | Per day |
|---|---|---|
| A · Free | 10 | 200 |
| B · Paid | 60 | 5,000 |
| C · Enterprise | 240 | Unlimited |
Headers: X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset. Exceeded → HTTP 429 with Retry-After.
/ 09OpenAPI
The full spec is served from the engine itself:
