Read order (mandatory)
llms.txtat the repository root (not an MDX page). Flat index of doc URLs and file paths for agents. On the live Mintlify site, an auto-generated index may also appear at/llms.txt. Regenerate after navigation changes:python3 scripts/generate_llms_txt.py.AGENTS.md. Project terminology, style, boundaries, and DX rules for edits.api-reference/openapi.json. Only source of truth for HTTP paths, methods, request/response shapes, andoperationIdnames. If prose and OpenAPI disagree, follow OpenAPI and file a docs bug.- MCP tool reference. When using the Yuno MCP server, tool names map to the same API as in OpenAPI.
API requests (REST)
Every documented call uses these exact header names (case-sensitive in examples):
The
account_id value from the Dashboard is not an HTTP header. Place it inside the account_id field of request bodies that take it (such as POST /v1/checkout/sessions and POST /v1/payments).
Use sandbox base URL https://api-sandbox.y.uno for integration tests unless the page explicitly targets production.
MCP vs REST
The MCP server maps those environment variables to the same Yuno API. When you emit raw
curl for merchants, use the HTTP header names in the table above.Rules for generated answers
- Do not invent endpoints, fields, enums, or error codes. Cite
openapi.jsonor an MDX path fromllms.txt. - Do not recommend production keys inside MCP or chat logs.
- Prefer checkout session flows as documented; do not conflate “session” with a generic web session.
- For Brazil PIX, document that
customer.document(CPF/CNPJ) is required. See Payment methods and OpenAPIPOST /v1/payments.
CI and spec parity
python3 scripts/openapi_paths_parity.py. Localpathsmust match production OpenAPI bundle.python3 scripts/sync_openapi_from_official.py. Refreshes metadata-only (info, license) from~/yuno-docs-official/openapi.yamlwithout changingpaths.