Users
Search users with a filter
POST/v1/applications/{app_id}/users/searchHenüz kullanılamıyor
Not available yet; use GET /applications/{app_id}/users?email=…
for an exact-email lookup today. Find users by what you know about
them, without storing their personal data yourself. Send a
filter: every condition must match (AND). Put alternatives in
any (OR).
- Text conditions (
name,email,phone) take one operator:equals,contains,starts_withorends_with. Matching ignores case and accents. idslooks up users you already know (max 100), for example to show names next to the IDs in your database.- Each region is searched where its data lives; the results are
merged. Only the
fieldsyou ask for are returned. The default isidandregion. - If a region does not answer,
partialistrueand the region is listed inregions_unavailable; retry later for complete results. - Every search is written to the event log as
users.searchedwith the filter keys and the API key, so the tenant can audit it.
Yol parametreleri
app_idstringzorunluÖrnek:
app_seller
Gövde application/json
filterUserFilterzorunluAll given conditions must match (AND). Use
anyfor OR.12 alan
idsstring[]User IDs you already store
nameTextMatchExactly one operator. Case and accents are ignored.
4 alan
equalsstringcontainsstringstarts_withstringends_withstring
emailTextMatchExactly one operator. Case and accents are ignored.
4 alan
equalsstringcontainsstringstarts_withstringends_withstring
phoneTextMatchExactly one operator. Case and accents are ignored.
4 alan
equalsstringcontainsstringstarts_withstringends_withstring
labelsLabelsregionstring[]Değerler:
EUTRcountrystring[]ISO 3166-1 alpha-2
statusstring[]Değerler:
activelockedbannedinvitedemail_verifiedbooleancreated_atDateRange2 alan
gtestring (date-time)ltstring (date-time)
last_sign_in_atDateRange2 alan
gtestring (date-time)ltstring (date-time)
anyUserFilter[]At least one of these filters must match (OR)
fieldsstring[]Değerler:
idregionemailphonenamecountrylabelsstatuscreated_atlast_sign_in_atVarsayılan:["id","region"]sortstringDeğerler:
created_at-created_atlast_sign_in_at-last_sign_in_atname-nameVarsayılan:-created_atlimitintegerVarsayılan:
20cursorstring
Yanıtlar
200OKobject
Matching users, with only the requested fields
dataUser[]16 alan
idstringregionstringMore regions will be added; clients must accept unknown values.
Değerler:
EUTRemailstringemail_verifiedbooleanphonestringNot available yet.
namestringcountrystringlabelsLabelsstatusstringDeğerler:
activelockedbannedinvitedcreated_atstring (date-time)last_sign_in_atstring (date-time)sessionsobject[]Not available yet (planned expand=sessions).
mfa_factorsstring[]Not available yet (planned expand=mfa_factors).
sign_in_historyobject[]Not available yet (planned expand=sign_in_history).
metadataobjectNot available yet (planned expand=metadata).
consentsobject[]Not available yet (planned expand=consents).
next_cursorstringboş olabilirregions_searchedstring[]Değerler:
EUTRregions_unavailablestring[]Regions that did not answer. Their results are missing.
Değerler:
EUTRpartialbooleantruewhen one or more regions did not answer and the results are incomplete.Varsayılan:
false
400Bad RequestError
Invalid filter, for example an unknown field or two operators in one text condition.
errorobjectzorunlu5 alan
codestringzorunluStable machine code, e.g. email_exists, country_not_allowed, user_moved, method_not_available, region_unavailable
Örnek:
region_unavailablemessagestringzorunluPlain English, for developers
regionstringboş olabilirRegion that produced the error, if any
Değerler:
EUTRretryablebooleanzorunludetailsobject
503Service UnavailableError
region_unavailable: the user's region cannot answer right now. Retry afterRetry-Afterseconds.errorobjectzorunlu5 alan
codestringzorunluStable machine code, e.g. email_exists, country_not_allowed, user_moved, method_not_available, region_unavailable
Örnek:
region_unavailablemessagestringzorunluPlain English, for developers
regionstringboş olabilirRegion that produced the error, if any
Değerler:
EUTRretryablebooleanzorunludetailsobject