Public read models and ciphertext-only private relay for Layrs generation-v2.
Base URL: https://api.layrs.xyz · Version: 1.0.0
All read models and the ciphertext-only private relay are served from this single public base. Endpoints are grouped below by area. This reference is generated from the published OpenAPI specification.
System
| Method | Endpoint | Parameters |
|---|
GET | /healthz | — |
Attestation & privacy
| Method | Endpoint | Parameters |
|---|
GET | /v1/attestation | nonce (query, required) |
GET | /v1/privacy/release | — |
Markets
| Method | Endpoint | Parameters |
|---|
GET | /v1/markets | — |
GET | /v1/markets/{marketId} | None (None) |
GET | /v1/resolutions/{marketId} | None (None) |
Vaults
| Method | Endpoint | Parameters |
|---|
GET | /v1/vaults | — |
Private trading
| Method | Endpoint | Parameters |
|---|
POST | /v1/private/sessions | None (None) |
POST | /v1/private/relay | None (None) |
POST | /v1/realtime/token | — |
Funding
| Method | Endpoint | Parameters |
|---|
POST | /v1/funding/deposits | None (None) |
GET | /v1/funding/deposits/{depositId} | depositId (path, required) |
POST | /v1/funding/withdrawals | None (None) |
GET | /v1/funding/withdrawals/{withdrawalId} | withdrawalId (path, required) |
Milestone / adoption
| Method | Endpoint | Parameters |
|---|
GET | /v1/milestone/adoption | — |
GET | /v1/milestone/adoption.csv | — |
Bootstrap
| Method | Endpoint | Parameters |
|---|
POST | /v1/bootstrap/{executionId}/execute | None (None), executionId (path, required) |
GET | /v1/bootstrap/{executionId} | executionId (path, required) |
Notable behaviors
GET /v1/attestation requires a nonce. Without it, the endpoint returns ATTESTATION_NONCE_REQUIRED. The nonce binds the returned attestation document to your request and prevents replay. See Attestation.
POST /v1/private/relay is ciphertext-only. The client seals a signed order to the enclave's transport public key before submitting; plaintext never reaches an API container, database, or log.
- Markets are read models.
GET /v1/markets returns per-market privacy fields including hiddenBook, aggregateBucketMs, and attestedPcr0Sha384 — the enclave measurement bound to that market.