OpenAPI and SDK
The canonical schema for the integration endpoints is:
GET https://api.tonramp.io/v1/trp/openapi.jsonGET https://api.tonramp.io/v1/trp/llms.txtGET https://api.tonramp.io/v1/trp/llms-full.txtIt is a slice of the API OpenAPI: generate, parse, quote, top-up, status, PIX checkout (/v1/c) and the partner ops endpoints (webhook, transactions, ticker, stats). Admin, Mini App and internal queues stay out.
llms.txt is the llmstxt.org index for AI tools. llms-full.txt is the same slice as Markdown. Both are generated from openapi.json on each request. They also answer at https://api.tonramp.io/llms.txt.
Generate a client
Section titled “Generate a client”TypeScript:
npx openapi-typescript https://api.tonramp.io/v1/trp/openapi.json -o trp.d.tsPython:
pip install openapi-python-clientopenapi-python-client generate --url https://api.tonramp.io/v1/trp/openapi.jsonThere is also a minimal TypeScript fetch client at sdk/trp.ts. Copy it into your project.
Auth in the schema
Section titled “Auth in the schema”POST /v1/wallet/trp/generateandPOST /v1/cuseAuthorization: Bearer tonr_<prefix>_<secret>.GET /v1/partner/*uses the partner console session JWT.
The demo-trp app shows the USDT flow end to end.