Skip to main content
GET
curl (runnable — unsigned leg)
Sandbox only. The reference OAuth provider is hosted on the census host root (not /api/v1) and gated on PHOSRA_ENV==sandbox404 on dev, staging, and production.
The first leg of the sandbox reference OAuth flow, seeded with the test family (Mia / Leo / Ava). With no decision it renders an HTML consent page. Its machine-usable contract: add decision=approve and the census issues an authorization code and 302-redirects to redirect_uri?code=…&state=… — so CI can automate approval with no HTML scraping. decision=deny redirects with error=access_denied&state=…. Custom mobile schemes (e.g. propagate://) are allowed as redirect_uri.
Phosra sandbox reference-provider consent page: a card titled 'Connect your family to this app?' with a 'Sandbox reference provider' pill and Approve / Deny buttons.

The seeded sandbox consent page rendered by GET /oauth/authorize (no decision param).

Worked example

Fully runnable — this leg is unsigned:
Real 302 on approve (captured from the hosted sandbox):
Exchange the sbxauth_… code at POST /oauth/token.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

redirect_uri
string
required

Where the 302 sends the code (https, http, or a custom mobile scheme).

state
string

Opaque value echoed back verbatim in the redirect (CSRF binding).

decision
enum<string>

Omit to render the consent page. approve → 302 with ?code=&state=. deny → 302 with ?error=access_denied&state=.

Available options:
approve,
deny

Response

Consent page (text/html) — shown when decision is omitted.

The response is of type string.