Platform Core

API standards

The rules every service's API follows, and the tooling that enforces them, so a developer or an agent learns them once. A service's own endpoints are on its product page.

Designedv1

What a service gets without building it

  • Every endpoint under /api/{service}/v{N}, JSON in and out
  • One error shape (RFC 9457 problem+json) with a stable code
  • Cursor pagination, Idempotency-Key on creates, 202 and polling for long work
  • An OpenAPI 3.1 contract per service, generated from its zod schemas and checked in CI
  • Each service versions its API on its own

How to use it

Every error has the same shape

{
  "type": "about:blank",
  "title": "Too many requests",
  "status": 429,
  "detail": "Try again in a minute.",
  "code": "rate_limited",
  "request_id": "…",
  "errors": []
}

This works once the component is built.

Stories

Read the design documents

← All Platform Core components