sub claim and is required for most API endpoints.
Authentication Methods
Bearer Token (REST API)
Include the token in theAuthorization header:
WebSocket Subprotocol
When connecting via WebSocket, pass the token as a subprotocol:Environment Variable (CLI)
Set theAETHER_TOKEN environment variable for CLI usage:
Obtaining a Token
Via the CLI
Token Refresh
Access tokens expire after a short period. Use the refresh token to obtain a new access token without re-authenticating. The CLI handles token refresh automatically.Unauthenticated Requests
Requests to protected endpoints without a valid token receive a401 Unauthorized response: