Skip to content

OpenAPI and SDK

The canonical schema for the integration endpoints is:

GET https://api.tonramp.io/v1/trp/openapi.json
GET https://api.tonramp.io/v1/trp/llms.txt
GET https://api.tonramp.io/v1/trp/llms-full.txt

It 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.

TypeScript:

Janela do terminal
npx openapi-typescript https://api.tonramp.io/v1/trp/openapi.json -o trp.d.ts

Python:

Janela do terminal
pip install openapi-python-client
openapi-python-client generate --url https://api.tonramp.io/v1/trp/openapi.json

There is also a minimal TypeScript fetch client at sdk/trp.ts. Copy it into your project.

  • POST /v1/wallet/trp/generate and POST /v1/c use Authorization: Bearer tonr_<prefix>_<secret>.
  • GET /v1/partner/* uses the partner console session JWT.

The demo-trp app shows the USDT flow end to end.