Skip to content

Authentication

Security is a priority for Aura Live. Most API endpoints and all WebSocket connections require a valid authentication token.

Aura Live uses the Bearer Token authentication scheme. Every request to a protected endpoint must include an Authorization header.

Authorization: Bearer <YOUR_API_TOKEN>

Tokens are managed via your user profile in the Aura Live frontend.

  1. Log in to the Aura Live Frontend.
  2. Navigate to your Profile/Settings.
  3. Generate a new API Token.
  4. Copy the token immediately (it will only be shown once).

Depending on the endpoint or the library you are using, you might interact with authentication in two ways:

Section titled “1. HTTP Authorization Header (Recommended)”

This is the standard way to authenticate REST requests.

Terminal window
curl -X GET "https://api.aura-live.com/api/v1/languages" \
-H "Authorization: Bearer your_token_here"

Some endpoints also support authentication via a custom X-API-Key header, which is strictly mapped to your token.

Terminal window
curl -X GET "https://api.aura-live.com/api/v1/languages" \
-H "X-API-Key: your_token_here"

For WebSocket connections, authentication is handled during the initial handshake. You must provide your token as a query parameter called token.

const socket = new WebSocket('wss://api.aura-live.com/ws/session?token=your_token_here');

[!CAUTION] Never share your API tokens. If a token is compromised, revoke it immediately via the user settings dashboard and generate a new one.