Skip to main content

API and contracts

Platform APIs are Admin, App, and public capability contracts. Resource queries always use structured JSON conditions. The backend accepts only schema-whitelisted fields and parameterized predicates; UI search syntax is never transported or executed as SQL.

Service entry points​

MethodPathPurpose
GET/api/healthProcess liveness
GET/api/readyConstrained runtime-dependency readiness
GET/api/capabilitiesCapability discovery
GET/api/openapi.jsonGenerated OpenAPI contract
POST/api/admin/resources/:resource/queryStructured resource query
GET/api/admin/resources/:resource/schemaAdmin resource schema
GET/api/admin/session/currentCurrent Admin session

Authentication contracts​

MethodPathPurpose
GET/api/auth/providersDiscover enabled and configured login providers
GET/api/auth/credential-secret-keyPublic-key information for credential secret transport
POST/api/auth/challengesCreate the mandatory login challenge
POST/api/auth/challenges/verifySlider preverification without consuming the challenge
POST/api/auth/sms-otp/startRequest OTP send after a valid challenge
POST/api/auth/loginAuthenticate into the existing session/JWT boundary
POST/api/app/auth/loginApp login contract

Request and response schemas are defined by /api/openapi.json and generated artifacts. credential-auth secrets, OTPs, challenge proofs, and client fingerprints are write-only and must not appear in browser logs, error responses, or generic resource fields.

Errors, tracing, and evolution​

Errors should include a stable code, request_id, and a safe display message. Use request IDs to correlate server logs, but do not log JWTs, keys, full identifiers, passwords, OTPs, or plaintext sensitive fields.

Public-contract changes update OpenAPI/AsyncAPI, consumer contract tests, idempotency/timeout/retry/rate-limit semantics, and deprecation notes together. Validate breaking changes against downstream consumers before release.