# Borrou Partner API > BTC-collateralised USDT loans for embedded partners: the partner applies for its users, starts > their KYC, creates loans once TFG has approved the borrower, issues contracts and follows each loan > by webhook and by reading. TFG approves every payout and every return of collateral (two people), > and the custodian executes them, to the partner's settlement account at the custodian where TFG > has registered one, otherwise to the borrower's own wallet there; the API never moves funds and > never takes a payout or return address. OAuth 2.0 client credentials, `/v1`, an Idempotency-Key > on every POST and DELETE, cursor pagination, signed webhooks and an events feed. > Sandbox: https://api.borrou.capital. Draft documentation, subject to change before `/v1` is published. Every path below is on this host. ## Start here - [Integration guide](/guides/integration-guide): what the integration is, who does what, getting into the sandbox, the flow end to end, what to build on your side, and what has to be true before going live. - [Integration guide for coding agents](/guides/integration-rules): the rules, idempotency, retries, webhook verification, the events feed, the loan lifecycle and `next_action`, common mistakes, and a checklist to finish with. - [Sandbox quick-start](/guides/quickstart): run the Bruno collection and the snippets against the sandbox. - [Sandbox quick-start, the channel flow](/guides/channel-flow): one borrower end to end, call by call: your KYC evidence, a quote, a loan paid out to your settlement account at the custodian, click-wrap acceptance with a one-time code, the simulators (the payout's two approvals simulated on Borrou's sandbox), webhooks and the events feed, the repayment. Parts proposed, may change. - [OpenAPI contract](/openapi.yaml): every endpoint, schema, scope, webhook event and error code, handed over with these documents. Where Borrou publishes its documentation, also at `GET /openapi.yaml`, as a reference page at `GET /docs`, and with these guides as pages of a developer portal at `/` (proposed, may change). ## Reference - [Error codes](/guides/errors): every code with its HTTP status, cause, remedy, and whether a refusal is stored under the Idempotency-Key. - [Verifying a collateral address](/guides/address-verification): Borrou's Ed25519 signature on every deposit and top-up address, the public keys at `GET /v1/address-keys`, the five checks before showing an address, and the verification code the borrower compares. - [Sandbox](/guides/sandbox): what each simulator does, its guards, and what it never does (it never approves anything a person entered, and nothing past the payout). - [Versioning and deprecation](/guides/versioning): additive changes inside `/v1`, what counts as breaking, Deprecation and Sunset headers, six months' notice (proposed). - [Changelog](/guides/changelog): changes to the API, newest first. ## Code - Quick-start collection (Bruno) (in the integration package TFG hands you): the sandbox flow end to end, with assertions on every request; environments carry placeholders only. - [TypeScript snippets](/snippets#typescript): `borrouClient.ts` (token cache, idempotent writes with retries, pagination), `webhooks.ts` (signature verification), `addressVerification.ts` (collateral-address signatures), `quickstart.ts`. - [Python snippets](/snippets#python): `borrou_client.py` (requests), `borrou_webhooks.py` (standard library), `borrou_addresses.py` (cryptography), `quickstart.py`, `test_borrou_webhooks.py`, `test_borrou_addresses.py`. - [Java snippets](/snippets#java): `BorrouClient.java` (java.net.http), `BorrouWebhooks.java`, `BorrouAddresses.java`, `Quickstart.java`, `BorrouWebhooksTest.java`, `BorrouAddressesTest.java`. - [Webhook signature fixture](/snippets/fixtures/webhook-signatures.json): signatures made by Borrou's own signing code, to test a verifier against. - [Address attestation fixture](/snippets/fixtures/address-attestations.json): collateral-address attestations made by Borrou's own signing code, with the keys, to test an address verifier against.