Overview
The Agent API uses two authentication mechanisms:- HMAC-signed requests for account creation and login.
- JWT bearer tokens for authenticated requests after login.
HMAC signatures
Use a cryptographically strong, unique nonce for each signed request. The nonce and signature pair must never be reused.Create account signature
TheAccount/Create signature is HMAC-SHA256 of the following string, using
your API secret as the key:
Login signature
TheAccount/Login signature is HMAC-SHA256 of the following string, using the
account password as the key:
JavaScript example
The host value is the domain only (no scheme). For example, use
neuron.example.com, not https://neuron.example.com.JWT bearer tokens
Most endpoints require a JWT returned byAccount/Create or Account/Login.
Send it as a bearer token:
Alternative login flows
If you need browser-based login or quick device pairing, review:Security tips
- Use nonces with at least 32 characters of entropy.
- Never reuse nonces or signatures.
- Store API secrets and passwords in a secure vault.
- Refresh JWTs before they expire.