Authentication
Every other endpoint requires an OAuth 2.0 Bearer token. Exchange your client_id and client_secret for an access token — server-side only — and reuse it until it expires.
Tips
- The token lifetime is in the response.
data.expires_inis the number of seconds the token is valid for. Do not hardcode a lifetime; read it from each response. - Cache the token on your backend until shortly before
expires_inelapses and refresh proactively. The token is a JWT, so you can also decodeexpdirectly. - Errors. Rejected credentials return
401. A request missingclient_idorclient_secretreturns400. - Never put
client_secretin the frontend. The client app should call your backend, which calls VOTR. - One environment per credential pair. Development and Production credentials are not interchangeable.
Loading playground…