Skip to main content
The Authentication & sessions endpoints handle everything needed to establish and maintain an authenticated session with the Neuron Agent API. After creating an account via Accounts & onboarding, use these endpoints to log in, keep sessions alive, and securely validate tokens. All authenticated API calls require a JWT bearer token in the Authorization header:
Tokens are short-lived (up to 3600 seconds) and must be refreshed before they expire.

Endpoints

Typical session flow

Login methods compared

Token lifetime

  • Maximum token lifetime is 3600 seconds (1 hour).
  • Call Refresh before the token expires to get a new JWT without logging in again.
  • Once a token expires, you must call Login again.
  • Call Logout to immediately invalidate a token.