OpenAPI YAML
/openapi.yaml
Human-readable OpenAPI contract for SDK authors, code generation, and direct API review.
Open contractAPI Examples
Use these examples when you are implementing a wrapper, testing OpenAPI parity, or debugging account-scoped HTTP behavior below the SDK facade.
Account-Scoped Examples
These examples preserve the existing operation routes and show the request, response, conflict, and error envelopes directly.
Exact request and response with accountId, accountSessionToken, syncPolicy, account data, and first slot.
Preview referenceExact account-scoped slot sync request using X-Persistly-Account-Session.
Preview referenceExact create and consume requests for short-lived anonymous account transfer.
Preview referenceExact 409 response and recovery model for retrying from the canonical server version.
Preview referenceExact structured error envelope with HTTP status, error.code, message, and details.
Preview referenceContract Source
Persistly keeps one public runtime surface. The docs examples, SDK types, and validation logic should all match the same contract bundle.
OpenAPI YAML
Human-readable OpenAPI contract for SDK authors, code generation, and direct API review.
Open contractOpenAPI JSON
Machine-readable OpenAPI contract for tooling, generated clients, and direct API review.
Open contractOpenAPI routes: /openapi.yaml and /openapi.json
Stable error envelope: error.code, error.message, error.details
Account envelope: accountId, optional accountSessionToken, account data, slots, syncPolicy
Slot envelope: slotId, slotInfo, data, version, status, and updatedAt
Published examples for account creation, slot sync, conflict, and error responses