veil

Read the OpenAPI document

The whole API as one OpenAPI 3.1 file, for a client generator, Postman or an API gateway.

GET/openapi.json
Access
Public; API key optional
Client
Browser fetch supported

Request examples#

cURL
curl -fsS 'https://veil.pub/openapi.json' -o openapi.json
javascript
const response = await fetch("https://veil.pub/openapi.json");
const openapi = await response.json();

Response#

HTTP 200application/json

The OpenAPI 3.1 document, generated from this reference, with this directory's addresses.

FieldTypeMeaning
openapistringThe OpenAPI version, 3.1.0.
infoobjectTitle, description, terms and version, the date of the newest change in the changelog.
serversarray<object>This directory's address.
externalDocsobjectA link to these guides.
tagsarray<object>One tag for each group of this reference.
pathsobjectEvery endpoint of this reference by path and method. x-veil-entry names its page here.
componentsobjectThe Error envelope, the named objects of the responses, the signing headers, the rate-limit headers and the two security schemes.
HTTP 304none

Not modified. Reuse the representation stored with this ETag; there is no response body.

Response headers#

HeaderValueMeaning
Content-Typeapplication/jsonUse the declared media type before choosing a parser.
DateHTTP dateServer time. Compare it with your clock when signing requests.
ETagopaque validatorSend it back in If-None-Match. The same document answers 304 with no body.
Cache-Controlpublic, max-age=300The document can be cached for five minutes.
Retry-Afterinteger seconds, on rate_limited or busyWait at least this long before retrying. Other 429/503 codes do not necessarily include it.

Usage 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#

API errors return an error object. Use error.code for program logic; error.message is English text for people and can change. Response and error guide

HTTPCodeMeaning and next step
401invalid_api_key

The bearer credential is malformed, unknown, expired or revoked.

Use an active key. To use anonymous public access, remove Authorization entirely. Invalid credentials never fall back automatically.

403api_key_scope

The API key lacks read or verify scope, or the endpoint does not accept bearer keys.

Use the correct scope. Identity writes and key management still require a device signature.

403api_key_suspended

This API key is suspended.

Ask staff to restore it; another key cannot lift an account suspension.

403developer_suspended

The owner’s API account is suspended or the owner card is unavailable.

Check the owner account and any staff restriction. Creating another key does not bypass suspension.

HTTPCodeMeaning and next step
429rate_limited

An anonymous, signed-request or API-key allowance was exceeded.

Wait at least Retry-After seconds. Share a queue and retry budget across your workers.

500internal_error

An unexpected server error occurred. Internal details are not returned.

Retry reads with bounded backoff. Check write results before sending a new signed operation.

503busy

The application has reached a temporary concurrency or database limit.

Wait Retry-After seconds and retry with bounded backoff.