Reference token leg — code → access token (sandbox)
Sandbox only. Hosted on the census host root (not /api/v1), gated on
PHOSRA_ENV==sandbox — 404 elsewhere.
Exchanges an authorization code (any value carrying the sbxauth_ prefix, from
GET /oauth/authorize) for an opaque bearer
access token. Accepts application/x-www-form-urlencoded or JSON. A PKCE code_verifier is
accepted and ignored. Stateless — tokens live one hour.
Worked example
This leg is unsigned; supply the one-time code returned by the authorize leg:
An unsupported grant_type returns 400 unsupported_grant_type; a code without the
sbxauth_ prefix returns 400 invalid_grant. Present the sbxtok_… token to
GET /oauth/profiles.