GET /api/admin/accounts?q=&by=email|username|name|sub&cursor= (accounts.search, the staff-console specification): one filtered Cognito ListUsers page (≤ 60) with each row's deletion hold. Rows carry the masked email only; the full email and name are on the detail endpoint. Never an unfiltered listing: an empty or too-short query is a 400.Staff cookie session; permission accounts.search.Source snapshot: admin/src/app/api/admin/accounts/route.ts. This reference describes the current working tree, not proof of deployment. The response service types and validators remain authoritative.
Request
Authorization
API Key
Add parameter in cookie
__Host-hwa_session
Example:
__Host-hwa_session: ********************
or
Query Params
Responses
🟢200
application/json
GET /api/admin/accounts?q=&by=email|username|name|sub&cursor= (accounts.search, the staff-console specification): one filtered Cognito ListUsers page (≤ 60) with each row's deletion hold. Rows carry the masked email only; the full email and name are on the detail endpoint. Never an unfiltered listing: an empty or too-short query is a 400.