API Reference

Users

8 endpoints· Auth: JWT or API Key
get/api/v1/console/users JWT API Key

The team of the caller's branch

Capability
manage_users
API key scope
cap:manage_users (the key's owner must also hold the capability)

Query parameters

RoleId
string (uuid)
Filter by role row. Optional; matches `User.roleId` exactly.
Active
boolean
Filter by the reversible suspension flag. Null means "both".
IncludeDeleted
boolean
Include tombstoned accounts (FR-IAM-113). Owner-only, and re-asserted in the service: a retired employee's row is history, and history is not a default view.
Page
integer (int32)
—
PerPage
integer (int32)
—
Search
string
Free-text filter. Its meaning is per-resource and documented on the endpoint.
Skip
integer (int32)
Rows to skip, derived — never sent by the caller on this surface.
Sort
string
A snake_case column key from the endpoint's allow-list (`created_at`, `gross_total`, `status` …). Absent or blank → the endpoint's default order.
Dir
string
`asc` (the default when Panoptes.Application.Common.SortableRequest.Sort is present) or `desc`. Ignored without a sort.

Responses

200Success
cURL
curl -X GET "https://staging-api.panoptesos.com/api/v1/console/users" \
  -H "X-Api-Key: <YOUR_API_KEY>"
Try itagainst staging · https://staging-api.panoptesos.com

Query parameters

Headers

Set credentials in the “Authorize” menu
post/api/v1/console/users JWT

Invite a user and create their branch membership

Still `201 Created`: a row exists and has a URI, even though its holder cannot sign in yet. The body carries `pendingActivation`, and the message says whether the code actually left — an invite that was minted but not delivered succeeds, and the console is expected to offer resend rather than treat it as a failed creation.

Capability
manage_users
Signed-in user only
API keys and OAuth tokens are refused (403). Do this in the dashboard.

Request body

application/json
{
  "name": "string",
  "email": "string",
  "roleId": "00000000-0000-0000-0000-000000000000"
}
name
string
—
email
string
Unique <b>per organization</b>, not globally, and the index is partial on `deleted_at IS NULL` (FR-IAM-114) — so an address freed by a retirement is reissuable. <br>It is also the <b>delivery address for the activation code</b>, which raises the cost of a typo from "the new hire cannot be found in search" to "the invite went to a stranger". The format check at the boundary is the cheap half of that; the expensive half is that a wrong address simply never activates, and the owner resends to a corrected one.
roleId
string (uuid)
The `role` row's id, not a role code. v1 and v2 carried an unvalidated `role varchar`; FR-IAM-119 makes it a declared foreign key, and FR-IAM-057 makes the check a <b>lookup against a live row</b> rather than membership of a compile-time array.

Responses

200Success
cURL
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/users" \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: <YOUR_API_KEY>" \
  -d '{
  "name": "string",
  "email": "string",
  "roleId": "00000000-0000-0000-0000-000000000000"
}'
Try itagainst staging · https://staging-api.panoptesos.com

Request body (JSON)

Headers

This action refuses API keys — it needs a signed-in user. Switch to a JWT under Authorize, or do it in the dashboard.
Set credentials in the “Authorize” menu
get/api/v1/console/users/{id} JWT API Key

One user

A user in another branch reads as `NOT_FOUND`.

Capability
manage_users
API key scope
cap:manage_users (the key's owner must also hold the capability)

Path parameters

idrequired
string (uuid)
—

Responses

200Success
cURL
curl -X GET "https://staging-api.panoptesos.com/api/v1/console/users/{id}" \
  -H "X-Api-Key: <YOUR_API_KEY>"
Try itagainst staging · https://staging-api.panoptesos.com

Path parameters

Headers

Set credentials in the “Authorize” menu
patch/api/v1/console/users/{id} JWT

Change name, role, home branch or the active flag.,,

A role, branch or status change bumps `sessionVersion` and evicts every session of that user; the caller may not aim any of the three at their own row.

Capability
manage_users
Signed-in user only
API keys and OAuth tokens are refused (403). Do this in the dashboard.

Path parameters

idrequired
string (uuid)
—

Request body

application/json
{
  "name": "string",
  "roleId": "00000000-0000-0000-0000-000000000000",
  "branchId": "00000000-0000-0000-0000-000000000000",
  "active": false,
  "applyToAllBranches": false
}
name
string
—
roleId
string (uuid)
The new `role` row. A power change: it bumps `sessionVersion`.
branchId
string (uuid)
Move the user's home branch. A power change: it moves what they can see, so it bumps `sessionVersion` too, and the target must be a branch the <b>caller</b> is a member of. When their organisation-level role does not exist at the target (a role defined only in the branch being left), the move needs a Panoptes.Application.DTOs.Requests.Iam.UpdateUserRequest.RoleId the target has.
active
boolean
The reversible suspension (SRS §5.2.6). Distinct from the tombstone: `active = false` is undone from the same panel, a tombstone is terminal.
applyToAllBranches
boolean
Set <b>every</b> live branch grant of this person to the organisation-level role — the one in Panoptes.Application.DTOs.Requests.Iam.UpdateUserRequest.RoleId, or their current one when no role is sent. <br>Without it a role change still reaches every grant that carried the <i>previous</i> organisation-level role (so a demotion here is a demotion everywhere it was inherited), and leaves alone a grant somebody deliberately gave a different role. This flag is the "and the deliberate ones too" switch.

Responses

200Success
cURL
curl -X PATCH "https://staging-api.panoptesos.com/api/v1/console/users/{id}" \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: <YOUR_API_KEY>" \
  -d '{
  "name": "string",
  "roleId": "00000000-0000-0000-0000-000000000000",
  "branchId": "00000000-0000-0000-0000-000000000000",
  "active": false,
  "applyToAllBranches": false
}'
Try itagainst staging · https://staging-api.panoptesos.com

