Documentation Index
Fetch the complete documentation index at: https://docs.lasscyber.com/llms.txt
Use this file to discover all available pages before exploring further.
| HTTP status | 401 Unauthorized |
| Code | unauthorized |
| Retry? | No — refresh credentials and re-issue. |
When this happens
The request reached the API but authentication failed. Common causes:- No
Authorizationheader at all. - The header is present but the bearer token is empty / malformed.
- The API key has been deleted (rotated out).
- The Auth0 JWT has expired.
- The
Agnes-Versionis so old the server cannot accept its credentials.
forbidden (403).
Example response
How to fix
- Confirm the
Authorization: Bearer …header is set. - Confirm the token’s prefix:
ak_for live keys.ak_test_for sandbox keys.- JWT for Auth0-authenticated dashboard requests.
- If using API keys, mint a fresh one in
agnes.lasscyber.com/keysand delete the old one once the new one is rolled out. - If using JWTs, sign in again from the dashboard.
SDK behaviour
| SDK | Exception |
|---|---|
| Python | agnes.AuthenticationError |
| TypeScript | AuthenticationError |
request_id on the exception. SDKs do not retry
401s automatically; the only way out is to refresh credentials.
Related
- Authentication — bearer headers, key rotation, version pinning.
forbidden— authentication succeeded but authorization failed.