Unreleased documentation. These pages follow the main branch and can change before the next release. For supported guidance, use v0.46.0.
Check one printed document number and check code
const url = 'https://example.com/v1/public-check';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"checkCode":"example","documentNumber":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/v1/public-check \ --header 'Content-Type: application/json' \ --data '{ "checkCode": "example", "documentNumber": "example" }'Experimental, Version 1 alpha 1. The route takes no credential and reads registry data. It is served only when the active target authority activates a public check; otherwise every method on this path answers 404 exactly like an unknown route. The request carries one printed document number and one check code, and the service reads only the Content-Type header and the body. Evidence reads the record through the activated definition with its own Source credentials, compares the stored code in constant time, and answers with the activated status and printed fields only. Every miss, including an unknown number, an ambiguous or unresolved lookup, a missing fact, and a wrong code, answers one identical 404. The answer is not an Evidence response format and is never signed. The service applies no rate admission to this route; a deployment limits its rate at the proxy. Any origin may read every response, and the route never permits credentials.
Request Bodyrequired
Section titled “Request Bodyrequired”The body of POST /v1/public-check, sent as exactly application/json: one printed document number and the check code printed beside it. The contract is experimental. A body that fails this schema is refused before the Source is read and writes no audit record.
object
The printed check code, 24 RFC 4648 base32 characters. ASCII letters are uppercased before comparison and nothing is stripped, so a value with spaces, hyphens, or padding is refused.
The printed document number. The selector profile of the activated subject bounds it further; a value outside that profile is refused as an invalid selector before the Source is read.
Example generated
{ "checkCode": "example", "documentNumber": "example"}Responses
Section titled “Responses”The presented document number and check code match exactly one record
The 200 body of POST /v1/public-check when the presented document number and check code match exactly one record. It carries only the status and the printed fields the active authority activated for the check, never another output of the definition. It is not an Evidence response format and is never signed. The contract is experimental.
object
The members of the activated printed-fields output, a reviewed structured value.
object
The time Evidence evaluated this check, in UTC truncated to the second.
The value of the activated status output.
Example
{ "schema": "registry.evidence.public-check/v1alpha1", "status": "valid"}Headers
Section titled “Headers”Any origin may read the response. Access-Control-Allow-Credentials is never sent.
Evidence responses are never cacheable.
W3C trace context the service mints for this request. An inbound traceparent is never read, and tracestate is never reflected.
Wrong content type, malformed or oversized body, malformed check code, or a document number outside the activated selector profile
object
- Evidence public problem Version 1
- Evidence public problem Version 1
- Evidence public problem Version 1
- Evidence public problem Version 1
- Evidence public problem Version 1
- Evidence public problem Version 1
- Evidence public problem Version 1
- Evidence public problem Version 1
- Evidence public problem Version 1
- Evidence public problem Version 1
object
object
object
object
object
object
object
object
object
object
object
- Evidence public problem Version 1
- Evidence public problem Version 1
- Evidence public problem Version 1
- Evidence public problem Version 1
- Evidence public problem Version 1
- Evidence public problem Version 1
- Evidence public problem Version 1
- Evidence public problem Version 1
- Evidence public problem Version 1
- Evidence public problem Version 1
object
object
object
object
object
object
object
object
object
object
Example
{ "code": "evidence.invalid-request", "detail": "the Evidence request is invalid", "status": 400, "title": "Evidence request is invalid", "type": "https://id.registrystack.org/problems/registry-evidence/evidence/invalid-request"}Headers
Section titled “Headers”Any origin may read the response. Access-Control-Allow-Credentials is never sent.
Evidence responses are never cacheable.
W3C trace context the service mints for this request. An inbound traceparent is never read, and tracestate is never reflected.
No record matches the presented pair. Every miss is one identical response. Without an activated public check the path is not served and answers as an unknown route instead.
object
- Evidence public problem Version 1
- Evidence public problem Version 1
- Evidence public problem Version 1
- Evidence public problem Version 1
- Evidence public problem Version 1
- Evidence public problem Version 1
- Evidence public problem Version 1
- Evidence public problem Version 1
- Evidence public problem Version 1
- Evidence public problem Version 1
object
object
object
object
object
object
object
object
object
object
Example
{ "code": "resource.not-found", "detail": "the requested resource was not found", "status": 404, "title": "Requested resource was not found", "type": "https://id.registrystack.org/problems/registry-evidence/resource/not-found"}Headers
Section titled “Headers”Any origin may read the response. Access-Control-Allow-Credentials is never sent.
Evidence responses are never cacheable.
W3C trace context the service mints for this request. An inbound traceparent is never read, and tracestate is never reflected.
Admission, Source, evaluation, serialization, or audit failure; nothing is released
object
- Evidence public problem Version 1
- Evidence public problem Version 1
- Evidence public problem Version 1
- Evidence public problem Version 1
- Evidence public problem Version 1
- Evidence public problem Version 1
- Evidence public problem Version 1
- Evidence public problem Version 1
- Evidence public problem Version 1
- Evidence public problem Version 1
object
object
object
object
object
object
object
object
object
object
object
- Evidence public problem Version 1
- Evidence public problem Version 1
- Evidence public problem Version 1
- Evidence public problem Version 1
- Evidence public problem Version 1
- Evidence public problem Version 1
- Evidence public problem Version 1
- Evidence public problem Version 1
- Evidence public problem Version 1
- Evidence public problem Version 1
object
object
object
object
object
object
object
object
object
object
Example
{ "code": "source.unavailable", "detail": "the authoritative source is unavailable", "status": 503, "title": "Authoritative source is unavailable", "type": "https://id.registrystack.org/problems/registry-evidence/source/unavailable"}Headers
Section titled “Headers”Any origin may read the response. Access-Control-Allow-Credentials is never sent.
Evidence responses are never cacheable.
W3C trace context the service mints for this request. An inbound traceparent is never read, and tracestate is never reflected.
Cookies on Registry Stack
We use optional cookies to understand how you use the main Registry Stack website and this documentation. If you contact us, we may link this activity to your enquiry. You can change your choice at any time. Read the privacy policy.
Your browser asks sites not to track you, so optional tracking stays off.
We could not use or save that choice. Optional tracking remains off.