Skip to main content
POST
Signed curl (wire shape)
Sandbox only. Gated on PHOSRA_ENV==sandbox — returns 404 on dev, staging, and production. Production §8.3.2 consent semantics are unchanged.
Mints a §8.3.2-shaped test consent row with app_ref = your RFC 9421 caller DID, so a cold self-registered platform can satisfy the consent-first gate on POST /enforcement-endpoints with no OCSS_CONSENT_ATTESTATION_APPS roster edit and no live counterparty. With no child_ref, the census auto-provisions the sandbox self-serve test child and targets it. A supplied child_ref must already exist — the door never fabricates a caller-named child. The response gives you the target_ref to pass straight into the bind call.

Worked example

Real 201 response (captured from the hosted sandbox):
The call is idempotent on (app_ref, target_ref) — re-minting returns the same standing_ref. Next: bind the endpoint.
This standing_ref satisfies the consent-first precondition for POST /enforcement-endpoints (endpoint binding) — that is its only job. It does not satisfy a signed rule write (POST /policies/{id}/rules): the sandbox mint stores no signed consent envelope, so the census’s writer-tier resolver fails closed and the rule write returns 403 standing_failure. For a rule write, obtain a standing via the §8.3.2 consent-ingest lane (a real signed consent_attestation), not this sandbox mint. The two consent surfaces are not interchangeable.

Body

application/json
child_ref
string

Optional child: target. Empty ⇒ the auto-provisioned sandbox self-serve test child.

Example:

"child:5ba0d00c-0000-4000-8000-0000000000c1"

band
enum<string>
default:13_15
Available options:
under_13,
13_15,
16_17,
adult
Available options:
collection_parental_authority,
third_party_disclosure

Response

Test consent minted. Pass audience_did= and child_ref=<target_ref> to POST /api/v1/enforcement-endpoints to complete the consent-first mint.

ok
boolean
required
Example:

true

app_ref
string
required
Example:

"did:ocss:playnest"

target_ref
string
required
Example:

"child:5ba0d00c-0000-4000-8000-0000000000c1"

standing_ref
string
required
Example:

"consent:attestation:sbx-consent-playnest-5ba0d00c"

band
string
required
Example:

"13_15"

Example:

"collection_parental_authority"

expiry
string<date-time>
required
idempotency_key
string
note
string