VYRN API: read the spec from code
The VYRN API is a read-only JSON API over the VYRN design and specification. It needs no key and has no state. It is for reading the spec: VYRN is a design, not a running venue, so there is no trading API. The full description is at /openapi.json (OpenAPI 3.1).
Endpoints
GET /api/v1/chapters: DESIGN.md and chapters 00–14, with HTML and Markdown URLs.GET /api/v1/chapters/{slug}: one chapter's numbered sections and its full Markdown.GET /api/v1/search?q={words}&limit={1–50}: sections and spec IDs containing every word.GET /api/v1/ids/{id}: where a spec ID such asINV-WRITERis defined.
curl -s 'https://www.vryn.trade/api/v1/search?q=deadline%20admission&limit=3' curl -s https://www.vryn.trade/api/v1/ids/INV-WRITER curl -s -H 'Accept: text/markdown' https://www.vryn.trade/docs/05-engine
Markdown for agents
Every page is also served as Markdown: send Accept: text/markdown, or add .md to a /docs URL. llms.txt lists every page and says when to use this site.
Errors
Errors are JSON with one shape: { "error": { "code", "message", "hint", "docs" } }. Codes are not_found (404) and bad_request (400). The hint says how to fix the request.
Versioning and deprecation
The version is in the path: /api/v1. Within v1, changes only add fields or endpoints; nothing is renamed or removed. A breaking change ships as /api/v2 alongside v1. When a v1 endpoint is to be retired, its responses carry a Deprecation header (RFC 9745) and a Sunset header (RFC 8594) at least 90 days before the sunset date, and the change is announced in the repository releases. No v1 endpoint is deprecated today.
Limits
Responses are static and served from Vercel's CDN, and no per-client rate limit is enforced today. Please keep automated traffic polite. If a limit is introduced, it will be announced here and returned in the standard RateLimit headers, with Retry-After on a 429.
Source
The API and this site are open source in the VYRN repository. See also About and Contact.