/openapi.json. The endpoint pages in this section
are generated from it; Shared types lists the objects they return.
Conventions
Authentication
During the private alpha every/v1/* route except /v1/health needs Authorization: Bearer $LUCIDBLOCK_TOKEN
(request a token: see Rate limits and access). /v1/health,
/openapi.json and / are open. A missing or wrong token gives 401 UNAUTHORIZED.
Errors
Every error uses one envelope,{"error": {"code", "message", "details?"}, "request_id"}; codes never change meaning.
Errors lists every code.
Caching, CORS and request IDs
Cache-Control: wallet snapshotsno-store;/v1/solana/protocolsand/v1/solana/coveragepublic, max-age=60;/and/openapi.jsonpublic, max-age=3600.- CORS:
Access-Control-Allow-Origin: *; allowed request headersauthorization,x-request-id; exposed response headersx-request-id,ratelimit-limit,ratelimit-remaining,ratelimit-reset,retry-after; preflights are cached for 7,200 s and cost nothing. Browsers send no cookies. - Every response carries
X-Request-Id(yours, if you sent one); quote it when reporting a problem.