Skip to main content

Before you begin

  • Credentials. Contact Ripio to request your partner registration and obtain the client_id and client_secret that uniquely identify you as a Ripio customer. It is your responsibility to secure them.
  • A signing key for webhooks. Issued alongside your credentials — 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.

Generate a session token

Endpoint: https://b2b-crypto-widget-api.sandbox.ripio.com/api/v1/auth Method: POST · Content-Type: application/json Request:
Response:
Pass this token to the widget — as the token attribute or the _to query parameter — to start the user’s session. See Embedding the widget.
The token is a bearer credential for that one user’s session. Treat it the same way you’d treat any other short-lived access token: pass it to the client over a secure channel and don’t log it.

Narrowing a session

This session can only buy and sell, regardless of what else your account has enabled — useful when you want a specific entry point of your app to expose a narrower widget than your account is capable of.

Errors

See Troubleshooting for the full error contract used across the widget’s endpoints.