Read the OpenAPI document
The whole API as one OpenAPI 3.1 file, for a client generator, Postman or an API gateway.
/openapi.json- Access
- Public; API key optional
- Client
- Browser fetch supported
Request examples#
curl -fsS 'https://veil.pub/openapi.json' -o openapi.jsonconst response = await fetch("https://veil.pub/openapi.json");
const openapi = await response.json();Response#
The OpenAPI 3.1 document, generated from this reference, with this directory's addresses.
| Field | Type | Meaning |
|---|---|---|
openapi | string | The OpenAPI version, 3.1.0. |
info | object | Title, description, terms and version, the date of the newest change in the changelog. |
servers | array<object> | This directory's address. |
externalDocs | object | A link to these guides. |
tags | array<object> | One tag for each group of this reference. |
paths | object | Every endpoint of this reference by path and method. x-veil-entry names its page here. |
components | object | The Error envelope, the named objects of the responses, the signing headers, the rate-limit headers and the two security schemes. |
Not modified. Reuse the representation stored with this ETag; there is no response body.
Response headers#
| Header | Value | Meaning |
|---|---|---|
Content-Type | application/json | Use the declared media type before choosing a parser. |
Date | HTTP date | Server time. Compare it with your clock when signing requests. |
ETag | opaque validator | Send it back in If-None-Match. The same document answers 304 with no body. |
Cache-Control | public, max-age=300 | The document can be cached for five minutes. |
Retry-After | integer seconds, on rate_limited or busy | Wait 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.versionis 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
Errorschema and lists its codes inx-veil-error-codes. The log's reads under/{log}/name the log's own host in theirservers.
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
When using an optional API key
| HTTP | Code | Meaning and next step |
|---|---|---|
| 401 | invalid_api_key | The bearer credential is malformed, unknown, expired or revoked. Use an active key. To use anonymous public access, remove |
| 403 | api_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. |
| 403 | api_key_suspended | This API key is suspended. Ask staff to restore it; another key cannot lift an account suspension. |
| 403 | developer_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. |
Shared request errors
| HTTP | Code | Meaning and next step |
|---|---|---|
| 429 | rate_limited | An anonymous, signed-request or API-key allowance was exceeded. Wait at least |
| 500 | internal_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. |
| 503 | busy | The application has reached a temporary concurrency or database limit. Wait |