Before you start
You need your account’s exact HTTPS host, username, password, and a reachable HTTPS URL identifying your application. If you have an API key and secret instead, create your sandbox account and identity first. See Get API access for both access options. For a sandbox account, usesandbox.neuro-tech.io. For another environment, use the host supplied by its operator. An account and its credentials belong to that environment.
1. Calculate the login signature
Generate a fresh nonce from at least 32 cryptographically random bytes and encode it as Base64. Use that exact string in both the signed message and the request body.https:// and paths, and includes the port if it is not the default.
Use standard Base64 for the HMAC digest, not hexadecimal or Base64URL. The HMAC key is the account password. Check your language’s implementation against the authentication test vector.
2. Sign in
Send this request over HTTPS, replacing the placeholders with your host, username, nonce, and calculated signature:Referer with your application’s URL. Include it on every Agent API request, including login and calls from a backend. Login does not require a bearer token.
A successful response contains jwt and expires. Retain the JWT in your backend session and use the returned expiry when deciding whether to sign in again.
See Login reference for the response schema.
3. Retrieve your account
Copy the returnedjwt into the Authorization header and send an empty JSON object: