Read the public v1 contract
GET
/v1/openapi.json
const url = 'https://api.sanctionary.org/v1/openapi.json';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.sanctionary.org/v1/openapi.jsonResponses
Section titled “Responses”Read the public v1 contract.
Media typeapplication/json
object
Example generated
{}Headers
Section titled “Headers”X-Request-Id
required
string format: uuid
The request’s ID, a UUIDv7 we make. With the other receipt headers and the client’s copy of request and response: the receipt.
X-Sanctionary-Build
required
string
The revision of the code that answered.
X-Sanctionary-Response-SHA256
required
A SHA-256 digest, hex.
string
SHA-256 (hex) of the body as the client decodes it; through MCP, of the text block.
X-Credits-Charged
required
integer
Credits this answer charged: 0 for a free one or a refusal.