Borrou Partner API · v1 draft
USDT loans backed by bitcoin, inside your app
Your users borrow USDT against their BTC without leaving your product. You originate and inform through the API; TFG approves every payout and every return of collateral with two people, and the custodian executes them. The API never moves funds.
- Sandbox
https://api.borrou.capital - Live: announced by TFG
- Contract
0.13.0-draft - OAuth 2.0 client credentials
How a loan runs
Every step is an API call of yours, the borrower's act in your app, or a decision at TFG. You follow all of them by webhook and by the events feed.
Apply and verify
You create the application. The borrower completes KYC at Borrou's provider, with your own evidence where TFG accepts it; TFG decides.
Loan and contract
You create the loan from the approved application on a quoted product. The borrower accepts the contract with a one-time code, or signs it.
Collateral
The borrower sends BTC to the loan's own address, signed by Borrou. The custodian screens and releases it.
Payout and servicing
Two TFG people approve the payout; the custodian executes it. You show coverage, margin calls, the maturity and the repayment.
Built to be integrated safely
The conventions an integration can rely on, on every endpoint.
Idempotent writes
Every POST and DELETE takes an Idempotency-Key: retry with the same key and get the same answer, never a second loan.
Signed webhooks and an ordered feed
Every event is signed with your subscription's secret, and the same events are in GET /v1/events in a guaranteed order, to recover anything missed.
Signed collateral addresses
Borrou signs every deposit and top-up address with Ed25519; your app verifies it before the borrower sees it.
Personal data stays write-only
Borrower fields are never returned and never in an event. Responses carry identifiers, statuses and amounts.
No address, ever
Payouts and returns go only where TFG has set for you, at the custodian. A body with an address is refused.
A sandbox with simulators
Play the borrower, the KYC provider, the custodian and the payout's two approvals, on synthetic data, with your own BTC price.
Documentation
Start with the integration guide; the reference has every endpoint, schema, webhook event and error code.
Get started
Integration guideWhat the integration is, who does what, getting into the sandbox, the flow end to end and what to build.Sandbox quick-startOne loan through the sandbox with API calls only, with the Bruno collection and the code snippets.Channel flow, call by callOne borrower from your own KYC to the repayment, every request and answer, for a partner paid out to its settlement account.Build
Rules and checklistThe rules an integration must keep, idempotency, retries, webhooks, the lifecycle, common mistakes and a checklist. Written for engineers and coding agents alike.Error codesEvery error code with its HTTP status, cause, remedy, and whether a refusal is stored under the Idempotency-Key.Verifying an addressBorrou's signature on every collateral address, and the checks your app runs before it shows one.Reference
The sandboxWhat each simulator does, its guards, and what it never does.VersioningWhat changes inside /v1, what counts as breaking, and how a deprecation is announced.ChangelogChanges to the API, newest first.Contract
API referenceEvery operation, schema, scope, webhook event and error code, rendered from the contract.OpenAPI documentThe contract as OpenAPI 3.1, for code generators and API tools.Code samplesClients and verifiers in TypeScript, Python and Java, with test vectors.llms.txtAn index of these documents for coding agents.Getting access
Sandbox credentials are issued by TFG to the partners it onboards, with the partner and product configured for them. If you are integrating, ask your TFG contact for your sandbox credential; it is handed over through a secure channel, never by email in clear. Live access follows the checklist at the end of the integration guide.