Link a family to an external platform end-to-end — the OAuth connect ceremony, run live against the open sandbox with real requests and responses.
A platform (also called a provider) is anything Phosra can push a child-safety policy
to — a DNS filter, a router, an app, an operating system. Before Phosra can enforce anything,
a parent has to connect the platform and approve sharing their children’s profiles.This guide walks the full connect ceremony — discovery → consent → token → profiles —
against the public sandbox. Every request and response below is verbatim live output,
captured while writing this page. No API key, nothing to install.The four calls chain end to end: discover the endpoints (GET /providers/{did}/connect) →
send the parent to consent (authorize_url) → exchange the returned code for a token
(token_url) → read the approved profiles (profiles_url). Each step below carries a
Fields & errors reference you can expand.
Sandbox-first. The reference provider used here — did:ocss:loopline — is seeded into the
partner sandbox at https://phosra-api-sandbox-production.up.railway.app. Nothing you connect
there touches a real family. The endpoint shapes are identical in production; you swap the base
URL for https://prodapi.phosra.com and connect a real provider DID.
Before you start
Set the base URL once so every step is copy-paste:
You will connect the sandbox’s reference provider, Loopline (did:ocss:loopline). It is a
real, accredited entry on the sandbox Trust List with a live OAuth
surface — the same shape a production provider exposes.
1
Discover the provider's connect endpoints
Every connectable provider publishes its OAuth endpoints at
GET /providers/{did}/connect. Start there — never hard-code the URLs.
A provider that is accredited but has not configured a connect surface returns
404 provider connect config not available. In the sandbox, did:ocss:courier is deliberately
left unconfigured so you can test that branch.
Fields & errors — GET /providers/{did}/connect
Path parameter
Field
Type
Required
Description
did
string
yes
The provider’s decentralized identifier, e.g. did:ocss:loopline. URL-encode the : characters if your client does not do it for you.
Response fields (200)
Field
Type
Description
authorize_url
string (URL)
Where you send the parent’s browser to grant consent (step 2).
token_url
string (URL)
Where you exchange the authorization code for a token (step 4).
profiles_url
string (URL)
Where you read the approved child profiles with the token.
scopes
string[]
The OAuth scopes the provider will request. Loopline requests child_profiles.read — read-only access to the approved children.
name
string
Human-readable provider name, safe to show a parent.
Errors
Status
message
When it happens
404
provider connect config not available
The DID is accredited but has no connect surface configured (e.g. did:ocss:courier). Do not retry — the provider must publish endpoints first.
Redirect the parent’s browser to authorize_url with your client_id (the provider DID),
a redirect_uri, and an opaque state you generate:
GET /oauth/authorize ?client_id=did:ocss:loopline &redirect_uri=https://loopline.example/callback &state=xyz789 &response_type=code
The sandbox serves a real consent screen. The parent sees exactly which child profiles they
are about to share, and chooses Approve or Deny:
The live sandbox consent page for did:ocss:loopline — captured from the running server, not a mockup.
This consent page is a sandbox demo, not a production IdP. The census’s reference authorize
surface auto-approves the seeded test family (Mia/Leo/Ava) with no login — a sandbox affordance,
gated to PHOSRA_ENV=sandbox (it returns 404 on the production census by design). In production,
the provider redirects to the platform’s ownauthorize_url, and the platform hosts this page.
The platform authenticates its real account holder (a genuine login or existing session) before
consent, and returns that account’s real child profiles to the token/profiles exchange — never a
seeded identity. The census never hosts a production consent IdP; the platform authenticates its own
users (EXT-04 §3.2 step 3). So when you go live, authorize_url points at your platform, not here.
Fields & errors — GET /oauth/authorize
Query parameters
Field
Type
Required
Description
client_id
string
yes
The provider DID you are connecting, e.g. did:ocss:loopline.
redirect_uri
string (URL)
yes
Where Phosra sends the parent back after they decide. Custom schemes (e.g. myapp://callback) are accepted for native apps.
state
string
yes
An opaque value you generate. It is echoed back unchanged — compare it on return to defend against CSRF.
response_type
string
yes
Always code for this flow.
Outcomes
Result
What Phosra returns
Parent approves
302 redirect to redirect_uri?code=…&state=… (step 3).
Parent denies
302 redirect to redirect_uri?error=access_denied&state=… — no code. Handle this branch; see Disconnect & reconnect.
Errors
Status
When it happens
400
redirect_uri is missing or malformed. Phosra will not redirect to an absent callback, so it fails closed with a 400 instead.
3
Receive the authorization code
On Approve, Phosra redirects back to your redirect_uri with a short-lived code and the
state you sent (verify it matches before continuing):
On the scope value. Discovery advertises the requested scope as child_profiles.read
(the canonical name), while the issued token echoes the short form scope: "profiles". Both
name the same grant — read-only access to the approved children. Key your logic off the token
you were issued, not off a hard-coded string, and treat the two as equivalent.
Fields & errors — POST /oauth/token
Request body (application/json)
Field
Type
Required
Description
grant_type
string
yes
Always authorization_code for this flow.
code
string
yes
The authorization code from the callback.
client_id
string
yes
The provider DID — must match the one you sent to authorize.
redirect_uri
string
yes
Must match the redirect_uri used at authorize.
Response fields (200)
Field
Type
Description
access_token
string
Bearer token (sbxtok_…) for GET /oauth/profiles.
expires_in
integer
Seconds until the token expires (3600 = 1 hour).
scope
string
The granted scope, returned as profiles — equivalent to the child_profiles.read scope from discovery (see note above).
token_type
string
Always Bearer. Send it as Authorization: Bearer <access_token>.
Errors
Status
error
When it happens
400
unsupported_grant_type
grant_type is missing or not authorization_code.
400
invalid_request
The body is malformed or a required field is absent.
Sandbox stub behaviour. The sandbox /oauth/token surface is a stateless reference stub:
it does not persist or validate the code, so an expired or reused code still returns a token in
the sandbox. In production, a provider’s real token endpoint returns 400 invalid_grant for an
expired, reused, or unknown code — write your error handling for that before you go live.
5
Read the shared child profiles
Call profiles_url with the token. You get back exactly the children the parent approved —
each with a stable subject_ref you use for policy and enforcement calls:
The platform is now connected. Hold onto each subject_ref — that is the handle you pass to
the policy and enforcement endpoints in Set up a family & kids.
Fields & errors — GET /oauth/profiles
Request header
Header
Required
Description
Authorization
yes
Bearer <access_token> from the token step.
Response fields (200) — an array, one object per approved child
Field
Type
Description
id
string
Provider-local child id (e.g. mia).
displayName
string
Child’s display name, safe to show a parent.
subject_ref
string (UUID)
Stable cross-system handle. Pass this to the policy and enforcement endpoints — it does not change across reconnects.
kind
string
Subject kind, child for these entries.
Errors
Status
error
When it happens
401
invalid_token
No Authorization header was sent.
Sandbox stub behaviour. Because the sandbox surface is stateless, any non-empty
Bearer value returns the seeded profiles — only a missing header yields 401. A production
provider validates the token and returns 401 invalid_token for any expired or forged token, so
treat 401 as “re-run the connect ceremony” in your client.
Which platform supports which rule?
Not every platform can enforce every rule. Discovery endpoints let you pick the right one
before you ask a parent to connect:
# Every platform that can do DNS-level web filteringcurl -s "$PHOSRA_BASE/api/v1/platforms/by-capability?capability=web_filtering"# → [ "fire_tablet", "apple", "microsoft", "cleanbrowsing", "controld", "nextdns" ]
# Every DNS platformcurl -s "$PHOSRA_BASE/api/v1/platforms/by-category?category=dns"# → [ "cleanbrowsing", "controld", "nextdns" ]
Check each platform’s enforcement_mode: dns, device, and oauth2 platforms are
applied programmatically, while manual_attested platforms require the parent to complete a
guided step by hand. See Platforms & enforcement modes.
Production notes
In production, connecting an account-linked platform (one where you hold a per-family
credential rather than an OAuth grant) uses POST /compliance with your phosra_live_… key —
see First-time setup. Those endpoints are family-scoped and require
an authenticated caller who is a member of the family, so they cannot be exercised
anonymously against the open sandbox. The OAuth ceremony above is the anonymous, fully
runnable path.
Next steps
Set up a family & kids
Build a family, add children, and get an age-appropriate policy in one call.
Disconnect & reconnect
Handle the decline path, tear a link down, and re-approve cleanly.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Phosra Developer Docs","colors":{"primary":"#00D47E","light":"#00D47E","dark":"#00D47E"},"logo":{"light":"https://mintcdn.com/phosra/ccLwQ8j7MtqaYrRP/logo.svg?fit=max\u0026auto=format\u0026n=ccLwQ8j7MtqaYrRP\u0026q=85\u0026s=8f3e00aeea5b1bf4afb0f9276ed39b99","dark":"https://mintcdn.com/phosra/ccLwQ8j7MtqaYrRP/logo-white.svg?fit=max\u0026auto=format\u0026n=ccLwQ8j7MtqaYrRP\u0026q=85\u0026s=ac97c56af67be154c77a22ad86318d12"},"favicon":"https://mintcdn.com/phosra/ccLwQ8j7MtqaYrRP/favicon.svg?fit=max\u0026auto=format\u0026n=ccLwQ8j7MtqaYrRP\u0026q=85\u0026s=f69a525b8c32baf18b6421339f76b37c","api":{"openapi":["openapi.yaml","openapi.control-plane.yaml","openapi.data-plane.yaml"],"playground":{"display":"simple"},"mdx":{"auth":{"method":"bearer"},"server":"https://prodapi.phosra.com/api/v1"}},"navbar":{"links":[{"href":"https://openchildsafety.com/status","label":"Status"},{"href":"https://dashboard.phosra.com/login","label":"Sign in"}],"primary":{"type":"button","label":"Get API keys","href":"https://dashboard.phosra.com/signup"}},"footer":{"socials":{"website":"https://phosra.com","github":"https://github.com/openchildsafety","linkedin":"https://www.linkedin.com/company/phosra"}},"search":{"prompt":"Search the Phosra API, guides, and the OCSS spec…"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"phosra","hasAudioNarration":false,"actualSubdomain":"phosra","customDomains":["docs.phosra.com"],"gitSource":{"type":"github","owner":"jakekklinvex","repo":"phosra","deployBranch":"main","contentDirectory":"docs/api","isPrivate":true,"mountPath":"","label":"","_id":"6b10bf499ffae5051c40458b"},"entitlements":{},"buildId":"6a99df2cd25de1dbb9062aae","clientVersion":"0.0.4443","searchFilterCounts":[{"language":"default","tag":"Documentation","count":269},{"language":"default","tag":"API Reference","count":97},{"language":"default","tag":"Data Plane","count":71},{"language":"default","tag":"Control Plane","count":24},{"language":"default","tag":"SDKs","count":24},{"language":"default","tag":"Partner Integration","count":14},{"language":"default","tag":"Get Started","count":13},{"language":"default","tag":"Guides","count":13},{"language":"default","tag":"Concepts","count":11},{"language":"default","tag":"OCSS Data-Plane","count":10}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"auth-vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[{"filePath":"styles.css","content":":root{--phosra-green: #00D47E;--phosra-green-ink: #047857;--phosra-green-ink-strong: #036546;--phosra-ink: #0B1215;--phosra-code-bg: #0d1117;--phosra-code-chip-bg: #ecfdf4;--phosra-code-chip-ink: #036546;--phosra-code-chip-brd: #b8ecd4}.dark{--phosra-green-ink: #34e0a1;--phosra-code-chip-bg: rgba(0, 212, 126, 0.12);--phosra-code-chip-ink: #6ff0c0;--phosra-code-chip-brd: rgba(0, 212, 126, 0.28)}.prose .eyebrow,[class*=\"text-primary\"]{color:var(--phosra-green-ink)!important}.prose a{color:var(--phosra-green-ink);text-decoration:none;font-weight:500;border-bottom:1px solid transparent;transition:border-color 120ms ease}.prose a:hover{border-bottom-color:var(--phosra-green-ink)}:not(pre)>code{background:var(--phosra-code-chip-bg)!important;color:var(--phosra-code-chip-ink)!important;border:1px solid var(--phosra-code-chip-brd);border-radius:5px;padding:0.1em 0.38em;font-size:0.86em;font-weight:500;white-space:nowrap;word-break:keep-all}:not(pre)>code:is([data-long],.long){white-space:normal;word-break:break-word}:not(pre)>code::before,:not(pre)>code::after{content:none!important}.prose pre,pre[class*=\"language-\"]{border-radius:12px;border:1px solid rgba(0, 212, 126, 0.18);box-shadow:0 1px 2px rgba(11, 18, 21, 0.06),\n 0 8px 24px -12px rgba(11, 18, 21, 0.25)}.prose pre{position:relative}.prose pre::before{content:\"\";position:absolute;inset:0 0 auto 0;height:2px;border-radius:12px 12px 0 0;background:linear-gradient(90deg, var(--phosra-green) 0%, #0EA5E9 100%);opacity:0.55}a[class*=\"rounded\"][class*=\"bg-primary\"],button[class*=\"bg-primary\"]{border-radius:8px!important}#content-container .prose a[class*=\"card\"],.card:hover{transition:transform 120ms ease, box-shadow 120ms ease}"}]}
{"page":{"pagePath":"guides/connect-a-platform","slug":"/guides/connect-a-platform","pageMetadata":{"title":"Connect a platform","description":"Link a family to an external platform end-to-end — the OAuth connect ceremony, run live against the open sandbox with real requests and responses.","keywords":["connect a platform","OAuth connect","connect ceremony","link family","sandbox connect","platform link"],"href":"/guides/connect-a-platform"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Link a family to an external platform end-to-end — the OAuth connect ceremony, run live against the open sandbox with real requests and responses.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,em:`em`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{Accordion,Card,CardGroup,CodeBlock,CodeGroup,Frame,Heading,Info,Note,OptimizedImage,Step,Steps,Table,Warning}=_components;if(!Accordion)_missingMdxReference(`Accordion`,true);if(!Card)_missingMdxReference(`Card`,true);if(!CardGroup)_missingMdxReference(`CardGroup`,true);if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!CodeGroup)_missingMdxReference(`CodeGroup`,true);if(!Frame)_missingMdxReference(`Frame`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Info)_missingMdxReference(`Info`,true);if(!Note)_missingMdxReference(`Note`,true);if(!OptimizedImage)_missingMdxReference(`OptimizedImage`,true);if(!Step)_missingMdxReference(`Step`,true);if(!Steps)_missingMdxReference(`Steps`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`A `,_jsx(_components.strong,{children:`platform`}),` (also called a `,_jsx(_components.em,{children:`provider`}),`) is anything Phosra can push a child-safety policy\nto — a DNS filter, a router, an app, an operating system. Before Phosra can enforce anything,\na parent has to connect the platform and approve sharing their children’s profiles.`]}),`\n`,_jsxs(_components.p,{children:[`This guide walks the full `,_jsx(_components.strong,{children:`connect ceremony`}),` — discovery → consent → token → profiles —\nagainst the public sandbox. Every request and response below is `,_jsx(_components.strong,{children:`verbatim live output`}),`,\ncaptured while writing this page. No API key, nothing to install.`]}),`\n`,_jsxs(_components.p,{children:[`The four calls chain end to end: `,_jsx(_components.strong,{children:`discover`}),` the endpoints (`,_jsx(_components.code,{children:`GET /providers/{did}/connect`}),`) →\nsend the parent to `,_jsx(_components.strong,{children:`consent`}),` (`,_jsx(_components.code,{children:`authorize_url`}),`) → exchange the returned code for a `,_jsx(_components.strong,{children:`token`}),`\n(`,_jsx(_components.code,{children:`token_url`}),`) → read the approved `,_jsx(_components.strong,{children:`profiles`}),` (`,_jsx(_components.code,{children:`profiles_url`}),`). Each step below carries a\n`,_jsx(_components.strong,{children:`Fields \u0026 errors`}),` reference you can expand.`]}),`\n`,_jsx(Info,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Sandbox-first.`}),` The reference provider used here — `,_jsx(_components.code,{children:`did:ocss:loopline`}),` — is seeded into the\npartner sandbox at `,_jsx(_components.code,{children:`https://phosra-api-sandbox-production.up.railway.app`}),`. Nothing you connect\nthere touches a real family. The endpoint shapes are identical in production; you swap the base\nURL for `,_jsx(_components.code,{children:`https://prodapi.phosra.com`}),` and connect a real provider DID.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`before-you-start`,children:`Before you start`}),`\n`,_jsx(_components.p,{children:`Set the base URL once so every step is copy-paste:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`export`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` PHOSRA_BASE`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://phosra-api-sandbox-production.up.railway.app\"`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`You will connect the sandbox’s reference provider, `,_jsx(_components.strong,{children:`Loopline`}),` (`,_jsx(_components.code,{children:`did:ocss:loopline`}),`). It is a\nreal, accredited entry on the sandbox `,_jsx(_components.a,{href:`/guides/test-in-sandbox`,children:`Trust List`}),` with a live OAuth\nsurface — the same shape a production provider exposes.`]}),`\n`,_jsxs(Steps,{children:[_jsxs(Step,{title:`Discover the provider's connect endpoints`,children:[_jsxs(_components.p,{children:[`Every connectable provider publishes its OAuth endpoints at\n`,_jsx(_components.code,{children:`GET /providers/{did}/connect`}),`. Start there — never hard-code the URLs.`]}),_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -s`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$PHOSRA_BASE`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`/api/v1/providers/did:ocss:loopline/connect\"`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`TypeScript`,numberOfLines:`5`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`5`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` BASE`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://phosra-api-sandbox-production.up.railway.app\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` res`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` fetch`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"`\"}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`BASE`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"/api/v1/providers/did:ocss:loopline/connect`\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` connect`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` res`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`json`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// connect.authorize_url, connect.token_url, connect.profiles_url, connect.scopes`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`Python`,numberOfLines:`8`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`8`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` requests`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:`BASE`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://phosra-api-sandbox-production.up.railway.app\"`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`connect `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` requests.get(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` f`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`{`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:`BASE`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`/api/v1/providers/did:ocss:loopline/connect\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`timeout`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`30`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`).json()`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# connect[\"authorize_url\"], connect[\"token_url\"], connect[\"profiles_url\"]`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`Go`,numberOfLines:`5`,language:`go`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`go`,children:_jsxs(_components.code,{language:`go`,numberOfLines:`5`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` base`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://phosra-api-sandbox-production.up.railway.app\"`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`res`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`_`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` :=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` http`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`Get`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`base`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` +`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"/api/v1/providers/did:ocss:loopline/connect\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`defer`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` res`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Body`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`Close`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`()`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// decode into { AuthorizeURL, TokenURL, ProfilesURL, Scopes, Name }`})}),`\n`]})})})]}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`Real response (200):`})}),_jsx(CodeBlock,{filename:``,numberOfLines:`7`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`7`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"authorize_url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://phosra-api-sandbox-production.up.railway.app/oauth/authorize\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"token_url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://phosra-api-sandbox-production.up.railway.app/oauth/token\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"profiles_url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://phosra-api-sandbox-production.up.railway.app/oauth/profiles\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"scopes\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"child_profiles.read\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Loopline\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsx(Note,{children:_jsxs(_components.p,{children:[`A provider that is accredited but has `,_jsx(_components.strong,{children:`not`}),` configured a connect surface returns\n`,_jsx(_components.code,{children:`404 provider connect config not available`}),`. In the sandbox, `,_jsx(_components.code,{children:`did:ocss:courier`}),` is deliberately\nleft unconfigured so you can test that branch.`]})}),_jsxs(Accordion,{title:`Fields \u0026 errors — GET /providers/{did}/connect`,id:`fields-and-errors-get-providers-did-connect`,children:[_jsx(_components.p,{children:_jsx(_components.strong,{children:`Path parameter`})}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{style:{textAlign:`center`},children:`Required`}),_jsx(_components.th,{children:`Description`})]})}),_jsx(_components.tbody,{children:_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`did`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{style:{textAlign:`center`},children:`yes`}),_jsxs(_components.td,{children:[`The provider’s decentralized identifier, e.g. `,_jsx(_components.code,{children:`did:ocss:loopline`}),`. URL-encode the `,_jsx(_components.code,{children:`:`}),` characters if your client does not do it for you.`]})]})})]}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`Response fields (200)`})}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`authorize_url`})}),_jsx(_components.td,{children:`string (URL)`}),_jsx(_components.td,{children:`Where you send the parent’s browser to grant consent (step 2).`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`token_url`})}),_jsx(_components.td,{children:`string (URL)`}),_jsxs(_components.td,{children:[`Where you exchange the authorization `,_jsx(_components.code,{children:`code`}),` for a token (step 4).`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`profiles_url`})}),_jsx(_components.td,{children:`string (URL)`}),_jsx(_components.td,{children:`Where you read the approved child profiles with the token.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`scopes`})}),_jsx(_components.td,{children:`string[]`}),_jsxs(_components.td,{children:[`The OAuth scopes the provider will request. Loopline requests `,_jsx(_components.code,{children:`child_profiles.read`}),` — read-only access to the approved children.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`name`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Human-readable provider name, safe to show a parent.`})]})]})]}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`Errors`})}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{style:{textAlign:`center`},children:`Status`}),_jsx(_components.th,{children:_jsx(_components.code,{children:`message`})}),_jsx(_components.th,{children:`When it happens`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`center`},children:_jsx(_components.code,{children:`404`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`provider connect config not available`})}),_jsxs(_components.td,{children:[`The DID is accredited but has no connect surface configured (e.g. `,_jsx(_components.code,{children:`did:ocss:courier`}),`). Do not retry — the provider must publish endpoints first.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`center`},children:_jsx(_components.code,{children:`404`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`provider not found`})}),_jsxs(_components.td,{children:[`The DID is not on the Trust List at all. Check the value against `,_jsx(_components.a,{href:`/guides/test-in-sandbox`,children:_jsx(_components.code,{children:`GET /.well-known/ocss/trust-list`})}),`.`]})]})]})]})]})]}),_jsxs(Step,{title:`Send the parent to the consent page`,children:[_jsxs(_components.p,{children:[`Redirect the parent’s browser to `,_jsx(_components.code,{children:`authorize_url`}),` with your `,_jsx(_components.code,{children:`client_id`}),` (the provider DID),\na `,_jsx(_components.code,{children:`redirect_uri`}),`, and an opaque `,_jsx(_components.code,{children:`state`}),` you generate:`]}),_jsx(CodeBlock,{numberOfLines:`6`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`6`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`GET /oauth/authorize`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` ?client_id=did:ocss:loopline`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` \u0026redirect_uri=https://loopline.example/callback`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` \u0026state=xyz789`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` \u0026response_type=code`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),_jsxs(_components.p,{children:[`The sandbox serves a real consent screen. The parent sees exactly which child profiles they\nare about to share, and chooses `,_jsx(_components.strong,{children:`Approve`}),` or `,_jsx(_components.strong,{children:`Deny`}),`:`]}),_jsx(Frame,{caption:`The live sandbox consent page for did:ocss:loopline — captured from the running server, not a mockup.`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/phosra/o0ansqUg4hqAQihW/images/consent-page-live.jpg?fit=max\u0026auto=format\u0026n=o0ansqUg4hqAQihW\u0026q=85\u0026s=7d3a0f000fda958d411b6427ce34bb0f`,alt:`Phosra sandbox consent page titled 'Connect your family to this app?' listing Mia, Leo, and Ava as child profiles, with Approve and Deny buttons`,\"data-og-width\":`760`,width:`760`,\"data-og-height\":`430`,height:`430`,\"data-path\":`images/consent-page-live.jpg`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/phosra/o0ansqUg4hqAQihW/images/consent-page-live.jpg?w=280\u0026fit=max\u0026auto=format\u0026n=o0ansqUg4hqAQihW\u0026q=85\u0026s=eb8b14a24882e2217a4adf96edc77742 280w, https://mintcdn.com/phosra/o0ansqUg4hqAQihW/images/consent-page-live.jpg?w=560\u0026fit=max\u0026auto=format\u0026n=o0ansqUg4hqAQihW\u0026q=85\u0026s=40eaa0a15bd3f50ea1324bca00adb503 560w, https://mintcdn.com/phosra/o0ansqUg4hqAQihW/images/consent-page-live.jpg?w=840\u0026fit=max\u0026auto=format\u0026n=o0ansqUg4hqAQihW\u0026q=85\u0026s=edff75d6f39abd4b651fac84ed08726d 840w, https://mintcdn.com/phosra/o0ansqUg4hqAQihW/images/consent-page-live.jpg?w=1100\u0026fit=max\u0026auto=format\u0026n=o0ansqUg4hqAQihW\u0026q=85\u0026s=8d54f5bdad21b35dd141db5f6d045ad2 1100w, https://mintcdn.com/phosra/o0ansqUg4hqAQihW/images/consent-page-live.jpg?w=1650\u0026fit=max\u0026auto=format\u0026n=o0ansqUg4hqAQihW\u0026q=85\u0026s=ab9a0b3841148876a8dbc29bcc5cc9d1 1650w, https://mintcdn.com/phosra/o0ansqUg4hqAQihW/images/consent-page-live.jpg?w=2500\u0026fit=max\u0026auto=format\u0026n=o0ansqUg4hqAQihW\u0026q=85\u0026s=bfbe6ae6255ad350e49225f7bd259176 2500w`})}),_jsx(Note,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`This consent page is a sandbox demo, not a production IdP.`}),` The census’s reference authorize\nsurface auto-approves the seeded test family (Mia/Leo/Ava) with `,_jsx(_components.strong,{children:`no login`}),` — a sandbox affordance,\ngated to `,_jsx(_components.code,{children:`PHOSRA_ENV=sandbox`}),` (it returns `,_jsx(_components.code,{children:`404`}),` on the production census by design). `,_jsxs(_components.strong,{children:[`In production,\nthe provider redirects to the `,_jsx(_components.em,{children:`platform’s own`}),` `,_jsx(_components.code,{children:`authorize_url`}),`, and the platform hosts this page.`]}),`\nThe platform authenticates its real account holder (a genuine login or existing session) `,_jsx(_components.strong,{children:`before`}),`\nconsent, and returns `,_jsx(_components.em,{children:`that account’s`}),` real child profiles to the token/profiles exchange — never a\nseeded identity. The census never hosts a production consent IdP; the platform authenticates its own\nusers (EXT-04 §3.2 step 3). So when you go live, `,_jsx(_components.code,{children:`authorize_url`}),` points at your platform, not here.`]})}),_jsxs(Accordion,{title:`Fields \u0026 errors — GET /oauth/authorize`,id:`fields-and-errors-get-oauth-authorize`,children:[_jsx(_components.p,{children:_jsx(_components.strong,{children:`Query parameters`})}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{style:{textAlign:`center`},children:`Required`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`client_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{style:{textAlign:`center`},children:`yes`}),_jsxs(_components.td,{children:[`The provider DID you are connecting, e.g. `,_jsx(_components.code,{children:`did:ocss:loopline`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`redirect_uri`})}),_jsx(_components.td,{children:`string (URL)`}),_jsx(_components.td,{style:{textAlign:`center`},children:`yes`}),_jsxs(_components.td,{children:[`Where Phosra sends the parent back after they decide. Custom schemes (e.g. `,_jsx(_components.code,{children:`myapp://callback`}),`) are accepted for native apps.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`state`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{style:{textAlign:`center`},children:`yes`}),_jsx(_components.td,{children:`An opaque value you generate. It is echoed back unchanged — compare it on return to defend against CSRF.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`response_type`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{style:{textAlign:`center`},children:`yes`}),_jsxs(_components.td,{children:[`Always `,_jsx(_components.code,{children:`code`}),` for this flow.`]})]})]})]}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`Outcomes`})}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Result`}),_jsx(_components.th,{children:`What Phosra returns`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[`Parent `,_jsx(_components.strong,{children:`approves`})]}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`302`}),` redirect to `,_jsx(_components.code,{children:`redirect_uri?code=…\u0026state=…`}),` (step 3).`]})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[`Parent `,_jsx(_components.strong,{children:`denies`})]}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`302`}),` redirect to `,_jsx(_components.code,{children:`redirect_uri?error=access_denied\u0026state=…`}),` — `,_jsx(_components.strong,{children:`no code`}),`. Handle this branch; see `,_jsx(_components.a,{href:`/guides/disconnect-reconnect`,children:`Disconnect \u0026 reconnect`}),`.`]})]})]})]}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`Errors`})}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{style:{textAlign:`center`},children:`Status`}),_jsx(_components.th,{children:`When it happens`})]})}),_jsx(_components.tbody,{children:_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`center`},children:_jsx(_components.code,{children:`400`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`redirect_uri`}),` is missing or malformed. Phosra will not redirect to an absent callback, so it fails closed with a `,_jsx(_components.code,{children:`400`}),` instead.`]})]})})]})]})]}),_jsxs(Step,{title:`Receive the authorization code`,children:[_jsxs(_components.p,{children:[`On `,_jsx(_components.strong,{children:`Approve`}),`, Phosra redirects back to your `,_jsx(_components.code,{children:`redirect_uri`}),` with a short-lived `,_jsx(_components.code,{children:`code`}),` and the\n`,_jsx(_components.code,{children:`state`}),` you sent (verify it matches before continuing):`]}),_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`302 Location: https://loopline.example/callback?code=sbxauth_2hg1obaYzTs5XiK80A-NnuVhzOHfktze\u0026state=xyz789`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),_jsxs(_components.p,{children:[`On `,_jsx(_components.strong,{children:`Deny`}),`, no code is issued — you get `,_jsx(_components.code,{children:`?error=access_denied\u0026state=…`}),` instead. Handle both.\nSee `,_jsx(_components.a,{href:`/guides/disconnect-reconnect`,children:`Disconnect \u0026 reconnect`}),` for the decline path in full.`]}),_jsxs(Accordion,{title:`Fields \u0026 errors — the callback query string`,id:`fields-and-errors-the-callback-query-string`,children:[_jsx(_components.p,{children:_jsxs(_components.strong,{children:[`Query parameters Phosra appends to your `,_jsx(_components.code,{children:`redirect_uri`})]})}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Present when`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`code`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`approved`}),_jsxs(_components.td,{children:[`Short-lived authorization code (`,_jsx(_components.code,{children:`sbxauth_…`}),` in the sandbox). Exchange it once at `,_jsx(_components.code,{children:`token_url`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`state`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`always`}),_jsxs(_components.td,{children:[`The exact `,_jsx(_components.code,{children:`state`}),` you sent. `,_jsx(_components.strong,{children:`Reject the response if it does not match`}),` the value you generated.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`error`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`denied`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`access_denied`}),` when the parent declined. No `,_jsx(_components.code,{children:`code`}),` is present — do not attempt the token exchange.`]})]})]})]})]})]}),_jsxs(Step,{title:`Exchange the code for an access token`,children:[_jsxs(_components.p,{children:[`Trade the `,_jsx(_components.code,{children:`code`}),` for a bearer token at `,_jsx(_components.code,{children:`token_url`}),`:`]}),_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`8`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`8`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -s`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$PHOSRA_BASE`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`/oauth/token\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"grant_type\": \"authorization_code\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"code\": \"sbxauth_2hg1obaYzTs5XiK80A-NnuVhzOHfktze\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"client_id\": \"did:ocss:loopline\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"redirect_uri\": \"https://loopline.example/callback\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`TypeScript`,numberOfLines:`11`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`11`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` tok`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` fetch`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"`\"}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`BASE`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"/oauth/token`\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` method:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"POST\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` headers:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Content-Type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"application/json\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` body:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` JSON`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`stringify`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` grant_type:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"authorization_code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` code`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// from the callback`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` client_id:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"did:ocss:loopline\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` redirect_uri:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://loopline.example/callback\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }),`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}).`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`then`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`((`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`r`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` r`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`json`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`());`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// tok.access_token, tok.expires_in`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`Python`,numberOfLines:`7`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`7`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`tok `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` requests.post(`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`f`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`{`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:`BASE`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`/oauth/token\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`json`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"grant_type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"authorization_code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: code, `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# from the callback`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"client_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"did:ocss:loopline\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"redirect_uri\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://loopline.example/callback\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}, `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`timeout`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`30`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`).json()`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# tok[\"access_token\"], tok[\"expires_in\"]`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`Go`,numberOfLines:`9`,language:`go`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`go`,children:_jsxs(_components.code,{language:`go`,numberOfLines:`9`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`body`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`_`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` :=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` json`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`Marshal`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`map`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#4EC9B0`},children:`string`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#4EC9B0`},children:`string`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\t\"grant_type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"authorization_code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\t\"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`code`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// from the callback`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\t\"client_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"did:ocss:loopline\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\t\"redirect_uri\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://loopline.example/callback\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`})`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`res`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`_`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` :=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` http`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`Post`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`base`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`+`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"/oauth/token\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"application/json\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`bytes`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`NewReader`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`body`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`))`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`defer`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` res`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Body`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`Close`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`()`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// decode { AccessToken, ExpiresIn, Scope, TokenType }`})}),`\n`]})})})]}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`Real response (200):`})}),_jsx(CodeBlock,{filename:``,numberOfLines:`6`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`6`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"access_token\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"sbxtok_ymSQQBw4aPijjuX8xuU5R6ASjrDSXXC6\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"expires_in\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`3600`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"scope\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"profiles\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"token_type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Bearer\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsx(Note,{children:_jsxs(_components.p,{children:[_jsxs(_components.strong,{children:[`On the `,_jsx(_components.code,{children:`scope`}),` value.`]}),` Discovery advertises the requested scope as `,_jsx(_components.code,{children:`child_profiles.read`}),`\n(the canonical name), while the issued token echoes the short form `,_jsx(_components.code,{children:`scope: \"profiles\"`}),`. `,_jsx(_components.strong,{children:`Both\nname the same grant`}),` — read-only access to the approved children. Key your logic off the token\nyou were issued, not off a hard-coded string, and treat the two as equivalent.`]})}),_jsxs(Accordion,{title:`Fields \u0026 errors — POST /oauth/token`,id:`fields-and-errors-post-oauth-token`,children:[_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Request body`}),` (`,_jsx(_components.code,{children:`application/json`}),`)`]}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{style:{textAlign:`center`},children:`Required`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`grant_type`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{style:{textAlign:`center`},children:`yes`}),_jsxs(_components.td,{children:[`Always `,_jsx(_components.code,{children:`authorization_code`}),` for this flow.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`code`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{style:{textAlign:`center`},children:`yes`}),_jsx(_components.td,{children:`The authorization code from the callback.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`client_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{style:{textAlign:`center`},children:`yes`}),_jsxs(_components.td,{children:[`The provider DID — must match the one you sent to `,_jsx(_components.code,{children:`authorize`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`redirect_uri`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{style:{textAlign:`center`},children:`yes`}),_jsxs(_components.td,{children:[`Must match the `,_jsx(_components.code,{children:`redirect_uri`}),` used at `,_jsx(_components.code,{children:`authorize`}),`.`]})]})]})]}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`Response fields (200)`})}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`access_token`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[`Bearer token (`,_jsx(_components.code,{children:`sbxtok_…`}),`) for `,_jsx(_components.code,{children:`GET /oauth/profiles`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`expires_in`})}),_jsx(_components.td,{children:`integer`}),_jsxs(_components.td,{children:[`Seconds until the token expires (`,_jsx(_components.code,{children:`3600`}),` = 1 hour).`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`scope`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[`The granted scope, returned as `,_jsx(_components.code,{children:`profiles`}),` — equivalent to the `,_jsx(_components.code,{children:`child_profiles.read`}),` scope from discovery (see note above).`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`token_type`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[`Always `,_jsx(_components.code,{children:`Bearer`}),`. Send it as `,_jsx(_components.code,{children:`Authorization: Bearer \u003caccess_token>`}),`.`]})]})]})]}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`Errors`})}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{style:{textAlign:`center`},children:`Status`}),_jsx(_components.th,{children:_jsx(_components.code,{children:`error`})}),_jsx(_components.th,{children:`When it happens`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`center`},children:_jsx(_components.code,{children:`400`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`unsupported_grant_type`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`grant_type`}),` is missing or not `,_jsx(_components.code,{children:`authorization_code`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`center`},children:_jsx(_components.code,{children:`400`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`invalid_request`})}),_jsx(_components.td,{children:`The body is malformed or a required field is absent.`})]})]})]}),_jsx(Warning,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Sandbox stub behaviour.`}),` The sandbox `,_jsx(_components.code,{children:`/oauth/token`}),` surface is a `,_jsx(_components.strong,{children:`stateless reference stub`}),`:\nit does not persist or validate the `,_jsx(_components.code,{children:`code`}),`, so an expired or reused code still returns a token in\nthe sandbox. In production, a provider’s real token endpoint returns `,_jsx(_components.code,{children:`400 invalid_grant`}),` for an\nexpired, reused, or unknown code — write your error handling for that before you go live.`]})})]})]}),_jsxs(Step,{title:`Read the shared child profiles`,children:[_jsxs(_components.p,{children:[`Call `,_jsx(_components.code,{children:`profiles_url`}),` with the token. You get back exactly the children the parent approved —\neach with a stable `,_jsx(_components.code,{children:`subject_ref`}),` you use for policy and enforcement calls:`]}),_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -s`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$PHOSRA_BASE`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`/oauth/profiles\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer sbxtok_ymSQQBw4aPijjuX8xuU5R6ASjrDSXXC6\"`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`TypeScript`,numberOfLines:`4`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` profiles`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` fetch`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"`\"}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`BASE`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"/oauth/profiles`\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` headers:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Authorization:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\" `Bearer \"}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`tok`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`access_token`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"`\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}).`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`then`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`((`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`r`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` r`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`json`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`());`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// [{ id, displayName, subject_ref, kind }, …]`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`Python`,numberOfLines:`3`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`profiles `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` requests.get(`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`f`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`{`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:`BASE`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`/oauth/profiles\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`headers`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`f`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Bearer `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`tok[`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'access_token'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}, `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`timeout`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`30`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`).json()`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`Go`,numberOfLines:`5`,language:`go`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`go`,children:_jsxs(_components.code,{language:`go`,numberOfLines:`5`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`req`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`_`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` :=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` http`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`NewRequest`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"GET\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`base`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`+`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"/oauth/profiles\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`nil`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`req`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Header`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`Set`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Authorization\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Bearer \"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`+`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`tok`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`AccessToken`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`res`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`_`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` :=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` http`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`DefaultClient`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`Do`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`req`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`defer`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` res`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Body`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`Close`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`()`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// decode []Profile{ ID, DisplayName, SubjectRef, Kind }`})}),`\n`]})})})]}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`Real response (200):`})}),_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`5`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"mia\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"displayName\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Mia\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"subject_ref\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"a11ce0fa-0000-4000-8000-0000000000a1\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"kind\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"child\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"leo\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"displayName\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Leo\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"subject_ref\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"a11ce0fa-0000-4000-8000-0000000000a2\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"kind\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"child\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"ava\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"displayName\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Ava\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"subject_ref\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"a11ce0fa-0000-4000-8000-0000000000a3\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"kind\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"child\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`})}),`\n`]})})}),_jsxs(_components.p,{children:[`The platform is now connected. Hold onto each `,_jsx(_components.code,{children:`subject_ref`}),` — that is the handle you pass to\nthe policy and enforcement endpoints in `,_jsx(_components.a,{href:`/guides/family-and-kids`,children:`Set up a family \u0026 kids`}),`.`]}),_jsxs(Accordion,{title:`Fields \u0026 errors — GET /oauth/profiles`,id:`fields-and-errors-get-oauth-profiles`,children:[_jsx(_components.p,{children:_jsx(_components.strong,{children:`Request header`})}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Header`}),_jsx(_components.th,{style:{textAlign:`center`},children:`Required`}),_jsx(_components.th,{children:`Description`})]})}),_jsx(_components.tbody,{children:_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`Authorization`})}),_jsx(_components.td,{style:{textAlign:`center`},children:`yes`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`Bearer \u003caccess_token>`}),` from the token step.`]})]})})]}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Response fields (200)`}),` — an array, one object per approved child`]}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`id`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[`Provider-local child id (e.g. `,_jsx(_components.code,{children:`mia`}),`).`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`displayName`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Child’s display name, safe to show a parent.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`subject_ref`})}),_jsx(_components.td,{children:`string (UUID)`}),_jsxs(_components.td,{children:[_jsx(_components.strong,{children:`Stable cross-system handle.`}),` Pass this to the policy and enforcement endpoints — it does not change across reconnects.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`kind`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[`Subject kind, `,_jsx(_components.code,{children:`child`}),` for these entries.`]})]})]})]}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`Errors`})}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{style:{textAlign:`center`},children:`Status`}),_jsx(_components.th,{children:_jsx(_components.code,{children:`error`})}),_jsx(_components.th,{children:`When it happens`})]})}),_jsx(_components.tbody,{children:_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`center`},children:_jsx(_components.code,{children:`401`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`invalid_token`})}),_jsxs(_components.td,{children:[`No `,_jsx(_components.code,{children:`Authorization`}),` header was sent.`]})]})})]}),_jsx(Warning,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Sandbox stub behaviour.`}),` Because the sandbox surface is stateless, any non-empty\n`,_jsx(_components.code,{children:`Bearer`}),` value returns the seeded profiles — only a `,_jsx(_components.strong,{children:`missing`}),` header yields `,_jsx(_components.code,{children:`401`}),`. A production\nprovider validates the token and returns `,_jsx(_components.code,{children:`401 invalid_token`}),` for any expired or forged token, so\ntreat `,_jsx(_components.code,{children:`401`}),` as “re-run the connect ceremony” in your client.`]})})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`which-platform-supports-which-rule`,children:`Which platform supports which rule?`}),`\n`,_jsx(_components.p,{children:`Not every platform can enforce every rule. Discovery endpoints let you pick the right one\nbefore you ask a parent to connect:`}),`\n`,_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`Find by capability`,numberOfLines:`3`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`3`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Every platform that can do DNS-level web filtering`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -s`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$PHOSRA_BASE`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`/api/v1/platforms/by-capability?capability=web_filtering\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# → [ \"fire_tablet\", \"apple\", \"microsoft\", \"cleanbrowsing\", \"controld\", \"nextdns\" ]`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`Find by category`,numberOfLines:`3`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`3`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Every DNS platform`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -s`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$PHOSRA_BASE`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`/api/v1/platforms/by-category?category=dns\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# → [ \"cleanbrowsing\", \"controld\", \"nextdns\" ]`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`Inspect one platform`,numberOfLines:`4`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -s`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$PHOSRA_BASE`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`/api/v1/platforms/nextdns\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# → { \"id\": \"nextdns\", \"category\": \"dns\", \"enforcement_mode\": \"dns\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# \"auth_type\": \"api_key\", \"capabilities\": [\"web_filtering\", \"safe_search\", …],`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# \"rule_support\": { … per-rule \"supported\" | \"unsupported\" … } }`})}),`\n`]})})})]}),`\n`,_jsxs(_components.p,{children:[`Check each platform’s `,_jsx(_components.strong,{children:_jsx(_components.code,{children:`enforcement_mode`})}),`: `,_jsx(_components.code,{children:`dns`}),`, `,_jsx(_components.code,{children:`device`}),`, and `,_jsx(_components.code,{children:`oauth2`}),` platforms are\napplied programmatically, while `,_jsx(_components.code,{children:`manual_attested`}),` platforms require the parent to complete a\nguided step by hand. See `,_jsx(_components.a,{href:`/concepts/platforms`,children:`Platforms \u0026 enforcement modes`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`production-notes`,children:`Production notes`}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`In production, connecting an `,_jsx(_components.strong,{children:`account-linked`}),` platform (one where you hold a per-family\ncredential rather than an OAuth grant) uses `,_jsx(_components.code,{children:`POST /compliance`}),` with your `,_jsx(_components.code,{children:`phosra_live_…`}),` key —\nsee `,_jsx(_components.a,{href:`/guides/first-time-setup`,children:`First-time setup`}),`. Those endpoints are family-scoped and require\nan authenticated caller who is a member of the family, so they cannot be exercised\nanonymously against the open sandbox. The OAuth ceremony above is the anonymous, fully\nrunnable path.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`next-steps`,children:`Next steps`}),`\n`,_jsxs(CardGroup,{cols:2,children:[_jsx(Card,{title:`Set up a family \u0026 kids`,icon:`users`,href:`/guides/family-and-kids`,children:_jsx(_components.p,{children:`Build a family, add children, and get an age-appropriate policy in one call.`})}),_jsx(Card,{title:`Disconnect \u0026 reconnect`,icon:`plug-circle-xmark`,href:`/guides/disconnect-reconnect`,children:_jsx(_components.p,{children:`Handle the decline path, tear a link down, and re-approve cleanly.`})})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Connect a platform","description":"Link a family to an external platform end-to-end — the OAuth connect ceremony, run live against the open sandbox with real requests and responses.","keywords":["connect a platform","OAuth connect","connect ceremony","link family","sandbox connect","platform link"],"href":"/guides/connect-a-platform"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Before you start","slug":"before-you-start","depth":2,"children":[]},{"title":"Which platform supports which rule?","slug":"which-platform-supports-which-rule","depth":2,"children":[]},{"title":"Production notes","slug":"production-notes","depth":2,"children":[]},{"title":"Next steps","slug":"next-steps","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"phosra","siteName":"Phosra Developer Docs","title":"Connect a platform - Phosra Developer Docs","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-07-07T12:00:40.244Z","originalFileLocation":"guides/connect-a-platform.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Link a family to an external platform end-to-end — the OAuth connect ceremony, run live against the open sandbox with real requests and responses.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Phosra Developer Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/phosra/DoOQZJYofkQ8ctpm/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/phosra/DoOQZJYofkQ8ctpm/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/phosra/DoOQZJYofkQ8ctpm/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/phosra/DoOQZJYofkQ8ctpm/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/phosra/DoOQZJYofkQ8ctpm/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/phosra/DoOQZJYofkQ8ctpm/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/phosra/DoOQZJYofkQ8ctpm/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/phosra/DoOQZJYofkQ8ctpm/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/phosra/DoOQZJYofkQ8ctpm/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Connect a platform - Phosra Developer Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Link a family to an external platform end-to-end — the OAuth connect ceremony, run live against the open sandbox with real requests and responses.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Phosra Developer Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.phosra.com/guides/connect-a-platform\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://phosra.mintlify.site/_mintlify/api/og/v2?division=Guides\u0026amp;title=Connect+a+platform\u0026amp;description=Link+a+family+to+an+external+platform+end-to-end+%E2%80%94+the+OAuth+connect+ceremony%2C+run+live+against+the+open+sandbox+with+real+requests+and+responses.\u0026amp;theme=538c0b8bfdd8852111572721\u0026amp;signature=4b6688f7d7d410565d0e2d040e4f6500f0d39e211c44c67a1c7eb6b47dc16887\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Connect a platform - Phosra Developer Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Link a family to an external platform end-to-end — the OAuth connect ceremony, run live against the open sandbox with real requests and responses.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://phosra.mintlify.site/_mintlify/api/og/v2?division=Guides\u0026amp;title=Connect+a+platform\u0026amp;description=Link+a+family+to+an+external+platform+end-to-end+%E2%80%94+the+OAuth+connect+ceremony%2C+run+live+against+the+open+sandbox+with+real+requests+and+responses.\u0026amp;theme=538c0b8bfdd8852111572721\u0026amp;signature=4b6688f7d7d410565d0e2d040e4f6500f0d39e211c44c67a1c7eb6b47dc16887\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/phosra/DoOQZJYofkQ8ctpm/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Phosra Developer Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#00D47E\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.phosra.com/guides/connect-a-platform\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/guides/connect-a-platform.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.phosra.com/#organization\",\"name\":\"Phosra Developer Docs\",\"url\":\"https://docs.phosra.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/phosra/ccLwQ8j7MtqaYrRP/logo.svg?fit=max\u0026auto=format\u0026n=ccLwQ8j7MtqaYrRP\u0026q=85\u0026s=8f3e00aeea5b1bf4afb0f9276ed39b99\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.phosra.com#website\",\"name\":\"Phosra Developer Docs\",\"url\":\"https://docs.phosra.com\",\"publisher\":{\"@id\":\"https://docs.phosra.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.phosra.com/guides/connect-a-platform#webpage\",\"url\":\"https://docs.phosra.com/guides/connect-a-platform\",\"name\":\"Connect a platform\",\"description\":\"Link a family to an external platform end-to-end — the OAuth connect ceremony, run live against the open sandbox with real requests and responses.\",\"dateModified\":\"2026-07-07T12:00:40.244Z\",\"isPartOf\":{\"@id\":\"https://docs.phosra.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.phosra.com/guides/connect-a-platform#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.phosra.com/guides/connect-a-platform#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Guides\",\"item\":\"https://docs.phosra.com/guides/choose-integration-path\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Connect a platform\",\"item\":\"https://docs.phosra.com/guides/connect-a-platform\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.phosra.com/guides/connect-a-platform#article\",\"headline\":\"Connect a platform\",\"name\":\"Connect a platform\",\"description\":\"Link a family to an external platform end-to-end — the OAuth connect ceremony, run live against the open sandbox with real requests and responses.\",\"url\":\"https://docs.phosra.com/guides/connect-a-platform\",\"mainEntityOfPage\":{\"@id\":\"https://docs.phosra.com/guides/connect-a-platform#webpage\"},\"dateModified\":\"2026-07-07T12:00:40.244Z\",\"keywords\":\"connect a platform, OAuth connect, connect ceremony, link family, sandbox connect, platform link\",\"publisher\":{\"@id\":\"https://docs.phosra.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.phosra.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Phosra Developer Docs\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Phosra Developer Docs\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/guides/connect-a-platform.md","siteName":"Phosra Developer Docs","nav":{"global":null,"anchors":[{"anchor":"Documentation","icon":"book-open","tabs":[{"tab":"Documentation","groups":[{"group":"Get Started","pages":[{"title":"Introduction","href":"/introduction"},{"title":"Quickstart","href":"/quickstart"},{"title":"API playground","href":"/playground"},{"title":"Postman \u0026 Insomnia collection","href":"/tools/postman"},{"title":"Use these docs with AI","href":"/tools/ai-tools"},{"title":"Create your account \u0026 get keys","href":"/platform/create-account"},{"title":"Create an app — the one call","href":"/platform/create-app"},{"title":"Authentication","href":"/authentication"},{"title":"Errors","href":"/errors"},{"title":"Troubleshooting","href":"/troubleshooting"},{"title":"Developer FAQ","href":"/faq"},{"title":"Glossary","href":"/glossary"},{"title":"Support \u0026 getting help","href":"/support"}]},{"group":"Concepts","pages":[{"title":"Architecture","href":"/concepts/architecture"},{"title":"Environments \u0026 base URLs","href":"/concepts/environments"},{"title":"Core objects \u0026 data model","href":"/concepts/data-model"},{"title":"Security \u0026 data handling","href":"/concepts/data-handling"},{"title":"Platforms \u0026 Enforcement Modes","href":"/concepts/platforms"},{"title":"Enforcement","href":"/concepts/enforcement"},{"title":"Signing data-plane requests (RFC 9421)","href":"/concepts/signing-requests"},{"title":"Policies \u0026 Rules","href":"/concepts/policies-and-rules"},{"title":"Families","href":"/concepts/families"},{"title":"Children \u0026 Age Groups","href":"/concepts/children-and-age"},{"title":"Strictness Levels","href":"/concepts/strictness-levels"}]},{"group":"Guides","pages":[{"title":"Choose your integration path","href":"/guides/choose-integration-path"},{"title":"First-Time Setup","href":"/guides/first-time-setup"},{"title":"Developer console: mint a key \u0026 read a verdict","description":"Walk the two most common console tasks with real screenshots — mint a phosra_test_ API key, then read a live enforcement verdict for a child. Every screen is captured from the running dashboard; every request runs against the open sandbox.","href":"/guides/developer-console"},{"title":"Connect a platform","href":"/guides/connect-a-platform"},{"title":"Set up a family \u0026 kids","description":"Create a family, add a child, and get an active age-appropriate policy in a single call — run live against the open sandbox with real requests and responses.","href":"/guides/family-and-kids"},{"title":"Disconnect \u0026 reconnect","href":"/guides/disconnect-reconnect"},{"title":"Test in the sandbox","href":"/guides/test-in-sandbox"},{"title":"Sandbox test values","href":"/guides/sandbox-test-values"},{"title":"Device Sync","href":"/guides/device-sync"},{"title":"Mobile App Integration","href":"/guides/mobile-integration"},{"title":"Third-Party Integration","href":"/guides/third-party-integration"},{"title":"Webhooks","href":"/guides/webhook-events"},{"title":"Example apps \u0026 starters","href":"/guides/example-apps"}]},{"group":"Cookbook","pages":[{"title":"Cookbook","href":"/guides/recipes/overview"},{"title":"End-to-end walkthrough","href":"/guides/end-to-end-walkthrough"},{"title":"Onboard a multi-child household","href":"/guides/recipes/multi-child-household"},{"title":"Change a rule and enforce it","href":"/guides/recipes/policy-change-and-enforce"},{"title":"Back off and retry a 429","href":"/guides/recipes/backoff-retry-429"},{"title":"Rotate a compromised key","href":"/guides/recipes/rotate-compromised-key"},{"title":"Recover a disconnected platform","href":"/guides/recipes/recover-disconnected-platform"},{"title":"Reconcile family drift","href":"/guides/recipes/reconcile-family-drift"}]},{"group":"Partner Integration","pages":[{"title":"Developer Platform Overview","href":"/platform/overview"},{"title":"Partner Integration Overview","href":"/integration/overview"},{"title":"CLI Quickstart","href":"/integration/cli"},{"title":"Provider Quickstart","href":"/integration/provider"},{"title":"Platform Quickstart","href":"/integration/platform"},{"title":"Implement Phosra through Cloudflare","href":"/integration/cloudflare-platform-onboarding"},{"title":"Platform Registration","href":"/integration/platform-registration"},{"title":"Provider Discovery — the directory","href":"/integration/provider-discovery"},{"title":"Safe Content Monitoring","href":"/integration/content-monitoring"},{"title":"Server-Side Enclave Routing","href":"/integration/server-side-enclave-routing"},{"title":"Billing Model","href":"/integration/billing"},{"title":"Production Accreditation","href":"/integration/production-accreditation"},{"title":"Forward Compatibility","href":"/integration/forward-compatibility"},{"title":"Go-live checklist","href":"/integration/go-live-checklist"}]},{"group":"Phosra Link (secret-free)","pages":[{"title":"Readiness: GET /api/phosra/status","href":"/integration/platform-readiness"},{"title":"Migrating HMAC → Signed Connect Delivery","href":"/integration/link-migration"},{"title":"Migrating a hand-minted credential","href":"/integration/credential-divergence"},{"title":"@phosra/connect — PhosraConnect","href":"/sdks/connect-component"},{"group":"Legacy lanes","pages":[{"title":"Provider · createLink (writer-plane compatibility)","href":"/integration/link-provider"},{"title":"Platform · createConnectReceiver (legacy connect receiver)","href":"/integration/link-platform"}]}]},{"group":"OCSS Conformance","pages":[{"title":"OCSS Overview","href":"/ocss/overview"},{"title":"OCSS Roles","href":"/ocss/roles"},{"title":"Getting on the Trust List","href":"/ocss/onboarding"},{"title":"OCSS Trust Framework","href":"/ocss/trust-framework"},{"title":"OCSS Rule Reference","href":"/ocss/rule-reference"},{"title":"Link Intent V2 and the roadmap Intent API","href":"/ocss/intent-api"},{"title":"OCSS Protocol SDK","href":"/ocss/protocol-sdk"},{"title":"Conformance Status","href":"/ocss/status"}]},{"group":"Platform","pages":[{"title":"Rate limits","href":"/rate-limits"},{"title":"Limits \u0026 quotas","href":"/limits"},{"title":"HTTP headers","href":"/headers"},{"title":"Pagination","href":"/pagination"},{"title":"Idempotency","href":"/idempotency"},{"title":"Versioning","href":"/versioning"},{"title":"Deprecation \u0026 Sunset Policy","href":"/deprecation"}]}]},{"tab":"API Reference","pages":[{"title":"API Reference","href":"/api-reference/overview"}]},{"tab":"SDKs","pages":[{"title":"SDKs","href":"/sdks/overview"}]}]},{"anchor":"Status","icon":"signal","href":"https://openchildsafety.com/status"},{"anchor":"Changelog","icon":"clock-rotate-left","pages":[{"title":"Changelog","href":"/changelog"}]},{"anchor":"Security","icon":"shield-check","href":"https://www.phosra.com/trust"},{"anchor":"Developers","icon":"envelope","href":"mailto:developers@phosra.com"}]},"basePath":"","title":"Connect a platform - Phosra Developer Docs","deploymentId":"dpl_9e4H7L1tnDKAVRTqiF1skrLRiVsQ","buildId":"dpl_9e4H7L1tnDKAVRTqiF1skrLRiVsQ","dynamics":["07c022d89b","a74be98ba7"],"chunks":["Frame-e4mMzlVI.js","DynamicMarkdown-oxDihwef.js","zoom-image-lightbox-DCI5xCVC.js","lightbox-handle-r17bVUz3.js"]}