Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.neuro-tech.io/llms.txt

Use this file to discover all available pages before exploring further.

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:
Authorization: Bearer {token}
Tokens are short-lived (up to 3600 seconds) and must be refreshed before they expire.

Endpoints

EndpointDescription
LoginExchange a username and password for a JWT. The standard login method for back-end services.
Quick loginAuthenticate using the current HTTP session cookie (browser-based flows). Requires cookies to be enabled.
WWW loginAuthenticate using the HTTP WWW-Authenticate header mechanism. Use Login instead where possible.
Get session tokenRetrieve session info for an account created via web form, without re-entering credentials.
RefreshExtend a valid JWT before it expires, without re-entering credentials.
LogoutInvalidate the current JWT and terminate the session.
Authenticate JWTValidate a JWT issued by the broker and retrieve its parsed claims. Useful for service-to-service verification.
Prepare remote quick loginPrepare a remote Neuron for a Quick Login attempt by retrieving the caller’s Legal ID.
Remote quick loginTrigger a Quick Login on a remote Neuron using a Legal ID — no QR code scan required.

Typical session flow

Login methods compared

MethodUse caseRequires cookies
LoginBack-end services, server-to-serverNo
Quick loginBrowser sessions on the same brokerYes
WWW loginHTTP WWW-Authenticate header flowsNo
Remote quick loginCross-broker login via Legal IDNo

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.