Ops
Generated from Huudis's own code: every route in this area, what it takes and how to call it.
| Method | Path | What it does |
|---|---|---|
GET |
/api/v1/ops/end-users |
Workspace-scoped directory of end-users — people who have consented to an OIDC client owned by the active workspace. |
GET |
/api/v1/ops/end-users/{id} |
Get an end user |
POST |
/api/v1/ops/end-users/{id}/revoke |
Revoke an end user |
POST |
/api/v1/ops/end-users/{id}/send-password-reset |
Send password reset an end user |
POST |
/api/v1/ops/end-users/stop-impersonation |
Create a stop impersonation |
Workspace-scoped directory of end-users — people who have consented to an OIDC client owned by the active workspace.
GET /api/v1/ops/end-users
Workspace-scoped directory of end-users — people who have consented
to an OIDC client owned by the active workspace. Used by Ibu Rina to
see the cafe owners who signed into MejaStudio; used by Forjio inside
the "Huudis" workspace to see every Huudis user (since every login
goes through huudis-dashboard, one of Huudis's own clients).
Changing what a workspace's own apps let a person do (revoke, password
reset) is for the workspace's owners and admins. Anything that touches
the person's global identity — verify-email, impersonate and the
disable/enable routes below — gates on requireForjioOps —
the same Huudis-internal-workspace operator check the /ops/* admin
routers use. (Previously an inline isForjioHuudisOps() helper.)
Authentication: Takes a signed-in person's session or bearer token, or an IAM access key (Huudis-HMAC-SHA256) whose user's policies allow huudis:ListEndUsers. See access keys.
Example
curl -X GET "https://huudis.com/api/v1/ops/end-users" \
-H "Authorization: Bearer <access token>"
Get an end user
GET /api/v1/ops/end-users/{id}
Authentication: Takes a signed-in person's session or bearer token, or an IAM access key (Huudis-HMAC-SHA256) whose user's policies allow huudis:GetEndUser. See access keys.
Path parameters
| Name | Type | Required | Notes |
|---|---|---|---|
id |
string | yes |
Example
curl -X GET "https://huudis.com/api/v1/ops/end-users/:id" \
-H "Authorization: Bearer <access token>"
Revoke an end user
POST /api/v1/ops/end-users/{id}/revoke
Authentication: Takes a signed-in person's session or bearer token, or an IAM access key (Huudis-HMAC-SHA256) whose user's policies allow huudis:RevokeEndUser. See access keys.
Path parameters
| Name | Type | Required | Notes |
|---|---|---|---|
id |
string | yes |
Example
curl -X POST "https://huudis.com/api/v1/ops/end-users/:id/revoke" \
-H "Authorization: Bearer <access token>"
Send password reset an end user
POST /api/v1/ops/end-users/{id}/send-password-reset
Authentication: Takes a signed-in person's session or bearer token, or an IAM access key (Huudis-HMAC-SHA256) whose user's policies allow huudis:SendEndUserPasswordReset. See access keys.
Path parameters
| Name | Type | Required | Notes |
|---|---|---|---|
id |
string | yes |
Example
curl -X POST "https://huudis.com/api/v1/ops/end-users/:id/send-password-reset" \
-H "Authorization: Bearer <access token>"
Create a stop impersonation
POST /api/v1/ops/end-users/stop-impersonation
Authentication: Takes a signed-in person's session or bearer token only. An access key is refused (PERSON_ONLY): this route ends a person's impersonation session.
Example
curl -X POST "https://huudis.com/api/v1/ops/end-users/stop-impersonation" \
-H "Authorization: Bearer <access token>"