Issue an impersonation token that allows an admin user to act as a specific customer within the portal.
Documentation Index
Fetch the complete documentation index at: https://learn.nexudus.com/llms.txt
Use this file to discover all available pages before exploring further.
401 Unauthorized response.
endpoints.ts but not invoked anywhere in the portal frontend. The response shape below is inferred from the
sibling endpoint GET /api/public/coworkers/{coworkerId}/impersonate, which returns the same structure and is actively used./api/sys/users/exchange endpoint to obtain a full bearer session.
endpoints.ts but has no callers in the portal. The public sibling endpoint (/api/public/coworkers/{coworkerId}/impersonate) is used instead for team-admin impersonation flows:
GET /api/public/coworkers/{coworkerId} /impersonate via useSignIn().impersonate().| Context | Source file |
|---|---|
| Endpoint definition (unused) | src/api/endpoints.ts |
| Team member impersonation (public sibling) | src/views/auth/SignIn/useSignIn.ts |
| Impersonate button in team management | src/views/user/team/permissions/components/TeamPermissionTable.tsx |
coworkerId was found in this location.| Method | Endpoint | Description |
|---|---|---|
GET | /api/public/coworkers/{coworkerId}/impersonate | Public impersonation — used by team admins in the portal |
POST | /api/sys/users/exchange | Exchange a JWT for a bearer token |
GET | /api/public/coworkers/profiles | List all profiles for the current session (source of coworkerId) |
PUT | /api/public/coworkers/profiles/current | Switch the active profile without impersonation |