Skip to main content

Generate authentication token

This service provides an access JWT token for the user to use the On Ramp Widget. Endpoint: https://b2b-widget-onramp-api.ripio.com/api/v1/auth
Sandbox:: https://b2b-widget-onramp-api.sandbox.ripio.com/api/v1/auth
Method: POST Parameters: Disclaimer:
  • external_ref: UUID v4 that represents the user logged into your system. It must be a unique and unrepeatable identifier of a user of your system (Read more about UUID and try using generator). This value is then used in the request for approval of a purchase transaction or when reporting the result of a transaction. (see Webhooks). In the documentation we refer to this value as external_ref. It is validated as a UUID, so a non-UUID value is rejected.
  • address: A string that represents the blockchain address or wallet identifier for the user. For off-ramp operations, use the same address as used in on-ramp. Whether it is mandatory depends on your partner configuration — if your account requires it, omitting it returns a 422 (see Errors). If it is not required for your account, you can send a two-part username (client_id:external_ref).
Request:
Example:
Response:
This endpoint returns the token under a token key, not nested under data like most other widget API responses.

Errors

Validation failures return HTTP 422 with a flat body — just a detail string field: