{ "openapi": "3.1.0", "info": { "title": "Affinidi DID Hosting — edge HTTP surface", "description": "HTTP surface of the did-hosting-server edge node: public, unauthenticated DID resolution, a liveness probe, and the HTTPS binding of the Trust Task listener. The edge is written to only by its control plane's signed Trust Tasks, which arrive over TSP, DIDComm or this binding alike.", "contact": { "name": "Glenn Gore", "email": "glenn@affinidi.com" }, "license": { "name": "Apache-2.0" }, "version": "0.10.0" }, "paths": { "/.well-known/did.jsonl": { "get": { "tags": [ "resolve" ], "summary": "`GET /.well-known/did.jsonl` — root-DID webvh log.", "operationId": "serve_root_did_log", "responses": { "200": { "description": "Root DID's did:webvh log (JSONL)", "content": { "application/jsonl+json": {} } }, "404": { "description": "No root DID hosted on this domain" } } } }, "/api/health": { "get": { "tags": [ "system" ], "summary": "Unauthenticated liveness probe; degraded while the service's own DID is\nnot being served.", "operationId": "health", "responses": { "200": { "description": "Service is up and its own DID (if configured) resolves locally; returns status + version", "content": { "application/json": {} } }, "503": { "description": "Service is up but its own DID isn't being served locally, or it has not reconciled with its control plane within the staleness bound", "content": { "application/json": {} } } } } }, "/api/trust-tasks": { "post": { "tags": [ "trust-tasks" ], "summary": "Hand the posted document to the edge's one inbound dispatch and answer with\nits signed reply.", "description": "A document that does not verify gets no signed answer — a signed refusal\nwould settle a directive the control plane never sent — so it is answered\n`403` with an unsigned, detail-free error document, which settles nothing.", "operationId": "receive", "requestBody": { "description": "A signed Trust Task document", "content": { "application/json": { "schema": { "type": "string" } } }, "required": true }, "responses": { "200": { "description": "The edge's signed reply document", "content": { "application/json": {} } }, "400": { "description": "The body is not a Trust Task document", "content": { "application/json": {} } }, "403": { "description": "The document was not accepted; an unsigned refusal", "content": { "application/json": {} } }, "429": { "description": "This address's request rate exceeds the limit", "content": { "application/json": {} } } } } }, "/{mnemonic}/did.jsonl": { "get": { "tags": [ "resolve" ], "summary": "Combined fallback handler: walks each enabled method's dispatcher\nin priority order, returning the first match.", "description": "404 when no method recognises the URL. Callers expecting an SPA\n(daemon mode) check for 404 and then call the static handler.", "operationId": "serve_public", "parameters": [ { "name": "mnemonic", "in": "path", "description": "Slot path; the published did:webvh resolves at /{mnemonic}/did.jsonl", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "did:webvh log (JSONL) or did:web document for the slot", "content": { "application/jsonl+json": {} } }, "404": { "description": "No DID hosted at this path" } } } } }, "components": {}, "tags": [ { "name": "trust-tasks", "description": "The HTTPS binding of the Trust Task listener" }, { "name": "resolve", "description": "Public, unauthenticated DID resolution" }, { "name": "system", "description": "Health / diagnostics" } ] }