You'll need to authenticate your requests to access any of the endpoints in the Remyx API. In this guide, we'll look at how authentication works. Remyx offers OAuth2 with a token to authenticate your API requests.

OAuth2 with bearer token

When establishing a connection using OAuth2, you will need your access token — you will find it in the Account Information under API Access. Here's how to add the token to the request header using cURL:

Example request with bearer token

curl \
  -H "Authorization: Bearer {token}"

Always keep your token safe and reset it if you suspect it has been compromised. Tokens expire every 30 days.

Using the CLI

If you use the Remyx CLI, you simply need to fetch your access token from the Account Information under API Access and set it as an environment variable, and the client library will take care of the rest.

Example authentication with CLI

export REMYXAI_API_KEY=<your-token-here>

Was this page helpful?