Path parameters

Request body (JSON)

Headers

This action refuses API keys — it needs a signed-in user. Switch to a JWT under Authorize, or do it in the dashboard.
Set credentials in the “Authorize” menu
delete/api/v1/console/users/{id} JWT

Retire a user

A tombstone, never a `DELETE`, and the reason is mandatory. A reversible suspension is `PATCH { "active": false }` instead — the two are different decisions and this one has no undo.

Capability
manage_users
Signed-in user only
API keys and OAuth tokens are refused (403). Do this in the dashboard.

Path parameters

idrequired
string (uuid)
—

Request body

application/json
{
  "reason": "string"
}
reason
string
—

Responses

200Success
cURL
curl -X DELETE "https://staging-api.panoptesos.com/api/v1/console/users/{id}" \
  -H "X-Api-Key: <YOUR_API_KEY>"
Try itagainst staging · https://staging-api.panoptesos.com

Path parameters

Headers

This action refuses API keys — it needs a signed-in user. Switch to a JWT under Authorize, or do it in the dashboard.
Set credentials in the “Authorize” menu
post/api/v1/console/users/{id}/resend-invite JWT

Issue a fresh activation code for an invited user whose invite never arrived or expired

Covered by the class-level `manage_users` gate like every other route here, which is exactly the property that makes an anonymous mail cannon out of this impossible: the public resend on `AuthController` is `[AllowAnonymous]` and pays for it with enumeration-safe generic responses, while this one names the target by id because the caller already holds the strongest capability in the tenancy.

Refused as `CONFLICT` for an account that has already activated, and the verification throttles surface as `429` — the service returns both as coded results and this action does not interpret either.

Capability
manage_users
Signed-in user only
API keys and OAuth tokens are refused (403). Do this in the dashboard.

Path parameters

idrequired
string (uuid)
—

Responses

200Success
cURL
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/users/{id}/resend-invite" \
  -H "X-Api-Key: <YOUR_API_KEY>"
Try itagainst staging · https://staging-api.panoptesos.com

Path parameters

Headers

This action refuses API keys — it needs a signed-in user. Switch to a JWT under Authorize, or do it in the dashboard.
Set credentials in the “Authorize” menu
post/api/v1/console/users/{id}/reset-password JWT

Set another user's password

Its own route and its own audit verb — `RESET_USER_PASSWORD`, never `UPDATE_USER` — because "who reset whose password, and when" must be one query.

Capability
manage_users
Signed-in user only
API keys and OAuth tokens are refused (403). Do this in the dashboard.

Path parameters

idrequired
string (uuid)
—

Request body

application/json
{
  "newPassword": "string"
}
newPassword
string
—

Responses

200Success
cURL
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/users/{id}/reset-password" \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: <YOUR_API_KEY>" \
  -d '{
  "newPassword": "string"
}'
Try itagainst staging · https://staging-api.panoptesos.com

Path parameters

Request body (JSON)

Headers

This action refuses API keys — it needs a signed-in user. Switch to a JWT under Authorize, or do it in the dashboard.
Set credentials in the “Authorize” menu
get/api/v1/console/users/roles JWT API Key

Get roles

The roles assignable in this branch — platform-wide seeded rows plus any the merchant defined here.,.

Declared before `{id:guid}` only for readability; the route constraint already keeps the two from colliding.

Capability
manage_users
API key scope
cap:manage_users (the key's owner must also hold the capability)

Responses

200Success
cURL
curl -X GET "https://staging-api.panoptesos.com/api/v1/console/users/roles" \
  -H "X-Api-Key: <YOUR_API_KEY>"
Try itagainst staging · https://staging-api.panoptesos.com

Headers

Set credentials in the “Authorize” menu