Authentication (same for all endpoints)
- App key (
scapp_…) — can only manage users in its own app - Workspace key (
scwor_…) — can manage users in any app within the workspace (or any child workspace, if you’re an MSP parent)
403 "API key not authorized for this app".
Create a user
:app_id is the Client App ID (app_…) — the app the user should belong to.
Body
Eitheremail or phone is required. Everything else is optional.
Example
Response — 200 OK
app_id and workspace_id echo the parent — use them to map users back to the right client in your own database.
Get a user
:id is the user UUID returned at creation.
List / search users
Query parameters
page,per_page— paginationsearch— fuzzy match on name / email / phone (requirespg_trgm)status— filter byactiveorinactive
Response
Update a user
PATCH leaves untouched fields alone; PUT overwrites the whole record.
Activate / deactivate
status between active and inactive. Deactivated users can’t sign in but aren’t deleted.