User Authorization
The purpose of user authorization set up in the backend is for Upsolve AI to provide appropriate data access based on your user permissioning set up. In your product’s authentication flow, you register users with Upsolve using the project user registration flow: register an organization once per customer entity, register a user once per account, then fetch a short-lived user token on every login. The token tells Upsolve AI who the authorized user is and what data they can access, and is used to provide the appropriate access to the agent and underlying data.To generate your API Key please go to the deploy page.
Project User Token
When embedding an Application Space (via thehttps://ai-hub.upsolve.ai/share/application/:applicationId iFrame), you need a project user token. This token identifies a specific user within a project organisation and is used by the embed to load their personalised Space.
Endpoint
Request
| Field | Type | Required | Description |
|---|---|---|---|
userId | string (UUID) | Yes | The project user’s ID (found in your project’s user list) |
organizationId | string (UUID) | Yes | The organisation ID the user belongs to |
apiKey | string | No | Your Upsolve embed API key (if not passed via Authorization header) |
expiration | number | No | Token lifetime in seconds (default: 3600) |
Response
Example
projectUserToken as the jwt query parameter in the Application iFrame src. See Frontend Setup for the full embed example.
New integrations should use
POST /v1/api/projects/user-token directly. Legacy tenant-based integrations remain supported, but the project user flow is the recommended path going forward.Setup Inspection
You could inspect whether the user authorization is setup successfully. Navigate to the Deploy application using the side navigation bar.
