Skip to main content

Getting started

The Rivus API v1 is a REST API to do through an integration everything you do in the Portal:

  • check balances and statements;
  • quote and execute BRL ⇄ USDT conversions;
  • create Pix charges;
  • request withdrawals and transfer funds to other Rivus clients;
  • receive webhooks when something changes.

Environments​

EnvironmentBase URLKey prefix
Productionhttps://api.rivusfinance.comrvs_live_…
Sandboxhttps://api-sandbox.rivusfinance.comrvs_test_…

The sandbox runs the same version as production, but with no real money: brokers and banks are simulated. Build and test your integration there before going to production. See Sandbox.

1. Get a key​

  1. Ask Rivus to enable API access on your account (and, for testing, a sandbox user).
  2. In Credentials, choose the environment, sign in with your user and create a key choosing its scopes and, optionally, an IP allowlist. For production, the same screen is in the Portal, under Settings → API and integrations.
  3. The key is shown only once. Store it in a secrets vault.

Details in Authentication.

2. Make your first call​

export RIVUS_API_KEY="rvs_test_…"

curl https://api-sandbox.rivusfinance.com/v1/account \
-H "Authorization: Bearer $RIVUS_API_KEY"

The response shows the account linked to the key, what is enabled and your limits:

{
"id": "3f1c2b4a-…",
"name": "Empresa Exemplo Ltda",
"is_active": true,
"conversion_enabled": true,
"conversion_sell_enabled": true,
"conversion_max_per_tx_brl": 500000,
"conversion_daily_limit_brl": 2000000,
"withdrawal_enabled": true,
"withdrawal_max_per_tx_brl": 100000,
"withdrawal_max_per_tx_usdt": 20000,
"scopes": ["read", "trade"]
}

3. Follow a flow​

Every endpoint, with parameters, responses and a button to test against the sandbox, is in the API reference.

Postman​

Prefer Postman? Import the collection and the sandbox environment: