Phosra provides official SDKs to accelerate your integration. All SDKs wrap the REST API and provide typed interfaces and token management. (There is no general automatic-retry option in @phosra/[email protected] — the one built-in retry is the single onTokenExpired 401 retry; see the TypeScript SDK.)
The native iOS and Android enforcement SDKs are distributed privately (not on npm/Maven Central yet) — see iOS SDK and Android SDK, or email [email protected] for repo access. There is no published @ocss/* npm scope; the open standard's library ships under @openchildsafety/*.
Language coverage
Phosra ships a first-party TypeScript SDK today. Every other language talks to the same plain-JSON REST API directly — no SDK required, and the Quickstart proves the curl / Python / Go paths run copy-paste against the live sandbox.
Language
How you call Phosra
Status
TypeScript / JavaScript
@phosra/sdk — typed PhosraClient
Published
Shell
curl against the REST API
Works today
Python
requests (or stdlib urllib) against the REST API
Works today
Go
net/http against the REST API
Works today
Python SDK
first-party typed client
Planned
Generate a typed client in any language
Need Python, Go, Java, Rust, or C#? The OpenAPI spec drives standard
code generators to produce a fully-typed client in about a minute. The
Generate a client in your language guide runs the real
commands (openapi-generator-cli for Python/Go/Java, openapi-typescript for TS)
against the live sandbox and pastes the actual output — including a generated-client
call that returns 201.
All SDKs are optional. The REST API is plain JSON over HTTPS — call it from any language. Every tab leads with the open sandbox (https://phosra-api-sandbox-production.up.railway.app) so your first copy-paste returns 201 with no API key. The same one-call setup in four languages:
bash
# Sandbox-first — no Authorization header needed.curl -X POST https://phosra-api-sandbox-production.up.railway.app/api/v1/setup/quick \ -H "Content-Type: application/json" \ -d '{"child_name":"Emma","birth_date":"2016-03-15","strictness":"recommended"}'
Examples target the synthetic sandbox. There is no supported base-URL-and-key switch to
production. Apply for a design-partner pilot when you
need provisioned access and explicit operating boundaries.
Want the full zero-to-enforcement walkthrough? The Quickstart runs the same calls against the open sandbox — no auth needed.
See the API Reference for complete endpoint documentation, and the Errors reference for every status code, error class, and its fix.