Request a first-version salt ticket
Commit the server’s half of the first-version salt before the device chooses its half.
/v1/salt-tickets- Access
- Creates temporary data
- Client
- Local or server client
Request examples#
curl -fsS -X POST 'https://veil.rip/v1/salt-tickets'Response#
201 with ticket, serverSalt and expiresAt. The ticket lasts ten minutes, is used once and can be lost on restart.
| Field | Type | Meaning |
|---|---|---|
ticket | string | Single-use opaque ticket. |
serverSalt | string | Server’s 16-byte salt contribution in hex. |
expiresAt | string | Ticket expiry time. |
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. |
Cache-Control | no-store | Do not persist private or temporary responses in a shared cache. |
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. |
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
| HTTP | Code | Meaning and next step |
|---|---|---|
| 400 | invalid_json | The body is not a JSON object, contains duplicate keys or has trailing data. Send one valid JSON object with |
| 413 | payload_too_large | The request body exceeds this endpoint’s byte limit. Reduce the encoded body. API-key management accepts at most 8 KiB. |
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 |