{"openapi":"3.1.0","info":{"title":"BlockSign Verify Public API","version":"0.1.0","description":"Start a verification, retrieve its result, and validate meeting proofs. Use X-API-Key for server-to-server result lookups. Get your key and organization slug from Dashboard → Integration. Keep keys and verification tokens private. Browser/device-reported results and server corroboration are separate facts; see each operation's trust and privacy notes."},"servers":[{"url":"/api","description":"This BlockSign server"}],"tags":[{"name":"verifications","description":"Start browser-based human checks and retrieve their results"},{"name":"proofs","description":"Validate short-lived, meeting-bound verification proofs"},{"name":"health","description":"Health operations"}],"paths":{"/verify/start/{slug}":{"post":{"operationId":"startPublicVerification","tags":["verifications"],"summary":"Start or reuse a verification","description":"Starts a browser-based check using your organization's configured modules.\nThis is also the public participant entry point: it does not require an API key.\nNew sessions consume verification tokens from the organization; an existing,\npending, unexpired session for the same uid is reused without another charge.\nOpen `/verify/TOKEN` on the same origin using the returned token.\nCreation never means the person passed; retrieve the eventual result with GET /check.\nKeep the token private. It grants access to this participant's verification.\n","security":[],"parameters":[{"name":"slug","in":"path","required":true,"description":"Organization slug shown in Dashboard → Integration","schema":{"type":"string","minLength":1},"example":"your-organization"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicVerificationInput"}}}},"responses":{"200":{"description":"Reused an existing pending session; no additional tokens consumed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicVerificationStart"}}}},"201":{"description":"New session created; tokens consumed according to enabled modules","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicVerificationStart"}}}},"400":{"description":"Invalid or missing uid","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicApiError"}}}},"403":{"description":"Insufficient verification tokens","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicApiError"}}}},"404":{"description":"Unknown organization slug","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicApiError"}}}},"500":{"description":"Could not start the verification","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicApiError"}}}}}}},"/check":{"get":{"operationId":"getPublicVerificationResult","tags":["verifications"],"summary":"Retrieve the latest verification for your user","description":"Server-to-server lookup, restricted to the organization owning the X-API-Key.\nObtain your key from Dashboard → Integration. Never put API keys in a URL,\nbrowser bundle, mobile app, or attendee invitation.\nReturns the most recent attempt for uid, not necessarily a completed or passing one.\nThe top-level isHuman and livenessScore are device-reported claims.\nverdict.server.corroborated is an independent server anti-forgery observation:\ntrue, false, or null (unknown/legacy). The 0.15 floor is NOT a pass threshold.\nDo not treat HTTP 200 or status=completed alone as proof of humanity.\nResults may contain personal data, questionnaire answers, and document data.\nHandle them according to your organization's consent and retention policy.\n","security":[{"PublicApiKey":[]}],"parameters":[{"name":"uid","in":"query","required":true,"description":"The same application-owned user identifier supplied when starting","schema":{"type":"string","minLength":1,"maxLength":500,"pattern":"\\S"},"example":"user_12345"}],"responses":{"200":{"description":"Latest attempt in the API key's organization","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicVerificationResult"}}}},"400":{"description":"Invalid or missing uid","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicApiError"}}}},"401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicApiError"}}}},"404":{"description":"No attempt for this uid in your organization","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicApiError"}}}},"500":{"description":"Could not retrieve the result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicApiError"}}}}}}},"/proof/verify":{"get":{"operationId":"verifyPublicMeetingProof","tags":["proofs"],"summary":"Validate a signed meeting proof","description":"The proof is itself a credential; an API key is not needed. Proofs are\nshort-lived and bound to a meeting. Check valid=true and compare the\nreturned meeting binding with the meeting you expect.\nEvery rejected input (including a missing, malformed, forged, expired, or\nrevoked proof) returns HTTP 200 with valid=false and a reason.\nHTTP success alone never means a valid proof. A 500 means validation failed\noperationally. Avoid logging proof query parameters or sharing proof URLs.\n","security":[],"parameters":[{"name":"proof","in":"query","required":false,"description":"Signed credential returned after a qualifying meeting verification","schema":{"type":"string"}}],"responses":{"200":{"description":"Validation answer; inspect valid, not just the HTTP status","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicMeetingProofResult"}}}},"500":{"description":"Validation could not be completed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicApiError"}}}}}}},"/healthz":{"get":{"operationId":"healthCheck","tags":["health"],"summary":"Health check","description":"Returns server health status","responses":{"200":{"description":"Healthy","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthStatus"}}}}}}}},"components":{"schemas":{"PublicVerificationInput":{"type":"object","required":["uid"],"properties":{"uid":{"type":"string","minLength":1,"maxLength":500,"pattern":"\\S","description":"Your application's unique user identifier, not an API key","example":"user_12345"}}},"PublicVerificationStart":{"type":"object","required":["token","sessionId","enabledModules","livenessChallengeEnabled","livenessSpeechEnabled","faceMatchStrictness","brandName","brandColor","questions"],"properties":{"token":{"type":"string","description":"Private verification capability token"},"sessionId":{"type":"integer"},"enabledModules":{"type":"array","items":{"$ref":"#/components/schemas/PublicVerificationModule"}},"livenessChallengeEnabled":{"type":"boolean"},"livenessSpeechEnabled":{"type":"boolean"},"faceMatchStrictness":{"type":"string"},"brandName":{"type":["string","null"]},"brandColor":{"type":["string","null"]},"questions":{"type":"array","items":{"$ref":"#/components/schemas/PublicVerificationQuestion"}}}},"PublicVerificationModule":{"type":"object","required":["id","enabled"],"properties":{"id":{"type":"string"},"enabled":{"type":"boolean"}},"additionalProperties":true},"PublicVerificationQuestion":{"type":"object","description":"An organization-configured question, including any display conditions","additionalProperties":true},"PublicApiError":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"valid":{"type":"boolean","description":"Present and false for proof validation errors"}}},"PublicVerificationResult":{"type":"object","required":["uid","sessionId","status","isHuman","livenessScore","answers","idDocumentData","18years","faceMatch","livenessChecks","meeting","createdAt","completedAt","schemaVersion","verdict"],"properties":{"uid":{"type":"string"},"sessionId":{"type":"integer"},"status":{"type":"string","description":"Raw attempt state; completed does not imply a passing or corroborated result"},"isHuman":{"type":["boolean","null"],"description":"Device-reported","not a server guarantee":null},"livenessScore":{"type":["number","null"],"description":"Device-reported score"},"answers":{"type":["object","null"],"additionalProperties":true},"idDocumentData":{"type":["object","null"],"additionalProperties":true},"18years":{"type":"boolean"},"faceMatch":{"description":"Device-reported face-match details","or null":null},"livenessChecks":{"description":"Device-reported liveness factors","or null":null},"meeting":{"anyOf":[{"$ref":"#/components/schemas/PublicMeetingBinding"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time"},"completedAt":{"type":["string","null"],"format":"date-time"},"schemaVersion":{"type":"integer","enum":[2]},"verdict":{"$ref":"#/components/schemas/PublicVerificationVerdict"}}},"PublicMeetingBinding":{"type":"object","required":["channel","meetingId"],"properties":{"channel":{"type":"string"},"meetingId":{"type":["string","null"]}}},"PublicVerificationVerdict":{"type":"object","required":["reported","server"],"properties":{"reported":{"type":"object","required":["source","isHuman","livenessScore","faceMatch","18years"],"properties":{"source":{"type":"string","enum":["device"]},"isHuman":{"type":["boolean","null"]},"livenessScore":{"type":["number","null"]},"faceMatch":{"description":"Device-reported face-match result","or null":null},"18years":{"type":"boolean"}}},"server":{"type":"object","required":["source","corroborated","livenessScore","floor","floorMeans"],"properties":{"source":{"type":"string","enum":["rppg-stream"]},"corroborated":{"type":["boolean","null"],"description":"Null means unknown","not verified":null},"livenessScore":{"type":["number","null"]},"floor":{"type":"number","description":"Anti-forgery floor","not the pass/fail decision":null},"floorMeans":{"type":"string"}}}}},"PublicMeetingProofResult":{"oneOf":[{"type":"object","required":["valid","reason"],"properties":{"valid":{"type":"boolean","enum":[false]},"reason":{"type":"string"},"error":{"type":"string"}}},{"type":"object","required":["valid","sessionId","orgId","human","meeting","expiresAt"],"properties":{"valid":{"type":"boolean","enum":[true]},"sessionId":{"type":"integer"},"orgId":{"type":"integer"},"human":{"type":"boolean"},"meeting":{"$ref":"#/components/schemas/PublicMeetingBinding"},"expiresAt":{"type":"string","format":"date-time"}}}]},"HealthStatus":{"type":"object","properties":{"status":{"type":"string"},"botWorker":{"$ref":"#/components/schemas/MeetWorkerHealth"}},"required":["status"]},"MeetWorkerHealth":{"type":"object","description":"Structural worker readiness only, never proof of Google authentication or meeting admission.","required":["ready","state","authentication"],"properties":{"ready":{"type":"boolean"},"state":{"type":"string","enum":["starting","unsupported_host","standby","worker_busy","database_unavailable","lock_lost","stopped","sign_in_required","browser_unavailable"]},"authentication":{"type":"string","enum":["checked_on_each_join"]}}}},"securitySchemes":{"PublicApiKey":{"type":"apiKey","in":"header","name":"X-API-Key","description":"Organization API key from Dashboard → Integration. Keep it on your server."}}}}