Issues a fresh §9.3(b) label for the binding identified by (UUID from the mint response). The prior label is invalidated immediately. The new label is returned once; it is never logged. Returns only endpoint_id_label (connect_secret is not rotated; it stays fixed per binding).
POST
/
enforcement-endpoints
/
{id}
/
rotate
Signed curl (wire shape)
# Signed headers are per-request — compute with the SDK (Node tab). Body is {}.curl -X POST https://phosra-api-sandbox-production.up.railway.app/api/v1/enforcement-endpoints/c8ff82dd-4aa8-4a52-a235-ae13717eb4c8/rotate \ -H "Content-Type: application/json" \ -H "OCSS-Spec-Version: OCSS-v1.0-pre" \ -H 'Signature-Input: ocss=("@method" "@target-uri" "ocss-spec-version" "content-digest");created=1783315514;keyid="did:ocss:loopline#2026-06";alg="ed25519"' \ -H 'Signature: ocss=:<base64-ed25519-sig>:' \ -H 'Content-Digest: sha-256=:<base64-sha256-of-body>:' \ -d '{}'
import { signRequest } from "@openchildsafety/ocss"
const BASE = "https://phosra-api-sandbox-production.up.railway.app/api/v1"
const seed = new Uint8Array(Buffer.from("bG9vcGxpbmUBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQE", "base64url"))
const keyID = "did:ocss:loopline#2026-06"
const bindingId = "c8ff82dd-4aa8-4a52-a235-ae13717eb4c8"
const t = `${BASE}/enforcement-endpoints/${bindingId}/rotate`
const h = signRequest({ method: "POST", targetURI: t, body: new TextEncoder().encode("{}"), keyID, seed, created: Math.floor(Date.now() / 1000) })
h["Content-Type"] = "application/json"
const res = await fetch(t, { method: "POST", headers: h, body: "{}" })
console.log(res.status, await res.json())
Issues a fresh §9.3(b) label for the binding identified by {id} (the binding_id from
the bind response). The prior label is invalidated
immediately — a subsequent profile GET on the old label returns 404. Only
endpoint_id_label is returned; the connect_secret is not rotated (it stays fixed per
binding).Rotate on your window cadence to keep the bound-resolver label short-lived. Because rotation is
atomic and the old label dies instantly, poll the new label before discarding the old one only
if you cannot tolerate a single missed cycle.
Worked example
import { signRequest } from "@openchildsafety/ocss"const BASE = "https://phosra-api-sandbox-production.up.railway.app/api/v1"const seed = new Uint8Array(Buffer.from("bG9vcGxpbmUBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQE", "base64url"))const keyID = "did:ocss:loopline#2026-06"const bindingId = "c8ff82dd-4aa8-4a52-a235-ae13717eb4c8" // from the bind responseconst targetURI = `${BASE}/enforcement-endpoints/${bindingId}/rotate`const headers = signRequest({ method: "POST", targetURI, body: new TextEncoder().encode("{}"), keyID, seed, created: Math.floor(Date.now() / 1000) })headers["Content-Type"] = "application/json"const res = await fetch(targetURI, { method: "POST", headers, body: "{}" })console.log(res.status, await res.json())
# sign_request(...) — the signer from /concepts/signing-requests.import requestsBASE = "https://phosra-api-sandbox-production.up.railway.app/api/v1"SEED = "bG9vcGxpbmUBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQE"KEYID = "did:ocss:loopline#2026-06"binding_id = "c8ff82dd-4aa8-4a52-a235-ae13717eb4c8" # from the bind responseurl = f"{BASE}/enforcement-endpoints/{binding_id}/rotate"body = b"{}" # rotate has an empty JSON bodyh = sign_request("POST", url, KEYID, SEED, body)h["Content-Type"] = "application/json"res = requests.post(url, data=body, headers=h)print(res.status_code, res.json()) # -> 200 { endpoint_id_label }
// SignRequest(...) — the stdlib signer from /concepts/signing-requests.package mainimport ( "bytes"; "fmt"; "io"; "net/http")func main() { const ( base = "https://phosra-api-sandbox-production.up.railway.app/api/v1" seed = "bG9vcGxpbmUBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQE" keyID = "did:ocss:loopline#2026-06" bindingID = "c8ff82dd-4aa8-4a52-a235-ae13717eb4c8" // from the bind response ) url := base + "/enforcement-endpoints/" + bindingID + "/rotate" body := []byte("{}") // rotate has an empty JSON body h, _ := SignRequest("POST", url, keyID, seed, body) req, _ := http.NewRequest("POST", url, bytes.NewReader(body)) for k, v := range h { req.Header.Set(k, v) } req.Header.Set("Content-Type", "application/json") resp, _ := http.DefaultClient.Do(req) defer resp.Body.Close() b, _ := io.ReadAll(resp.Body) fmt.Println(resp.StatusCode, string(b)) // -> 200 { endpoint_id_label }}
# Runnable signed openssl script: /concepts/signing-requests (swap the POST target for this# rotate URL and use an empty body `{}`). Wire shape of the four headers:curl -X POST https://phosra-api-sandbox-production.up.railway.app/api/v1/enforcement-endpoints/c8ff82dd-4aa8-4a52-a235-ae13717eb4c8/rotate \ -H "Content-Type: application/json" \ -H "OCSS-Spec-Version: OCSS-v1.0-pre" \ -H 'Content-Digest: sha-256=:<std-base64 sha256("{}")>:' \ -H 'Signature-Input: ocss=("@method" "@target-uri" "ocss-spec-version" "content-digest");created=1783315514;keyid="did:ocss:loopline#2026-06";alg="ed25519"' \ -H 'Signature: ocss=:<std-base64 ed25519-sig>:' \ -d '{}'
The sign_request / SignRequest helper is defined once in the
request-signing guide — its Python, Go, and curl+openssl
recipes are verified against this sandbox. Even an empty-body POST covers content-digest
(over the bytes {}).
Real 200 response (captured from the hosted sandbox):
Rotated. New label replaces the prior one immediately.
Binding rotation result. Source: EndpointHandlers.Rotate response in internal/ocsshttp/handler_endpoints.go. Returns a fresh label only.
endpoint_id_label
string
required
Rotated high-entropy §9.3(b) label. Replaces the prior label immediately; the prior label returns 404 after rotation. Never log.
{"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.4448","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":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"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":"api-reference/data-plane/rotate-endpoint","slug":"/api-reference/data-plane/rotate-endpoint","pageMetadata":{"title":"Rotate a bound endpoint's label","openapi":"POST /enforcement-endpoints/{id}/rotate","description":"Issues a fresh §9.3(b) label for the binding identified by {id} (UUID from the mint response). The prior label is invalidated immediately. The new label is returned once; it is never logged. Returns only endpoint_id_label (connect_secret is not rotated; it stays fixed per binding).\n","href":"/api-reference/data-plane/rotate-endpoint"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_components.p, {\n children: [\"Issues a fresh §9.3(b) label for the binding identified by \", \" (UUID from the mint response). The prior label is invalidated immediately. The new label is returned once; it is never logged. Returns only endpoint_id_label (connect_secret is not rotated; it stays fixed per binding).\"]\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`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,..._provideComponents(),...props.components},{CodeBlock,CodeGroup,Heading,Note}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!CodeGroup)_missingMdxReference(`CodeGroup`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Issues a `,_jsx(_components.strong,{children:`fresh §9.3(b) label`}),` for the binding identified by `,_jsx(_components.code,{children:`{id}`}),` (the `,_jsx(_components.code,{children:`binding_id`}),` from\n`,_jsx(_components.a,{href:`/api-reference/data-plane/bind-endpoint`,children:`the bind response`}),`). The prior label is invalidated\n`,_jsx(_components.strong,{children:`immediately`}),` — a subsequent profile GET on the old label returns `,_jsx(_components.code,{children:`404`}),`. Only\n`,_jsx(_components.code,{children:`endpoint_id_label`}),` is returned; the `,_jsx(_components.code,{children:`connect_secret`}),` is `,_jsx(_components.strong,{children:`not`}),` rotated (it stays fixed per\nbinding).`]}),`\n`,_jsx(_components.p,{children:`Rotate on your window cadence to keep the bound-resolver label short-lived. Because rotation is\natomic and the old label dies instantly, poll the new label before discarding the old one only\nif you cannot tolerate a single missed cycle.`}),`\n`,_jsx(Heading,{level:`2`,id:`worked-example`,children:`Worked example`}),`\n`,_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`Node`,numberOfLines:`13`,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:`13`,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:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`signRequest`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"@openchildsafety/ocss\"`})]}),`\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:` 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/api/v1\"`})]}),`\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:` seed`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` Uint8Array`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Buffer`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`from`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"bG9vcGxpbmUBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQE\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"base64url\"`}),_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:` keyID`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"did:ocss:loopline#2026-06\"`})]}),`\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:` bindingId`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"c8ff82dd-4aa8-4a52-a235-ae13717eb4c8\"`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // from the bind response`})]}),`\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:` targetURI`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--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:`/enforcement-endpoints/`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`bindingId`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"/rotate`\"})]}),`\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:` headers`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` signRequest`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},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:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`targetURI`}),_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:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` TextEncoder`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`().`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`encode`}),_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:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`), `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`keyID`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`seed`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`created:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` Math`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`floor`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Date`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`now`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`() `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`/`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 1000`}),_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\":`#D4D4D4`},children:`] `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"application/json\"`})]}),`\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:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`targetURI`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},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:`, `}),_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:`body:`}),_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\":`#9CDCFE`},children:`console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},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:`status`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--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(CodeBlock,{filename:`Python`,numberOfLines:`14`,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:`14`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# sign_request(...) — the signer from /concepts/signing-requests.`})}),`\n`,_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/api/v1\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:`SEED`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"bG9vcGxpbmUBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQE\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:`KEYID`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"did:ocss:loopline#2026-06\"`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`binding_id `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"c8ff82dd-4aa8-4a52-a235-ae13717eb4c8\"`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # from the bind response`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`url `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--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:`\"`}),_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:`/enforcement-endpoints/`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`binding_id`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`/rotate\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`body `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` b`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"{}\"`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # rotate has an empty JSON body`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`h `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` sign_request(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"POST\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, url, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:`KEYID`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:`SEED`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, body)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`h[`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Content-Type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`] `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"application/json\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`res `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` requests.post(url, `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`data`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`body, `}),_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:`h)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`print`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(res.status_code, res.json()) `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# -> 200 { endpoint_id_label }`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`Go`,numberOfLines:`27`,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:`27`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// SignRequest(...) — the stdlib signer from /concepts/signing-requests.`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`package`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` main`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_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:` (`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\t\"`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#CE9178`},children:`bytes`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_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:`#953800`,\"--shiki-dark\":`#CE9178`},children:`fmt`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_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:`#953800`,\"--shiki-dark\":`#CE9178`},children:`io`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_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:`#953800`,\"--shiki-dark\":`#CE9178`},children:`net/http`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_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:`func`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` main`}),_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:`\tconst`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`\t\tbase`}),_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/api/v1\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`\t\tseed`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"bG9vcGxpbmUBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQE\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`\t\tkeyID`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"did:ocss:loopline#2026-06\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`\t\tbindingID`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"c8ff82dd-4aa8-4a52-a235-ae13717eb4c8\"`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // from the bind response`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`\t)`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`\turl`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--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:` \"/enforcement-endpoints/\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` +`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` bindingID`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` +`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"/rotate\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`\tbody`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` :=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` []`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#4EC9B0`},children:`byte`}),_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:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// rotate has an empty JSON body`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`\th`}),_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:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` SignRequest`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"POST\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`url`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`keyID`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`seed`}),_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:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`\treq`}),_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:`\"POST\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`url`}),_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:`\tfor`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` k`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`v`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` :=`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` range`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` h`}),_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:`\t\treq`}),_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:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`k`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`v`}),_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:`\t}`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`\treq`}),_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:`\"Content-Type\"`}),_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:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`\tresp`}),_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:`\tdefer`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` resp`}),_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`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`\tb`}),_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:` io`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`ReadAll`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`resp`}),_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:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`\tfmt`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`Println`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`resp`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`StatusCode`}),_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:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`b`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)) `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// -> 200 { endpoint_id_label }`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`curl + openssl`,numberOfLines:`9`,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:`9`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Runnable signed openssl script: /concepts/signing-requests (swap the POST target for this`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:\"# rotate URL and use an empty body `{}`). Wire shape of the four headers:\"})}),`\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:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://phosra-api-sandbox-production.up.railway.app/api/v1/enforcement-endpoints/c8ff82dd-4aa8-4a52-a235-ae13717eb4c8/rotate`}),_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:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"OCSS-Spec-Version: OCSS-v1.0-pre\"`}),_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-Digest: sha-256=:\u003cstd-base64 sha256(\"{}\")>:'`}),_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:` 'Signature-Input: ocss=(\"@method\" \"@target-uri\" \"ocss-spec-version\" \"content-digest\");created=1783315514;keyid=\"did:ocss:loopline#2026-06\";alg=\"ed25519\"'`}),_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:` 'Signature: ocss=:\u003cstd-base64 ed25519-sig>:'`}),_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`]})})})]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`The `,_jsx(_components.code,{children:`sign_request`}),` / `,_jsx(_components.code,{children:`SignRequest`}),` helper is defined once in the\n`,_jsx(_components.a,{href:`/concepts/signing-requests`,children:_jsx(_components.strong,{children:`request-signing guide`})}),` — its Python, Go, and `,_jsx(_components.code,{children:`curl+openssl`}),`\nrecipes are verified against this sandbox. Even an empty-body `,_jsx(_components.code,{children:`POST`}),` covers `,_jsx(_components.code,{children:`content-digest`}),`\n(over the bytes `,_jsx(_components.code,{children:`{}`}),`).`]})}),`\n`,_jsxs(_components.p,{children:[_jsxs(_components.strong,{children:[`Real `,_jsx(_components.code,{children:`200`}),` response`]}),` (captured from the hosted sandbox):`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,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:`3`,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:` \"endpoint_id_label\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"cOxEaug6hEkbx8lYQOM8NiBtLknSSup5zqXvMjRfHa8\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`The prior label (`,_jsx(_components.code,{children:`iGrFqzp4…`}),`) now returns `,_jsx(_components.code,{children:`404`}),` on\n`,_jsx(_components.a,{href:`/api-reference/data-plane/fetch-profile`,children:_jsx(_components.code,{children:`GET /enforcement-profiles/{endpoint_id}`})}),`.`]})]})}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":"Rotate a bound endpoint's label","openapi":"POST /enforcement-endpoints/{id}/rotate","description":"Issues a fresh §9.3(b) label for the binding identified by {id} (UUID from the mint response). The prior label is invalidated immediately. The new label is returned once; it is never logged. Returns only endpoint_id_label (connect_secret is not rotated; it stays fixed per binding).\n","href":"/api-reference/data-plane/rotate-endpoint"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Worked example","slug":"worked-example","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"operationId":"rotateABoundEndpointSLabel","summary":"Rotate a bound endpoint's label","x-codeSamples":[{"lang":"Shell","label":"Signed curl (wire shape)","source":"# Signed headers are per-request — compute with the SDK (Node tab). Body is {}.\ncurl -X POST https://phosra-api-sandbox-production.up.railway.app/api/v1/enforcement-endpoints/c8ff82dd-4aa8-4a52-a235-ae13717eb4c8/rotate \\\n -H \"Content-Type: application/json\" \\\n -H \"OCSS-Spec-Version: OCSS-v1.0-pre\" \\\n -H 'Signature-Input: ocss=(\"@method\" \"@target-uri\" \"ocss-spec-version\" \"content-digest\");created=1783315514;keyid=\"did:ocss:loopline#2026-06\";alg=\"ed25519\"' \\\n -H 'Signature: ocss=:\u003cbase64-ed25519-sig>:' \\\n -H 'Content-Digest: sha-256=:\u003cbase64-sha256-of-body>:' \\\n -d '{}'\n"},{"lang":"JavaScript","label":"Node (@openchildsafety/ocss)","source":"import { signRequest } from \"@openchildsafety/ocss\"\nconst BASE = \"https://phosra-api-sandbox-production.up.railway.app/api/v1\"\nconst seed = new Uint8Array(Buffer.from(\"bG9vcGxpbmUBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQE\", \"base64url\"))\nconst keyID = \"did:ocss:loopline#2026-06\"\nconst bindingId = \"c8ff82dd-4aa8-4a52-a235-ae13717eb4c8\"\nconst t = `${BASE}/enforcement-endpoints/${bindingId}/rotate`\nconst h = signRequest({ method: \"POST\", targetURI: t, body: new TextEncoder().encode(\"{}\"), keyID, seed, created: Math.floor(Date.now() / 1000) })\nh[\"Content-Type\"] = \"application/json\"\nconst res = await fetch(t, { method: \"POST\", headers: h, body: \"{}\" })\nconsole.log(res.status, await res.json())\n"}],"description":"Issues a fresh §9.3(b) label for the binding identified by {id} (UUID from the mint response). The prior label is invalidated immediately. The new label is returned once; it is never logged. Returns only endpoint_id_label (connect_secret is not rotated; it stays fixed per binding).\n","security":["0cbd641c-aa28-4506-ac17-7562dd1ff1f7"],"parameters":["b5d65947-38be-4e2b-b872-71f37b644828"],"responses":{"200":"afce7985-001e-4eae-8a1d-3d424be2a8d9","400":"b7bb84e2-191f-4544-a704-b4affd47f966","401":"352a1848-f181-453c-9e60-9cfb6faefb4c","404":"2955cc36-c651-46c5-80aa-544816433e5b","429":"183a59ec-0dee-4e70-bca4-b64f4ecabc1f","500":"44405e95-8e3a-44cc-981b-1d4ea01e86de","502":"1c4cf6fb-8964-47aa-9000-1fca2cf95a38","503":"84d6d9e2-2984-4ab3-bb65-bf09f6e5f9eb"},"method":"post","type":"path","servers":["80f99c4a-8ea0-43d8-a800-e96bbec42f44","212446b0-9316-452e-bd75-aeede228d70c"],"path":"/enforcement-endpoints/{id}/rotate","baseUrlOptions":["https://phosra-api-sandbox-production.up.railway.app/api/v1","http://localhost:8080/api/v1"],"title":"Rotate a bound endpoint's label","codeSamples":[{"label":"Signed curl (wire shape)","lang":"Shell","source":"# Signed headers are per-request — compute with the SDK (Node tab). Body is {}.\ncurl -X POST https://phosra-api-sandbox-production.up.railway.app/api/v1/enforcement-endpoints/c8ff82dd-4aa8-4a52-a235-ae13717eb4c8/rotate \\\n -H \"Content-Type: application/json\" \\\n -H \"OCSS-Spec-Version: OCSS-v1.0-pre\" \\\n -H 'Signature-Input: ocss=(\"@method\" \"@target-uri\" \"ocss-spec-version\" \"content-digest\");created=1783315514;keyid=\"did:ocss:loopline#2026-06\";alg=\"ed25519\"' \\\n -H 'Signature: ocss=:\u003cbase64-ed25519-sig>:' \\\n -H 'Content-Digest: sha-256=:\u003cbase64-sha256-of-body>:' \\\n -d '{}'\n"},{"label":"Node (@openchildsafety/ocss)","lang":"JavaScript","source":"import { signRequest } from \"@openchildsafety/ocss\"\nconst BASE = \"https://phosra-api-sandbox-production.up.railway.app/api/v1\"\nconst seed = new Uint8Array(Buffer.from(\"bG9vcGxpbmUBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQE\", \"base64url\"))\nconst keyID = \"did:ocss:loopline#2026-06\"\nconst bindingId = \"c8ff82dd-4aa8-4a52-a235-ae13717eb4c8\"\nconst t = `${BASE}/enforcement-endpoints/${bindingId}/rotate`\nconst h = signRequest({ method: \"POST\", targetURI: t, body: new TextEncoder().encode(\"{}\"), keyID, seed, created: Math.floor(Date.now() / 1000) })\nh[\"Content-Type\"] = \"application/json\"\nconst res = await fetch(t, { method: \"POST\", headers: h, body: \"{}\" })\nconsole.log(res.status, await res.json())\n"}],"requiredOnlyExamples":false,"requestExampleType":"codeSamples","responseExampleType":"generated"},"dependencies":{"parameters":{"b5d65947-38be-4e2b-b872-71f37b644828":{"name":"id","in":"path","required":true,"description":"Binding UUID from the mint response (binding_id).","schema":{"type":"string","format":"uuid","isRequired":true,"description":"Binding UUID from the mint response (binding_id).","uniqueKey":"","typeLabel":"string\u003cuuid>"}}},"responses":{"afce7985-001e-4eae-8a1d-3d424be2a8d9":{"description":"Rotated. New label replaces the prior one immediately.","content":{"application/json":{"schema":{"type":"object","description":"Binding rotation result. Source: EndpointHandlers.Rotate response in internal/ocsshttp/handler_endpoints.go. Returns a fresh label only.\n","required":["endpoint_id_label"],"properties":{"endpoint_id_label":{"type":"string","description":"Rotated high-entropy §9.3(b) label. Replaces the prior label immediately; the prior label returns 404 after rotation. Never log.\n","isRequired":true,"uniqueKey":"endpoint_id_label","typeLabel":"string"}},"additionalProperties":true,"uniqueKey":"","typeLabel":"object"},"example":{"endpoint_id_label":"a-bmtAOYzb-Yhhnw11lZtOLFPwD_ms0fnRNQnNgRe-Q"},"examples":{"Example":{"title":"Example","value":{"endpoint_id_label":"a-bmtAOYzb-Yhhnw11lZtOLFPwD_ms0fnRNQnNgRe-Q"}}},"exampleType":"examples"}},"exampleType":"examples"},"b7bb84e2-191f-4544-a704-b4affd47f966":{"description":"The path `id` is not a well-formed UUID. `class` is `malformed`.","content":{"application/json":{"schema":{"type":"object","description":"Standard error envelope returned for every 4xx and 5xx response.","properties":{"error":{"type":"string","description":"Short, stable, machine-readable error class — matches the HTTP status text (e.g. `Not Found`).","uniqueKey":"error","typeLabel":"string"},"message":{"type":"string","description":"Human-readable explanation of what went wrong and, where possible, how to fix it.","uniqueKey":"message","typeLabel":"string"},"code":{"type":"integer","description":"Numeric HTTP status code, duplicated in the body for convenience.","uniqueKey":"code","typeLabel":"integer"},"class":{"type":"string","enum":["signature_invalid","nonconformant","replay","standing_failure","scope_failure","malformed","not_found"],"description":"Stable machine-readable error subclass for programmatic branching. Present on ALL seven published census (data-plane) error classes — 400⇒`malformed`, 401⇒`signature_invalid`, 403⇒`standing_failure`|`scope_failure`, 404⇒`not_found`, 409⇒`replay`, 422⇒`nonconformant`. ABSENT on the plain house 500, on control-plane/management errors, and on the compact sandbox-lane `{error:\"\u003ccode>\"}` bodies (OAuth + sandbox consent).\n","uniqueKey":"class","typeLabel":"enum\u003cstring>"},"failed_step":{"type":"string","description":"Present only on a §8.3.1 standing failure (`class:standing_failure`) — names the §6.2 step that failed, e.g. `authority_binding`.\n","uniqueKey":"failed_step","typeLabel":"string"}},"example":{"error":"Not Found","message":"unknown enforcement endpoint","code":404,"class":"not_found"},"additionalProperties":true,"uniqueKey":"","typeLabel":"object"},"example":{"error":"Bad Request","message":"id must be a uuid","code":400,"class":"malformed"},"examples":{"Example":{"title":"Example","value":{"error":"Bad Request","message":"id must be a uuid","code":400,"class":"malformed"}}},"exampleType":"examples"}},"exampleType":"examples"},"352a1848-f181-453c-9e60-9cfb6faefb4c":{"description":"RFC 9421 message-signature authentication failed. Every data-plane call must carry exactly one `Signature-Input` and one `Signature` header computed over the request with your Trust-List-published Ed25519 key. `class` is `signature_invalid`.\n","content":{"application/json":{"schema":{"type":"object","description":"Standard error envelope returned for every 4xx and 5xx response.","properties":{"error":{"type":"string","description":"Short, stable, machine-readable error class — matches the HTTP status text (e.g. `Not Found`).","uniqueKey":"error","typeLabel":"string"},"message":{"type":"string","description":"Human-readable explanation of what went wrong and, where possible, how to fix it.","uniqueKey":"message","typeLabel":"string"},"code":{"type":"integer","description":"Numeric HTTP status code, duplicated in the body for convenience.","uniqueKey":"code","typeLabel":"integer"},"class":{"type":"string","enum":["signature_invalid","nonconformant","replay","standing_failure","scope_failure","malformed","not_found"],"description":"Stable machine-readable error subclass for programmatic branching. Present on ALL seven published census (data-plane) error classes — 400⇒`malformed`, 401⇒`signature_invalid`, 403⇒`standing_failure`|`scope_failure`, 404⇒`not_found`, 409⇒`replay`, 422⇒`nonconformant`. ABSENT on the plain house 500, on control-plane/management errors, and on the compact sandbox-lane `{error:\"\u003ccode>\"}` bodies (OAuth + sandbox consent).\n","uniqueKey":"class","typeLabel":"enum\u003cstring>"},"failed_step":{"type":"string","description":"Present only on a §8.3.1 standing failure (`class:standing_failure`) — names the §6.2 step that failed, e.g. `authority_binding`.\n","uniqueKey":"failed_step","typeLabel":"string"}},"example":{"error":"Not Found","message":"unknown enforcement endpoint","code":404,"class":"not_found"},"additionalProperties":true,"uniqueKey":"","typeLabel":"object"},"example":{"error":"Unauthorized","message":"exactly one Signature-Input and one Signature header are required","code":401,"class":"signature_invalid"},"examples":{"Example":{"title":"Example","value":{"error":"Unauthorized","message":"exactly one Signature-Input and one Signature header are required","code":401,"class":"signature_invalid"}}},"exampleType":"examples"}},"exampleType":"examples"},"2955cc36-c651-46c5-80aa-544816433e5b":{"description":"No binding exists for this UUID. `class` is `not_found`.","content":{"application/json":{"schema":{"type":"object","description":"Standard error envelope returned for every 4xx and 5xx response.","properties":{"error":{"type":"string","description":"Short, stable, machine-readable error class — matches the HTTP status text (e.g. `Not Found`).","uniqueKey":"error","typeLabel":"string"},"message":{"type":"string","description":"Human-readable explanation of what went wrong and, where possible, how to fix it.","uniqueKey":"message","typeLabel":"string"},"code":{"type":"integer","description":"Numeric HTTP status code, duplicated in the body for convenience.","uniqueKey":"code","typeLabel":"integer"},"class":{"type":"string","enum":["signature_invalid","nonconformant","replay","standing_failure","scope_failure","malformed","not_found"],"description":"Stable machine-readable error subclass for programmatic branching. Present on ALL seven published census (data-plane) error classes — 400⇒`malformed`, 401⇒`signature_invalid`, 403⇒`standing_failure`|`scope_failure`, 404⇒`not_found`, 409⇒`replay`, 422⇒`nonconformant`. ABSENT on the plain house 500, on control-plane/management errors, and on the compact sandbox-lane `{error:\"\u003ccode>\"}` bodies (OAuth + sandbox consent).\n","uniqueKey":"class","typeLabel":"enum\u003cstring>"},"failed_step":{"type":"string","description":"Present only on a §8.3.1 standing failure (`class:standing_failure`) — names the §6.2 step that failed, e.g. `authority_binding`.\n","uniqueKey":"failed_step","typeLabel":"string"}},"example":{"error":"Not Found","message":"unknown enforcement endpoint","code":404,"class":"not_found"},"additionalProperties":true,"uniqueKey":"","typeLabel":"object"},"example":{"error":"Not Found","message":"unknown enforcement endpoint","code":404,"class":"not_found"},"examples":{"Example":{"title":"Example","value":{"error":"Not Found","message":"unknown enforcement endpoint","code":404,"class":"not_found"}}},"exampleType":"examples"}},"exampleType":"examples"},"183a59ec-0dee-4e70-bca4-b64f4ecabc1f":{"description":"Too many requests. Back off and retry after the interval given in the `Retry-After` response header.","content":{"application/json":{"schema":{"type":"object","description":"Standard error envelope returned for every 4xx and 5xx response.","properties":{"error":{"type":"string","description":"Short, stable, machine-readable error class — matches the HTTP status text (e.g. `Not Found`).","uniqueKey":"error","typeLabel":"string"},"message":{"type":"string","description":"Human-readable explanation of what went wrong and, where possible, how to fix it.","uniqueKey":"message","typeLabel":"string"},"code":{"type":"integer","description":"Numeric HTTP status code, duplicated in the body for convenience.","uniqueKey":"code","typeLabel":"integer"},"class":{"type":"string","enum":["signature_invalid","nonconformant","replay","standing_failure","scope_failure","malformed","not_found"],"description":"Stable machine-readable error subclass for programmatic branching. Present on ALL seven published census (data-plane) error classes — 400⇒`malformed`, 401⇒`signature_invalid`, 403⇒`standing_failure`|`scope_failure`, 404⇒`not_found`, 409⇒`replay`, 422⇒`nonconformant`. ABSENT on the plain house 500, on control-plane/management errors, and on the compact sandbox-lane `{error:\"\u003ccode>\"}` bodies (OAuth + sandbox consent).\n","uniqueKey":"class","typeLabel":"enum\u003cstring>"},"failed_step":{"type":"string","description":"Present only on a §8.3.1 standing failure (`class:standing_failure`) — names the §6.2 step that failed, e.g. `authority_binding`.\n","uniqueKey":"failed_step","typeLabel":"string"}},"example":{"error":"Not Found","message":"unknown enforcement endpoint","code":404,"class":"not_found"},"additionalProperties":true,"uniqueKey":"","typeLabel":"object"},"example":{"error":"Too Many Requests","message":"rate limit exceeded","code":429},"examples":{"Example":{"title":"Example","value":{"error":"Too Many Requests","message":"rate limit exceeded","code":429}}},"exampleType":"examples"}},"exampleType":"examples"},"44405e95-8e3a-44cc-981b-1d4ea01e86de":{"description":"An unexpected error occurred inside Phosra. The request is safe to retry with exponential backoff; contact support if it persists.","content":{"application/json":{"schema":{"type":"object","description":"Standard error envelope returned for every 4xx and 5xx response.","properties":{"error":{"type":"string","description":"Short, stable, machine-readable error class — matches the HTTP status text (e.g. `Not Found`).","uniqueKey":"error","typeLabel":"string"},"message":{"type":"string","description":"Human-readable explanation of what went wrong and, where possible, how to fix it.","uniqueKey":"message","typeLabel":"string"},"code":{"type":"integer","description":"Numeric HTTP status code, duplicated in the body for convenience.","uniqueKey":"code","typeLabel":"integer"},"class":{"type":"string","enum":["signature_invalid","nonconformant","replay","standing_failure","scope_failure","malformed","not_found"],"description":"Stable machine-readable error subclass for programmatic branching. Present on ALL seven published census (data-plane) error classes — 400⇒`malformed`, 401⇒`signature_invalid`, 403⇒`standing_failure`|`scope_failure`, 404⇒`not_found`, 409⇒`replay`, 422⇒`nonconformant`. ABSENT on the plain house 500, on control-plane/management errors, and on the compact sandbox-lane `{error:\"\u003ccode>\"}` bodies (OAuth + sandbox consent).\n","uniqueKey":"class","typeLabel":"enum\u003cstring>"},"failed_step":{"type":"string","description":"Present only on a §8.3.1 standing failure (`class:standing_failure`) — names the §6.2 step that failed, e.g. `authority_binding`.\n","uniqueKey":"failed_step","typeLabel":"string"}},"example":{"error":"Not Found","message":"unknown enforcement endpoint","code":404,"class":"not_found"},"additionalProperties":true,"uniqueKey":"","typeLabel":"object"},"example":{"error":"Internal Server Error","message":"internal error","code":500},"examples":{"Example":{"title":"Example","value":{"error":"Internal Server Error","message":"internal error","code":500}}},"exampleType":"examples"}},"exampleType":"examples"},"1c4cf6fb-8964-47aa-9000-1fca2cf95a38":{"description":"A downstream provider returned an invalid response while Phosra was fulfilling the request. Retry with backoff.","content":{"application/json":{"schema":{"type":"object","description":"Standard error envelope returned for every 4xx and 5xx response.","properties":{"error":{"type":"string","description":"Short, stable, machine-readable error class — matches the HTTP status text (e.g. `Not Found`).","uniqueKey":"error","typeLabel":"string"},"message":{"type":"string","description":"Human-readable explanation of what went wrong and, where possible, how to fix it.","uniqueKey":"message","typeLabel":"string"},"code":{"type":"integer","description":"Numeric HTTP status code, duplicated in the body for convenience.","uniqueKey":"code","typeLabel":"integer"},"class":{"type":"string","enum":["signature_invalid","nonconformant","replay","standing_failure","scope_failure","malformed","not_found"],"description":"Stable machine-readable error subclass for programmatic branching. Present on ALL seven published census (data-plane) error classes — 400⇒`malformed`, 401⇒`signature_invalid`, 403⇒`standing_failure`|`scope_failure`, 404⇒`not_found`, 409⇒`replay`, 422⇒`nonconformant`. ABSENT on the plain house 500, on control-plane/management errors, and on the compact sandbox-lane `{error:\"\u003ccode>\"}` bodies (OAuth + sandbox consent).\n","uniqueKey":"class","typeLabel":"enum\u003cstring>"},"failed_step":{"type":"string","description":"Present only on a §8.3.1 standing failure (`class:standing_failure`) — names the §6.2 step that failed, e.g. `authority_binding`.\n","uniqueKey":"failed_step","typeLabel":"string"}},"example":{"error":"Not Found","message":"unknown enforcement endpoint","code":404,"class":"not_found"},"additionalProperties":true,"uniqueKey":"","typeLabel":"object"},"example":{"error":"Bad Gateway","message":"downstream provider error","code":502},"examples":{"Example":{"title":"Example","value":{"error":"Bad Gateway","message":"downstream provider error","code":502}}},"exampleType":"examples"}},"exampleType":"examples"},"84d6d9e2-2984-4ab3-bb65-bf09f6e5f9eb":{"description":"The census operation is not yet available on this deployment (feature-gated surface). Retry later.\n","content":{"application/json":{"schema":{"type":"object","description":"Standard error envelope returned for every 4xx and 5xx response.","properties":{"error":{"type":"string","description":"Short, stable, machine-readable error class — matches the HTTP status text (e.g. `Not Found`).","uniqueKey":"error","typeLabel":"string"},"message":{"type":"string","description":"Human-readable explanation of what went wrong and, where possible, how to fix it.","uniqueKey":"message","typeLabel":"string"},"code":{"type":"integer","description":"Numeric HTTP status code, duplicated in the body for convenience.","uniqueKey":"code","typeLabel":"integer"},"class":{"type":"string","enum":["signature_invalid","nonconformant","replay","standing_failure","scope_failure","malformed","not_found"],"description":"Stable machine-readable error subclass for programmatic branching. Present on ALL seven published census (data-plane) error classes — 400⇒`malformed`, 401⇒`signature_invalid`, 403⇒`standing_failure`|`scope_failure`, 404⇒`not_found`, 409⇒`replay`, 422⇒`nonconformant`. ABSENT on the plain house 500, on control-plane/management errors, and on the compact sandbox-lane `{error:\"\u003ccode>\"}` bodies (OAuth + sandbox consent).\n","uniqueKey":"class","typeLabel":"enum\u003cstring>"},"failed_step":{"type":"string","description":"Present only on a §8.3.1 standing failure (`class:standing_failure`) — names the §6.2 step that failed, e.g. `authority_binding`.\n","uniqueKey":"failed_step","typeLabel":"string"}},"example":{"error":"Not Found","message":"unknown enforcement endpoint","code":404,"class":"not_found"},"additionalProperties":true,"uniqueKey":"","typeLabel":"object"},"example":{"error":"Service Unavailable","message":"census operation not yet available","code":503},"examples":{"Example":{"title":"Example","value":{"error":"Service Unavailable","message":"census operation not yet available","code":503}}},"exampleType":"examples"}},"exampleType":"examples"}},"security":{"0cbd641c-aa28-4506-ac17-7562dd1ff1f7":{"Rfc9421Signature":{"type":"http","scheme":"signature","description":"RFC 9421 message signature (Ed25519). The sender signs the request with its Trust-List-published key; the census verifies provenance and accreditation tier before processing. Used for POST enforcement-endpoints (binding mint), POST enforcement-endpoints/{id}/rotate, and POST enforcement-confirmations. Profile GETs (GET /enforcement-profiles/{endpoint_id}) also require the resolver's RFC 9421 signature — the §9.3(b) bound-resolver auth.\n","scopes":[]}}},"servers":{"80f99c4a-8ea0-43d8-a800-e96bbec42f44":{"url":"https://phosra-api-sandbox-production.up.railway.app/api/v1","description":"Hosted sandbox — the one canonical, stable, partner-facing testing endpoint"},"212446b0-9316-452e-bd75-aeede228d70c":{"url":"http://localhost:8080/api/v1","description":"Local development"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"signature","description":"RFC 9421 message signature (Ed25519). The sender signs the request with its Trust-List-published key; the census verifies provenance and accreditation tier before processing. Used for POST enforcement-endpoints (binding mint), POST enforcement-endpoints/{id}/rotate, and POST enforcement-confirmations. Profile GETs (GET /enforcement-profiles/{endpoint_id}) also require the resolver's RFC 9421 signature — the §9.3(b) bound-resolver auth.\n","scopes":[]},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"RFC 9421 message signature (Ed25519). The sender signs the request with its Trust-List-published key; the census verifies provenance and accreditation tier before processing. Used for POST enforcement-endpoints (binding mint), POST enforcement-endpoints/{id}/rotate, and POST enforcement-confirmations. Profile GETs (GET /enforcement-profiles/{endpoint_id}) also require the resolver's RFC 9421 signature — the §9.3(b) bound-resolver auth.\n","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"Rfc9421Signature","name":"Authorization"}],"title":"Rfc9421Signature"}]},"originalFileLocation":"openapi.data-plane.yaml"},"subdomain":"phosra","siteName":"Phosra Developer Docs","title":"Rotate a bound endpoint's label - Phosra Developer Docs","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-07-06T15:28:13.552Z","originalFileLocation":"api-reference/data-plane/rotate-endpoint.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=\"Issues a fresh §9.3(b) label for the binding identified by {id} (UUID from the mint response). The prior label is invalidated immediately. The new label is returned once; it is never logged. Returns only endpoint_id_label (connect_secret is not rotated; it stays fixed per binding).\">\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=\"Rotate a bound endpoint\u0026#x27;s label - Phosra Developer Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Issues a fresh §9.3(b) label for the binding identified by {id} (UUID from the mint response). The prior label is invalidated immediately. The new label is returned once; it is never logged. Returns only endpoint_id_label (connect_secret is not rotated; it stays fixed per binding).\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Phosra Developer Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.phosra.com/api-reference/data-plane/rotate-endpoint\">\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=OCSS+Data-Plane\u0026amp;title=Rotate+a+bound+endpoint%27s+label\u0026amp;description=Issues+a+fresh+%C2%A79.3%28b%29+label+for+the+binding+identified+by+%7Bid%7D+%28UUID+from+the+mint+response%29.+The+prior+label+is+invalidated+immediately.+The+new+label+is+retu\u0026amp;theme=538c0b8bfdd8852111572721\u0026amp;signature=b69c756acc03cba98356a2422f9ba5bde50761de5c2229d47abad90eb2b2f4ab\">\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=\"Rotate a bound endpoint\u0026#x27;s label - Phosra Developer Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Issues a fresh §9.3(b) label for the binding identified by {id} (UUID from the mint response). The prior label is invalidated immediately. The new label is returned once; it is never logged. Returns only endpoint_id_label (connect_secret is not rotated; it stays fixed per binding).\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://phosra.mintlify.site/_mintlify/api/og/v2?division=OCSS+Data-Plane\u0026amp;title=Rotate+a+bound+endpoint%27s+label\u0026amp;description=Issues+a+fresh+%C2%A79.3%28b%29+label+for+the+binding+identified+by+%7Bid%7D+%28UUID+from+the+mint+response%29.+The+prior+label+is+invalidated+immediately.+The+new+label+is+retu\u0026amp;theme=538c0b8bfdd8852111572721\u0026amp;signature=b69c756acc03cba98356a2422f9ba5bde50761de5c2229d47abad90eb2b2f4ab\">\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/api-reference/data-plane/rotate-endpoint\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/data-plane/rotate-endpoint.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/api-reference/data-plane/rotate-endpoint#webpage\",\"url\":\"https://docs.phosra.com/api-reference/data-plane/rotate-endpoint\",\"name\":\"Rotate a bound endpoint's label\",\"description\":\"Issues a fresh §9.3(b) label for the binding identified by {id} (UUID from the mint response). The prior label is invalidated immediately. The new label is returned once; it is never logged. Returns only endpoint_id_label (connect_secret is not rotated; it stays fixed per binding).\",\"dateModified\":\"2026-07-06T15:28:13.552Z\",\"isPartOf\":{\"@id\":\"https://docs.phosra.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.phosra.com/api-reference/data-plane/rotate-endpoint#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.phosra.com/api-reference/data-plane/rotate-endpoint#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Data Plane\",\"item\":\"https://docs.phosra.com/api-reference/data-plane/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"OCSS Data-Plane\",\"item\":\"https://docs.phosra.com/api-reference/data-plane/overview\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Rotate a bound endpoint's label\",\"item\":\"https://docs.phosra.com/api-reference/data-plane/rotate-endpoint\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.phosra.com/api-reference/data-plane/rotate-endpoint#apireference\",\"headline\":\"Rotate a bound endpoint's label\",\"name\":\"Rotate a bound endpoint's label\",\"description\":\"Issues a fresh §9.3(b) label for the binding identified by {id} (UUID from the mint response). The prior label is invalidated immediately. The new label is returned once; it is never logged. Returns only endpoint_id_label (connect_secret is not rotated; it stays fixed per binding).\",\"url\":\"https://docs.phosra.com/api-reference/data-plane/rotate-endpoint\",\"mainEntityOfPage\":{\"@id\":\"https://docs.phosra.com/api-reference/data-plane/rotate-endpoint#webpage\"},\"dateModified\":\"2026-07-06T15:28:13.552Z\",\"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":"/api-reference/data-plane/rotate-endpoint.md","siteName":"Phosra Developer Docs","nav":{"global":null,"anchors":[{"anchor":"Documentation","icon":"book-open","tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/introduction"}]},{"tab":"API Reference","groups":[{"group":"Reference","pages":[{"title":"API Reference","href":"/api-reference/overview"},{"title":"Sandbox test data","href":"/api-reference/sandbox-test-data"}]},{"group":"Control Plane","pages":[{"group":"Organizations","pages":[{"title":"Create organization","openapi":"POST /developers/orgs","href":"/api-reference/control-plane/create-org"},{"title":"List organizations","openapi":"GET /developers/orgs","href":"/api-reference/control-plane/list-orgs"},{"title":"Get organization","openapi":"GET /developers/orgs/{orgId}","href":"/api-reference/control-plane/get-org"},{"title":"Update organization","openapi":"PUT /developers/orgs/{orgId}","href":"/api-reference/control-plane/update-org"},{"title":"Delete organization","openapi":"DELETE /developers/orgs/{orgId}","href":"/api-reference/control-plane/delete-org"},{"title":"List members","openapi":"GET /developers/orgs/{orgId}/members","href":"/api-reference/control-plane/list-members"}]},{"group":"API Keys","pages":[{"title":"Create API key","openapi":"POST /developers/orgs/{orgId}/keys","href":"/api-reference/control-plane/create-key"},{"title":"List API keys","openapi":"GET /developers/orgs/{orgId}/keys","href":"/api-reference/control-plane/list-keys"},{"title":"Revoke API key","openapi":"DELETE /developers/orgs/{orgId}/keys/{keyId}","href":"/api-reference/control-plane/revoke-key"},{"title":"Regenerate API key","openapi":"POST /developers/orgs/{orgId}/keys/{keyId}/regenerate","href":"/api-reference/control-plane/regenerate-key"}]},{"group":"Usage","pages":[{"title":"Get usage","openapi":"GET /developers/orgs/{orgId}/usage","href":"/api-reference/control-plane/get-usage"}]},{"group":"Advisors","pages":[{"title":"Register advisor","openapi":"POST /advisors/register","href":"/api-reference/control-plane/register-advisor"},{"title":"Self-register advisor (sandbox)","openapi":"POST /advisors/self-register","href":"/api-reference/control-plane/self-register-advisor"},{"title":"Consult advisor","openapi":"POST /advisors/consult","href":"/api-reference/control-plane/consult-advisor"},{"title":"Declare payload key","openapi":"POST /advisors/{id}/payload-key","href":"/api-reference/control-plane/declare-payload-key"}]},{"group":"Providers","pages":[{"title":"Get provider connect config","openapi":"GET /providers/{did}/connect","href":"/api-reference/providers/connect"}]},{"group":"MCP Tokens","pages":[{"title":"List MCP tokens","openapi":"GET /mcp-tokens","href":"/api-reference/control-plane/list-mcp-tokens"},{"title":"Create MCP token","openapi":"POST /mcp-tokens","href":"/api-reference/control-plane/create-mcp-token"},{"title":"Revoke MCP token","openapi":"DELETE /mcp-tokens/{id}","href":"/api-reference/control-plane/revoke-mcp-token"}]},{"group":"Policy Rules","pages":[{"title":"Apply a rule to a policy","openapi":"POST /policies/{policyID}/rules","href":"/api-reference/rules/create-rule"},{"title":"List a policy's rules","openapi":"GET /policies/{policyID}/rules","href":"/api-reference/rules/list-policy-rules"},{"title":"Bulk apply rules","openapi":"PUT /policies/{policyID}/rules/bulk","href":"/api-reference/rules/bulk-upsert-rules"},{"title":"Update a rule","openapi":"PUT /rules/{ruleID}","href":"/api-reference/rules/update-rule"},{"title":"Delete a rule","openapi":"DELETE /rules/{ruleID}","href":"/api-reference/rules/delete-rule"}]}]},{"group":"Data Plane","pages":[{"group":"OCSS Data-Plane","pages":[{"title":"Data-plane API reference","href":"/api-reference/data-plane/overview"},{"title":"Bind a child enforcement endpoint","openapi":"POST /enforcement-endpoints","description":"Mints a §9.3(b) bound-resolver label and returns the label, binding UUID, and connect_secret (all three returned exactly once). Requires an active consent_attestation for (audience_did, child_ref) as a §4.2.2 precondition. Caller must be an accredited resolver with a valid RFC 9421 signature.\n","href":"/api-reference/data-plane/bind-endpoint"},{"title":"Rotate a bound endpoint's label","openapi":"POST /enforcement-endpoints/{id}/rotate","href":"/api-reference/data-plane/rotate-endpoint"},{"title":"Fetch the router-signed enforcement profile","openapi":"GET /enforcement-profiles/{endpoint_id}","description":"§9.3(b) bound-resolver authentication: the caller signs the request with its Trust-List-published key (RFC 9421); the {endpoint_id} path segment is the high-entropy bound-resolver label from the mint response. A wrong or unknown label returns 404 (indistinguishable from a wrong-resolver dereference — fail-closed, no existence leak, §9.3(a)). The response is a SignedDocument whose `document` string parses to an EnforcementProfile; verify the signature to the router key then to the root before trusting the profile.\nServing discipline (§8.3.6 cl.3): signatures are minted at compile time and cached per binding. Supports ETag / If-None-Match for 304 Not Modified.\n","href":"/api-reference/data-plane/fetch-profile"},{"title":"Submit a signed §8.3.8 enforcement-result receipt","openapi":"POST /enforcement-confirmations","href":"/api-reference/data-plane/submit-confirmation"},{"title":"Run the connect ceremony to your own DID (sandbox)","openapi":"POST /sandbox/test-connect","href":"/api-reference/data-plane/sandbox-test-connect"},{"title":"Mint a test consent attestation (sandbox)","openapi":"POST /sandbox/consent-attestations","href":"/api-reference/data-plane/sandbox-consent-attestation"},{"title":"Reference parent-consent authorize leg (sandbox)","openapi":"GET /oauth/authorize","href":"/api-reference/data-plane/oauth-authorize"},{"title":"Reference token leg — code → access token (sandbox)","openapi":"POST /oauth/token","href":"/api-reference/data-plane/oauth-token"},{"title":"Reference profiles leg — child list (sandbox)","openapi":"GET /oauth/profiles","href":"/api-reference/data-plane/oauth-profiles"}]},{"group":"Authentication","pages":[{"title":"Get current user","openapi":"GET /auth/me","href":"/api-reference/auth/get-auth-me"},{"title":"Log out","openapi":"POST /auth/logout","href":"/api-reference/auth/post-auth-logout"}]},{"group":"Families","pages":[{"title":"List families","openapi":"GET /families","href":"/api-reference/families/get-families"},{"title":"Create a family","openapi":"POST /families","href":"/api-reference/families/create-family"},{"title":"Get a family","openapi":"GET /families/{familyID}","href":"/api-reference/families/get-family"},{"title":"Update a family","openapi":"PUT /families/{familyID}","href":"/api-reference/families/update-family"},{"title":"Delete a family","openapi":"DELETE /families/{familyID}","href":"/api-reference/families/delete-family"},{"title":"List family members","openapi":"GET /families/{familyID}/members","href":"/api-reference/families/list-members"},{"title":"Add a family member","openapi":"POST /families/{familyID}/members","href":"/api-reference/families/add-member"},{"title":"Remove a family member","openapi":"DELETE /families/{familyID}/members/{memberID}","href":"/api-reference/families/remove-member"}]},{"group":"Children","pages":[{"title":"List children in a family","openapi":"GET /families/{familyID}/children","href":"/api-reference/children/get-families-children"},{"title":"Add a child","openapi":"POST /families/{familyID}/children","href":"/api-reference/children/add-child"},{"title":"Get a child","openapi":"GET /children/{childID}","href":"/api-reference/children/get-child"},{"title":"Update a child","openapi":"PUT /children/{childID}","href":"/api-reference/children/update-child"},{"title":"Delete a child","openapi":"DELETE /children/{childID}","href":"/api-reference/children/delete-child"},{"title":"Get age-appropriate ratings","openapi":"GET /children/{childID}/age-ratings","href":"/api-reference/children/get-child-age-ratings"}]},{"group":"Policies","pages":[{"title":"List a child's policies","openapi":"GET /children/{childID}/policies","href":"/api-reference/policies/get-children-policies"},{"title":"Create a policy","openapi":"POST /children/{childID}/policies","href":"/api-reference/policies/create-policy"},{"title":"Auto-generate rules from age","openapi":"POST /policies/{policyID}/generate-from-age","href":"/api-reference/policies/generate-policy-from-age"},{"title":"Get a policy","openapi":"GET /policies/{policyID}","href":"/api-reference/policies/get-policy"},{"title":"Update a policy","openapi":"PUT /policies/{policyID}","href":"/api-reference/policies/update-policy"},{"title":"Activate a policy","openapi":"POST /policies/{policyID}/activate","href":"/api-reference/policies/activate-policy"},{"title":"Pause a policy","openapi":"POST /policies/{policyID}/pause","href":"/api-reference/policies/pause-policy"},{"title":"Delete a policy","openapi":"DELETE /policies/{policyID}","href":"/api-reference/policies/delete-policy"}]},{"group":"Enforcement","pages":[{"title":"Trigger enforcement","openapi":"POST /children/{childID}/enforce","href":"/api-reference/enforcement/post-children-enforce"},{"title":"List enforcement jobs","openapi":"GET /children/{childID}/enforcement/jobs","href":"/api-reference/enforcement/list-enforcement-jobs"},{"title":"Get enforcement job status","openapi":"GET /enforcement/jobs/{jobID}","href":"/api-reference/enforcement/get-enforcement-job"},{"title":"Get job results per platform","openapi":"GET /enforcement/jobs/{jobID}/results","href":"/api-reference/enforcement/get-enforcement-job-results"},{"title":"Retry a failed job","openapi":"POST /enforcement/jobs/{jobID}/retry","href":"/api-reference/enforcement/retry-enforcement-job"}]},{"group":"Platforms","pages":[{"title":"List platforms","openapi":"GET /platforms","href":"/api-reference/platforms/get-platforms"},{"title":"Get a platform","openapi":"GET /platforms/{platformID}","href":"/api-reference/platforms/get-platform"},{"title":"Filter by capability","openapi":"GET /platforms/by-capability","href":"/api-reference/platforms/get-platforms-by-capability"},{"title":"Filter by category","openapi":"GET /platforms/by-category","href":"/api-reference/platforms/get-platforms-by-category"},{"title":"Get OAuth authorize URL","openapi":"GET /platforms/{platformID}/oauth/authorize","href":"/api-reference/platforms/platform-oauth-authorize"},{"title":"Handle OAuth callback","openapi":"GET /platforms/{platformID}/oauth/callback","href":"/api-reference/platforms/platform-oauth-callback"}]},{"group":"Compliance","pages":[{"title":"Connect a platform","openapi":"POST /compliance","href":"/api-reference/compliance/post-compliance"},{"title":"List a family's connections","openapi":"GET /families/{familyID}/compliance","href":"/api-reference/compliance/list-family-compliance"},{"title":"Re-verify a connection","openapi":"POST /compliance/{linkID}/verify","href":"/api-reference/compliance/verify-compliance"},{"title":"Enforce a single connection","openapi":"POST /compliance/{linkID}/enforce","href":"/api-reference/compliance/enforce-compliance"},{"title":"Disconnect a platform","openapi":"DELETE /compliance/{linkID}","href":"/api-reference/compliance/disconnect-compliance"}]},{"group":"Webhooks","pages":[{"title":"Create a webhook","openapi":"POST /webhooks","href":"/api-reference/webhooks/post-webhooks"},{"title":"List a family's webhooks","openapi":"GET /families/{familyID}/webhooks","href":"/api-reference/webhooks/list-family-webhooks"},{"title":"Get a webhook","openapi":"GET /webhooks/{webhookID}","href":"/api-reference/webhooks/get-webhook"},{"title":"Update a webhook","openapi":"PUT /webhooks/{webhookID}","href":"/api-reference/webhooks/update-webhook"},{"title":"Delete a webhook","openapi":"DELETE /webhooks/{webhookID}","href":"/api-reference/webhooks/delete-webhook"},{"title":"Send a test delivery","openapi":"POST /webhooks/{webhookID}/test","href":"/api-reference/webhooks/test-webhook"},{"title":"List deliveries","openapi":"GET /webhooks/{webhookID}/deliveries","href":"/api-reference/webhooks/list-webhook-deliveries"}]},{"group":"Standards","pages":[{"title":"List community standards","openapi":"GET /standards","href":"/api-reference/standards/get-standards"},{"title":"Get a standard","openapi":"GET /standards/{slug}","href":"/api-reference/standards/get-standard"},{"title":"Adopt a standard","openapi":"POST /children/{childID}/standards","href":"/api-reference/standards/adopt-standard"},{"title":"Unadopt a standard","openapi":"DELETE /children/{childID}/standards/{standardID}","href":"/api-reference/standards/unadopt-standard"},{"title":"List a child's standards","openapi":"GET /children/{childID}/standards","href":"/api-reference/standards/list-child-standards"}]},{"group":"Ratings","pages":[{"title":"List rating systems","openapi":"GET /ratings/systems","href":"/api-reference/ratings/get-ratings-systems"},{"title":"Get a rating system","openapi":"GET /ratings/systems/{systemID}","href":"/api-reference/ratings/get-ratings-system"},{"title":"Get content descriptors","openapi":"GET /ratings/systems/{systemID}/descriptors","href":"/api-reference/ratings/get-ratings-system-descriptors"},{"title":"Get ratings for an age","openapi":"GET /ratings/by-age","href":"/api-reference/ratings/get-ratings-by-age"},{"title":"Convert a rating","openapi":"GET /ratings/{ratingID}/convert","href":"/api-reference/ratings/convert-rating"}]},{"group":"Devices","pages":[{"title":"Register a device","openapi":"POST /children/{childID}/devices","href":"/api-reference/devices/post-children-devices"},{"title":"List a child's devices","openapi":"GET /children/{childID}/devices","href":"/api-reference/devices/list-children-devices"},{"title":"Update a device","openapi":"PUT /devices/{deviceID}","href":"/api-reference/devices/update-device"},{"title":"Revoke a device","openapi":"DELETE /devices/{deviceID}","href":"/api-reference/devices/revoke-device"}]}]}]},{"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":"Rotate a bound endpoint's label - Phosra Developer Docs","deploymentId":"dpl_XLevHnGPjzxq9mbREha5Faad63Sp","buildId":"dpl_XLevHnGPjzxq9mbREha5Faad63Sp","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-BD9G1WMi.js","snippetPresets-Bcqr8I2u.js","utils-BrYn4XiY.js","style-to-object-BY3JEAdk.js","utils-CYrCnchl.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-CNFO66BS.js","conditional-requirements-CFM0id0Q.js","cloneDeep-BneVo7uA.js","_Uint8Array-n4RvRzp3.js","isObject-FP1Yky1u.js","ApiExamples-C1YMsTjy.js","usePlaygroundInputsStore-DayW4kZ9.js","shallow-DDCzdKmR.js","isEqual-CBVoazy8.js","CodeSnippets-CWandYY5.js","CodeSnippet-grFP6YU_.js","use-playground-group-access-BBqHUxQK.js","Page-DBPN_x5x.js","api-description-markdown-1J-AA_Kv.js","DynamicMarkdown-Dgh_e4rL.js","SectionHeading-BP6Np9Uh.js","MethodPill-4k_Ty_Xv.js","getPastedJson-CWUNKLcr.js","Check2Icon-Cs4FQb2J.js","axios-CsQoIw0U.js","Markdown-CR8c2fXT.js","AssistantPageLink-BBR7elHb.js","dist-DjFwSv8l.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}