Before you begin
- Credentials. Contact Ripio to request your partner registration and obtain the
client_idandclient_secretthat uniquely identify you as a Ripio customer. It is your responsibility to secure them. - Your users’ identity data. Every
POST /authcarries the user’s KYC data. Check which fields your country needs before you start — see User verification (KYC). - Webhook keys, if you receive webhooks. An exchange of Ed25519 public keys: Ripio gives you its public key to verify the requests it sends, and you give Ripio yours to verify your responses — see Webhooks.
This is the only widget endpoint you call directly, and it must be called from your server, never from the browser:
client_secret should never reach the end user’s device. Every other request — quotes, execution, portfolio, activity — is made by the widget itself on the user’s behalf, so there is no other widget API for you to integrate against.How a session starts
You never handle the user’s session token. Your server asks Ripio for a session code, you hand that code to the widget, and the widget exchanges it for the session on its own as soon as it loads.- Your server calls
POST /authand receives asession_code. - You pass the code to the widget — as the
codeproperty when embedding it, or in the URL fragment for a WebView. - The widget redeems the code, removes it from the URL and the page, and starts the user’s session.
Generate a session code
Endpoint:https://b2b-crypto-widget-api.sandbox.ripio.com/api/v1/auth
Method: POST · Content-Type: application/json
Request:
kyc_submission above is shortened: send every field your country requires, as listed in User verification (KYC).
Response:
Once redeemed, the session lasts one hour from the moment you called
POST /auth. When it ends, the widget tells you so you can hand it a fresh code without reloading your page — see Session lifecycle.
Narrowing a session
Picking a style
If your account has more than one style, send the one this entry point uses:Errors
See Troubleshooting for the full error contract used across the widget’s endpoints.