List sub-users
Use the organization admin key to query users within its organization. Lists return neither plaintext invocation keys nor read-only credentials. See Platform API for the website origin and authentication.
Request
GET /api/v1/org/users
curl "$PLATFORM_ORIGIN/api/v1/org/users?external_id=uid_10001" \
-H "Authorization: Bearer $ORG_ADMIN_KEY"
| Parameter | Meaning |
|---|---|
external_id | Exact complete external business ID within the organization |
search | Case-insensitive name/external-ID prefix or complete user UUID; %, _ and \ are literal characters |
limit | Page size, default 20, maximum 100 |
page | Display page number, default 1; later pages require their cursor |
cursor | Previous response's next_cursor |
Response
HTTP 200 returns this shape; additional user/key metadata is omitted:
{
"rows":[{"id":"<org_user_uuid>","org_id":"<org_uuid>","name":"Customer A","external_id":"uid_10001","balance":"9.500000","total_recharged":"10.000000","total_spent":"0.500000","key_prefix":"sk-io-••••ABCD"}],
"page":1,"limit":20,"has_next":false,"next_cursor":null
}
When has_next=true, retain the filters, send cursor=next_cursor, and increment page. Cursors seek by descending creation time and ID. There is no total count or arbitrary jump to an unseen page. Changing filters starts a new first page. Archived users are excluded.
Retrieve one user
GET /api/v1/org/users/{userId} uses the same admin authentication and returns {"user":{…},"keys":[…]}. Keys contain metadata only. Users outside this organization or archived users return 404 NOT_FOUND.
If a creation response is uncertain, query the exact external_id and reuse any existing user before retrying creation.