Skip to main content
Source: equa-server/modules/api/src/endpoints/user-endpoints.ts

User Endpoints

Endpoints for managing user-level state and preferences. These are separate from the auth endpoints which handle authentication and profile updates. All user endpoints require authentication.

User State

User state stores onboarding progress, UI preferences, and feature flags for the authenticated user.

Update User State

PATCH /v1/user/state
FieldValue
AuthRequired
Update the user’s state (onboarding steps completed, UI preferences, etc.). Request:
{
  "completedSteps": ["profile", "organization", "captable"],
  "preferences": {
    "theme": "dark",
    "dashboardLayout": "compact"
  }
}
Response:
{
  "state": {
    "completedSteps": ["profile", "organization", "captable"],
    "preferences": {
      "theme": "dark",
      "dashboardLayout": "compact"
    }
  }
}

Get User State

GET /v1/user/state
FieldValue
AuthRequired
Retrieve the current user’s state. Response:
{
  "state": {
    "completedSteps": ["profile", "organization"],
    "preferences": {
      "theme": "light"
    }
  }
}