{"revision":"25c04798c52757c2","language":"en","entry":{"id":"openapi","kind":"endpoint","group":"reference","title":"Read the OpenAPI document","method":"GET","path":"/openapi.json","paths":[],"summary":"The whole API as one OpenAPI 3.1 file, for a client generator, Postman or an API gateway.","response":"The OpenAPI 3.1 document, generated from this reference, with this directory's addresses.","parameters":[],"sample":"/openapi.json","access":"public","base":"directory","notes":["The document comes from the same catalogue as these pages, so a field documented here is in it too. Its descriptions are in English.","`info.version` is the date of the newest change in the changelog. What stays stable and how changes are announced is on that page.","OpenAPI can't express how Veil signs canonical JSON. An operation that needs a signed request carries `x-veil-signature`, with a link to the signing guide.","Every error response shares the `Error` schema and lists its codes in `x-veil-error-codes`. The log's reads under `/{log}/` name the log's own host in their `servers`."],"errors":["401 invalid_api_key","403 api_key_scope","403 api_key_suspended","403 developer_suspended","429 rate_limited","500 internal_error","503 busy"],"related":["changelog","api-reference","catalogue"],"sections":[{"kind":"code","language":"shell","code":"curl -fsS 'https://veil.pub/openapi.json' -o openapi.json"},{"kind":"code","language":"javascript","code":"const response = await fetch(\"https://veil.pub/openapi.json\");\nconst openapi = await response.json();"}],"live":false,"responses":[{"status":200,"contentType":"application/json","description":"The OpenAPI 3.1 document, generated from this reference, with this directory's addresses.","fields":[{"name":"openapi","type":"string","description":"The OpenAPI version, `3.1.0`."},{"name":"info","type":"object","description":"Title, description, terms and `version`, the date of the newest change in the changelog."},{"name":"servers","type":"array<object>","description":"This directory's address."},{"name":"externalDocs","type":"object","description":"A link to these guides."},{"name":"tags","type":"array<object>","description":"One tag for each group of this reference."},{"name":"paths","type":"object","description":"Every endpoint of this reference by path and method. `x-veil-entry` names its page here."},{"name":"components","type":"object","description":"The `Error` envelope, the named objects of the responses, the signing headers, the rate-limit headers and the two security schemes."}]},{"status":304,"contentType":"none","description":"Not modified. Reuse the representation stored with this `ETag`; there is no response body.","fields":[]}],"responseObjects":[],"errorFormat":"json","errorDetails":[{"status":401,"code":"invalid_api_key","description":"The bearer credential is malformed, unknown, expired or revoked.","action":"Use an active key. To use anonymous public access, remove `Authorization` entirely. Invalid credentials never fall back automatically.","scope":"optional-api-key"},{"status":403,"code":"api_key_scope","description":"The API key lacks read or verify scope, or the endpoint does not accept bearer keys.","action":"Use the correct scope. Identity writes and key management still require a device signature.","scope":"optional-api-key"},{"status":403,"code":"api_key_suspended","description":"This API key is suspended.","action":"Ask staff to restore it; another key cannot lift an account suspension.","scope":"optional-api-key"},{"status":403,"code":"developer_suspended","description":"The owner’s API account is suspended or the owner card is unavailable.","action":"Check the owner account and any staff restriction. Creating another key does not bypass suspension.","scope":"optional-api-key"},{"status":429,"code":"rate_limited","description":"An anonymous, signed-request or API-key allowance was exceeded.","action":"Wait at least `Retry-After` seconds. Share a queue and retry budget across your workers.","scope":"common"},{"status":500,"code":"internal_error","description":"An unexpected server error occurred. Internal details are not returned.","action":"Retry reads with bounded backoff. Check write results before sending a new signed operation.","scope":"common"},{"status":503,"code":"busy","description":"The application has reached a temporary concurrency or database limit.","action":"Wait `Retry-After` seconds and retry with bounded backoff.","scope":"common"}],"responseHeaders":[{"name":"Content-Type","value":"application/json","description":"Use the declared media type before choosing a parser."},{"name":"Date","value":"HTTP date","description":"Server time. Compare it with your clock when signing requests."},{"name":"ETag","value":"opaque validator","description":"Send it back in `If-None-Match`. The same document answers 304 with no body."},{"name":"Cache-Control","value":"public, max-age=300","description":"The document can be cached for five minutes."},{"name":"Retry-After","value":"integer seconds, on rate_limited or busy","description":"Wait at least this long before retrying. Other 429/503 codes do not necessarily include it."}],"documentationUrl":"https://veil.pub/docs/openapi","supportsBrowserFetch":true,"browserMode":"fetch"}}