Most API endpoints require you to authenticate your requests using a Json Web Token (JWT). You can obtain a JWT by making a POST request to https://api.rhino.fi/authentication/auth/apiKey and including your API key in the payload.

curl https://api.rhino.fi/authentication/auth/apiKey \
  -d '{"apiKey": "YOUR_API_KEY"}'\
  -H 'content-type: application/json'

Using the JWT

Once you have a JWT, you need to include it in your API requests using the Authorization header. Example:

curl https://api.rhino.fi -H 'Authorization: YOUR_JWT'

A JWT obtained from an API key is only valid for one hour. Once expired, you can just use your API key again in the same way to obtain a fresh JWT.

We recommend using the SDK if you use JavaScript/TypeScript for your application as it will take care of handling the JWT flow for you.