Prototype, synthetic data only. Ventra is a non-commercial, pre-incorporation technology prototype. Every investor, fund, account, NAV, settlement and message shown is synthetic or simulated; cash legs are test tokens, and wholesale-CBDC and deposit-token legs are simulated. Nothing here is an offer, solicitation, recommendation or marketing of any fund, security or service, and Ventra is not authorised or registered by any financial regulator. Not used by or affiliated with any supervisory authority. Full notice · Privacy
Ventraprototype
Documentation menu

Contributing

Status, errors and retries

The status codes of the API, its two error shapes, rate limits, which calls to retry and how to page through a list.

A call is answered in two stages. The gateway checks the credential, the rate limit and the read-only rule first; then the operation runs. Each stage has its own error shape.

Status codes

StatusMeaningRetry?
200Success.No need.
400The request is malformed, or a write has no Idempotency-Key header.No: fix the request.
401No credential, or the credential is not valid or carries no tenant.No: fix the credential. Repeated 401 calls block your address.
403The credential is valid but may not do this, for example a write on the read-only demo.No.
404Not found for your tenant. Another tenant's record is reported the same way.No.
409The resource is not ready, for example a proof for an event not yet in a batch.Yes, later.
429Rate limit reached, or your address is blocked after failed authentications.Yes, after the wait the response gives.
500, 502, 503, 504A fault on Ventra's side.Yes, with backoff.
501The operation is not built.No.

Error from an operation: problem details

Operations of the Platform API answer errors as problem details, with the content type application/problem+json:

{
  "type": "urn:ventra:problem:404",
  "title": "Resource Not Found",
  "status": 404,
  "rule": "E6",
  "fields": ["eventId"],
  "correlationId": "<your-correlation-id>"
}
FieldMeaning
typeA URN. urn:ventra:problem:<status> for most errors; urn:ventra:problem:idempotency-required, urn:ventra:problem:write-forbidden and urn:ventra:problem:not-implemented for the cases their names say.
titleA short human-readable text. Do not parse it: it can change.
statusThe HTTP status.
ruleThe rule that refused the call, when there is one, for example E6 (the egress filter).
fieldsNames of the fields involved. Names only, never values.
correlationIdThe X-Correlation-Id you sent, echoed back.

Error from the gateway

Authentication, rate-limit and read-only refusals come before the operation, as JSON with success: false:

{
  "success": false,
  "error": { "code": "RATE_LIMITED", "message": "Too many requests. Please retry later.", "retryAfterMs": 60000 }
}
CodeStatusMeaning
AUTH_MISSING401No Authorization header.
AUTH_INVALID401The token is not valid: signature, issuer, audience or expiry.
AUTH_RATE_LIMITED429Too many failed authentications from your address. Wait for Retry-After (seconds).
RATE_LIMITED429Too many calls. Wait for retryAfterMs (milliseconds).
DEMO_READONLY403A write with a read-only demo credential.

Branch on status and error.code or type, never on the message or title text.

Retries

  • Retry only 409, 429 and 5xx. Never retry 400, 401, 403, 404 or 501 unchanged.
  • On 429, wait at least as long as Retry-After or retryAfterMs says.
  • Otherwise back off exponentially with random jitter, for example 1, 2, 4 and 8 seconds, then give up and alert.
  • Stop at the first 401: every further failure counts towards blocking your address.
  • Send the same X-Correlation-Id on each retry of one call, so the attempts can be traced together.
  • A write is retried with the same Idempotency-Key; see Identifiers and idempotency.

Paging through a list

List operations return one page at a time:

{ "data": [], "nextCursor": "<opaque-cursor>" }
  • limit sets the page size: 50 by default, at most 200.
  • Pass nextCursor back as cursor to get the next page. It is null on the last page.
  • A cursor is opaque. Do not build or change one.
  • Identifiers and idempotency · The identifiers that tie messages, events and proofs together, the correlation id you send, and how writes stay safe to retry.
  • Environments and keys · Where the API runs, how a call is authenticated, and how to keep a credential out of places it does not belong.
  • API reference · Every documented operation of the Ventra Platform API v1, grouped by resource, generated from the specification.

Last reviewed 2026-12-01