API Examples

Exact request and response payloads for direct runtime work.

Use these examples when you are implementing a wrapper, testing OpenAPI parity, or debugging account-scoped HTTP behavior below the SDK facade.

account pathslot synctransfer codes

Account-Scoped Examples

Start with the exact payloads that match the recommended runtime model.

These examples preserve the existing operation routes and show the request, response, conflict, and error envelopes directly.

Contract Source

These pages are derived from the same OpenAPI-backed contract the SDKs follow.

Persistly keeps one public runtime surface. The docs examples, SDK types, and validation logic should all match the same contract bundle.

OpenAPI 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