Users
Manage user accounts. Standard users can see who the users of their organization are and update their own account. Administrative endpoints allow creating, archiving, and managing other user accounts.
All endpoints require authentication via X-API-Key header and the appropriate scope.
User Object
GET /users, GET /users/:id, POST /users and PATCH /users/:id answer each user as exactly four fields:
{
"_id": "user_456",
"username": "Sample Person",
"email": "sample@example.com",
"role": "developer"
}
| Field | Type | Description |
|---|---|---|
_id | string | The user's id: what /users/:id takes |
username | string | The user's name |
email | string | The user's email address |
role | string or null | The user's platform role: admin, developer or app. null for a user who has none |
Nothing else about a user is returned: no profile or organization. Your own organization and API key are in GET /me.
GET /api/v1/users
List the users in your organization, each as a user object.
Scope: users:read
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
q | string | No | Case-insensitive match on email address or name (username is not searched) |
active | boolean | No | Filter by active status |
limit | integer | No | Number of results to return (default: 50, max: 200) |
cursor | string | No | meta.nextCursor of the previous page; omit for the first page |
sort | string | No | Sort field, prefixed with - for descending (default: -createdAt) |
Response 200 OK
{
"data": [
{ "_id": "user_456", "username": "Sample Person", "email": "sample@example.com", "role": "developer" }
],
"meta": {
"total": 25,
"limit": 50,
"nextCursor": null,
"requestId": "req_abc123"
}
}
GET /api/v1/me
Who you are authenticated as: your user (a user object plus its _id), your organization and your role in it, the API key the call used (absent when you call with a session), and homeAppId: the Home App an app user signs in straight into (null for everyone else). It needs no scope, so it is the simplest way to check a key works.
Response 200 OK
{
"data": {
"_id": "fJHgtbiLZyMkFqJC6",
"username": "Sample Person",
"email": "sample@example.com",
"role": "developer",
"homeAppId": null,
"governanceEmail": true,
"organization": { "_id": "org_xyz", "role": "owner", "isMultiTenant": false, "isSolo": false },
"apiKey": { "_id": "key_abc123", "name": "CI", "keyPrefix": "sk-prod-ab12", "scopes": ["workflows:read"], "expiresAt": null }
},
"meta": { "requestId": "req_abc123" }
}
In organization, isMultiTenant is whether the platform is Strongly Cloud.
GET /api/v1/me/app-cards
The apps you may open, as cards: your Home App first, then the others by name. Each card is the app's _id, name, displayName and thumbnail (its icon, a data URL), and available: whether it opens now (for a Home App, also that it is enabled as one). Nothing else of an app is answered. It is an app user's whole view of the platform: the Strongly iPhone app shows them these cards, or opens their Home App (GET /me homeAppId). It pages with limit and cursor (Pagination).
{
"data": [
{ "_id": "app-4t3ry3ek2a9w", "name": "field-notes", "displayName": "Field Notes", "thumbnail": "data:image/png;base64,...", "available": true }
],
"meta": { "total": 1, "limit": 50, "nextCursor": null, "requestId": "req_abc123" }
}
GET /api/v1/me/github-ssh-keys
List your GitHub SSH keys: id, label, public key and fingerprint (never the private key). A GitHub source (an app's bundleSource, a volume's or project's code) names one of them as sshKeyId. Keys are added in your profile settings. It pages with limit and cursor (Pagination).
Scope: users:read
{
"data": [
{ "_id": "k1", "label": "laptop", "publicKey": "ssh-ed25519 AAAA...", "fingerprint": "SHA256:...", "createdAt": "2026-09-01T10:00:00.000Z" }
],
"meta": { "total": 1, "limit": 50, "nextCursor": null, "requestId": "req_abc123" }
}
PATCH /api/v1/me
Update the currently authenticated user's own profile.
Scope: users:write
Request Body
{
"name": "Sample Person",
"governanceEmail": false
}
| Field | Type | Required | Description |
|---|---|---|---|
name | string | No | Display name |
photo | string | No | Profile photo, as a URL or base64 image data |
governanceEmail | boolean | No | Whether governance events (approval requests, decisions, escalations) are emailed to you. They always appear in your notifications. |
Any other field returns 400 validation-error.
Response 200 OK
You, as GET /api/v1/me shows you.
DELETE /api/v1/me
Delete your own account: it is deactivated at once, its API keys are revoked, and its data is erased on schedule. The account itself is archived the same way an administrator archives a user, with its memberships (organization, app-user entries, team seats).
Scope: users:write
Response 200 OK: what deleting the account removed: { assetAction, assetResult }, assetAction delete and assetResult what was deleted (both null when the account was already deleted).
GET /api/v1/users/:id
Get a user by ID as a user object. An archived user is not found (404): the API never lists or returns one.
Scope: users:read
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | Yes | User ID |
Response 200 OK
{
"data": { "username": "Bob Johnson", "email": "bob@example.com", "role": "app" },
"meta": { "requestId": "req_abc123" }
}
POST /api/v1/users
Create a new user account. Requires administrator privileges.
Scope: users:admin
Request Body
{
"email": "newuser@example.com",
"name": "New User",
"role": "developer",
"sendEmail": true
}
| Field | Type | Required | Description |
|---|---|---|---|
email | string | Yes | User email address. Must be a valid address not already used by another user |
name | string | Yes | The person's name, never an email address (400 validation-error otherwise). Their own organization is named after it: <name>'s Organization |
role | string | No | The user's role: app, developer, or admin (default: app; any other value is treated as app) |
sendEmail | boolean | No | Send a welcome email with a link to set a password, when the platform can send email (default: true). Pass false to send no email and get a temporary password in the response instead |
profile | object | No | Extra profile fields stored on the new user |
There is no password field: the user sets their own password from the welcome email, or signs in with the temporary password. Any field not listed above returns 400 validation-error, as does a missing email or name or an invalid email address. An email that already belongs to a user, in any letter case, is refused with 409 duplicate and nothing is created.
Response 201 Created
{
"data": {
"_id": "user_new001",
"username": "New User",
"email": "newuser@example.com",
"role": "developer",
"temporaryPassword": "Xy12Ab34Cd56"
},
"meta": { "requestId": "req_abc123" }
}
data is the new user object and temporaryPassword, the password the account was created with. It is answered only here: keep it, or let the user set their own from the welcome email.
PATCH /api/v1/users/:id
Update a user account. Requires administrator privileges.
Scope: users:admin
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | Yes | User ID |
Request Body
{
"name": "Updated Name",
"isDeveloper": true,
"active": true
}
| Field | Type | Required | Description |
|---|---|---|---|
name | string | No | Display name |
email | string | No | New email address. It is marked unverified and must be a valid address not used by another user |
active | boolean | No | false deactivates the user |
isAdmin | boolean | No | Sets the user's single role: admin if isAdmin is true, otherwise developer if isDeveloper is true, otherwise app |
isDeveloper | boolean | No | See isAdmin |
Any other field returns 400 validation-error.
Response 200 OK
The updated user.
GET /api/v1/users/:id/assets
Get a summary of all resources owned by a user. Useful before archiving to understand the impact.
Scope: users:admin
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | Yes | User ID |
Response 200 OK
{
"data": {
"userId": "user_789",
"userName": "Sample Person",
"userEmail": "sample@example.com",
"organizationId": "org_xyz",
"isSSO": false,
"assets": {
"apps": 3,
"workspaces": 2,
"workflows": 5,
"projects": 1,
"volumes": 0,
"addons": 1,
"datasources": 2,
"prompts": 8,
"abTests": 0,
"routers": 1,
"aiModels": 4,
"guardrails": 2,
"mlModels": 0,
"knowledgeBases": 0,
"pools": 1,
"skills": 4,
"rules": 2,
"memories": 12,
"libraryArtifacts": 0,
"tasks": 0,
"preferences": 3,
"stanSessions": 2,
"stanConversations": 6,
"stanMemories": 3,
"stanSkills": 0,
"stanArtifacts": 1,
"total": 63
},
"deletion": {
"items": [
{ "label": "Apps", "count": 3 }
],
"total": 63,
"othersWorkspacesInProjects": 0
},
"transferRecipients": [
{ "userId": "user_789", "name": "Sam Rivera", "email": "sam@example.com", "label": "Sam Rivera (sam@example.com)" }
]
},
"meta": { "requestId": "req_abc123" }
}
transferRecipients is who the user's resources may be transferred to (POST /users/:id/archive transferTo), each { userId, name, email, label } with label "Name (email)": any active admin or developer (on Strongly Cloud, any active developer of the user's organization).
deletion previews what deleteResources would remove: each resource type the user owns with its count, and how many other users' workspaces sit inside projects the user owns (they are deleted with those projects).
assets counts the user's Library records and agent primitives (knowledgeBases, pools (pools and Imprints), skills, rules, memories, libraryArtifacts, tasks, preferences) and their own STAN records (stanSessions, stanConversations, stanMemories, stanSkills, stanArtifacts) beside every other resource type.
POST /api/v1/users/:id/archive
Archive a user account. Archived users cannot log in. Their resources are either transferred (transferTo) or deleted (deleteResources: true): there is no other choice. When the user owns anything one of the two is required, and a request with neither is refused (400, validation-error); only a user who owns nothing is archived with neither. transferTo must be one of the transferRecipients that GET /users/:id/assets lists: any active admin or developer (on Strongly Cloud, any active developer of the user's organization, never an admin); anyone else is refused (400). A transfer moves ownership, access and sharing together: the receiver owns each resource and leaves its share lists; the resources stay in their organization (no namespace or add-on data moves). From the moment of the transfer FinOps books the cost of every transferred resource, running workloads included, to the receiver, with no redeploy; everything it cost before stays with the archived user.
With deleteResources, every resource the user owns is deleted through its own delete, under your authority as the administrator archiving them, never as the user: an app user's resources go even when the user could not delete them outside their app. The agents apps gave the user go with them whatever the asset action.
Library records, agent primitives, governance solutions and policies and the user's own STAN records go the same way as every other resource: a transfer moves them (a preference whose key the new owner already has becomes history behind theirs; a STAN artifact whose title they already use is renamed "title (from previous owner)"), deleteResources deletes each through its own delete with its versions and stored files (their Imprints first, so the records those locked go too). Removing a member from an organization moves or deletes their Library records the same way; their STAN records stay with their account.
With deleteResources, an organization the user is the only member of (their own) is archived and its Kubernetes namespace is removed with everything in it.
Users are never deleted, only archived, so analytics and FinOps history keep who did what. Archiving a user archives their memberships with them, never deleting one: their organization memberships, their app-user entries and their team seats, and Stripe stops collecting the app subscriptions they pay for. An archived user is in no member list, seat count, team bill or app-user count, and belongs to no organization.
Their budgets stop: every budget scoped to them and every budget of an organization archived with them is paused, with stopped { reason: "user-archived", userId, stoppedAt } (budget object). Their part in governance stops: their pending approval requests are withdrawn (no reviewer lists or decides them), and they stop being a reviewer; each pending request they could review is decided again by the reviewers left, or sent to the platform administrators when none is left. Unarchiving them resumes exactly the budgets their archive stopped (unless a manager paused or resumed one since) and restores their reviews and withdrawn requests.
The API never lists or returns an archived user and has no unarchive: an administrator unarchives one by hand in the dashboard, by adding or inviting their email again (the dialog offers Unarchive).
Scope: users:admin
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | Yes | User ID |
Request Body
| Parameter | Type | Required | Description |
|---|---|---|---|
transferTo | string | When they own anything and deleteResources is not true | User ID of who receives their resources: one of the transferRecipients of GET /users/:id/assets |
deleteResources | boolean | When they own anything and transferTo is not given | true deletes everything they own. Not with transferTo (400) |
Response 200 OK
The user, with what archiving did with their resources: assetAction is transfer or delete (null when they owned nothing), and assetResult is what was transferred or deleted (null when they owned nothing).
{
"data": {
"_id": "user_456",
"username": "Sample Person",
"email": "sample@example.com",
"role": "developer",
"assetAction": "transfer",
"assetResult": {
"success": true,
"transferred": { "apps": 3, "workflows": 5, "total": 29 },
"transferredTo": "user_789"
}
},
"meta": { "requestId": "req_abc123" }
}
POST /api/v1/users/:id/reset-password
Reset a user's password. Sends a password reset email or generates a temporary password. Requires administrator privileges.
Scope: users:admin
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | Yes | User ID |
Response 200 OK
The user, with emailSent. When the email could not be sent, resetToken is the token for the reset link (/reset-password/<resetToken>), shown once, to pass on another way.
{ "data": { "_id": "user_456", "username": "Sample Person", "email": "sample@example.com", "role": "developer", "emailSent": false, "resetToken": "..." }, "meta": { "requestId": "req_abc123" } }