Agent Manager uses JWT-based authentication backed by Spring Security. All API endpoints — including streaming and SSE connections — require a valid token. This page explains how to obtain a token, include it in your requests, and understand how identity is used to partition data across tenants.Documentation Index
Fetch the complete documentation index at: https://operativusai.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Obtaining an access token
Use the login endpoint to exchange your credentials for a signed JWT:token value — you’ll include it in every subsequent request.
The exact authentication provider (local credentials, OAuth2 SSO) depends on your deployment configuration. Contact your platform administrator if you’re unsure which login method is configured.
Authenticating API requests
Include the token as a Bearer credential in theAuthorization header of every request:
Associating runs with a user and organization
When submitting a run, includeuserId and orgId in the request body to associate the run with a specific user and organization. This is how session history, memories, and knowledge base access are scoped:
Authenticating SSE streaming connections
BrowserEventSource connections cannot send Authorization headers. Agent Manager handles this by issuing short-lived opaque SSE tokens that you pass as a query parameter.
SSE tokens are single-use, expire after 60 seconds by default, and are scoped to the run they were issued for. A leaked token is near-useless given the short TTL and single-use constraint.
Common authentication errors
| Status | Meaning | Action |
|---|---|---|
401 Unauthorized | Token is missing, invalid, or expired | Re-authenticate via POST /api/auth/login to obtain a fresh token |
403 Forbidden | Token is valid but your role lacks permission for the requested operation | Contact your administrator to review RBAC role assignments |
404 Not Found (on a known resource) | You may be accessing a resource that belongs to a different orgId | Verify you are using the correct orgId for your tenant |
Registering a new user
If your deployment uses local credential management, new accounts can be registered via:POST /api/auth/login to obtain your token.