Users
Last updated 10 days ago
Users
Base path: /v1/users · Auth: Bearer
Create, update and delete are admin-only
POST /v1/users, PATCH /v1/users/{userId} and DELETE /v1/users/{userId} are administration: only admins and owners may call them, everyone else gets 403 with {"code":"FORBIDDEN"}. Because a token carries at most the role user (role of a token), these three are currently blocked for tokens. Reading (GET) and your own profile (PATCH /v1/users/me) still work.
Query (GET /v1/users)
Pagination (page, pageSize, search, sort) plus:
Body — create (POST /v1/users)
Body — update (PATCH /v1/users/{userId} or /me)
All optional: status (active/inactive/suspended), first_name, last_name, avatar, color (#RRGGBB), role, teams, country, locale, timezone, languages, darkmode (auto/light/dark).
Example
bash
curl https://api.eu.liza.app/api/v1/users/me \ -H "Authorization: Bearer YOUR_TOKEN"bash
curl "https://api.eu.liza.app/api/v1/users?limit=20&search=anna" \ -H "Authorization: Bearer YOUR_TOKEN"Was this helpful?
Still need help? Ask the team