Get Current Onboarding
GET
/web/v1/users/self/onboardingJWTRetrieves the current onboarding state for the authenticated user. This is the first call after login to determine whether the user should enter a default workspace or be directed to a workspace selection page.
Authentication
Auth Chain: WEB Chain — requires
Authorization: Bearer <jwt>These headers are injected by the system (frontend does nothing):X-PORTAL-ACCESS-CODE(Nginx),X-Request-Id(Gateway)
Request Parameters
No request parameters required.
Success Response
Success200
{
"version": "1.3.0",
"timestamp": 1709337600000,
"success": true,
"code": "2000",
"message": "SUCCESS",
"data": {
"hasWorkspace": true,
"defaultWorkspaceId": "ws_abc123",
"pendingInvitations": 2
}
}Error Responses
Unauthorized401
{
"success": false,
"code": "4010",
"message": "Invalid or expired token"
}Notes
- This endpoint aggregates workspace membership and invitation data into a single onboarding response.
- Called immediately after successful login to route the user to the appropriate landing page.