Users
Search users with a filter
POST/v1/applications/{app_id}/users/searchNoch nicht verfügbar
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.
Pfadparameter
app_idstringerforderlichBeispiel:
app_seller
Body application/json
filterUserFiltererforderlichAll given conditions must match (AND). Use
anyfor OR.12 Felder
idsstring[]User IDs you already store
nameTextMatchExactly one operator. Case and accents are ignored.
4 Felder
equalsstringcontainsstringstarts_withstringends_withstring
emailTextMatchExactly one operator. Case and accents are ignored.
4 Felder
equalsstringcontainsstringstarts_withstringends_withstring
phoneTextMatchExactly one operator. Case and accents are ignored.
4 Felder
equalsstringcontainsstringstarts_withstringends_withstring
labelsLabelsregionstring[]Werte:
EUTRcountrystring[]ISO 3166-1 alpha-2
statusstring[]Werte:
activelockedbannedinvitedemail_verifiedbooleancreated_atDateRange2 Felder
gtestring (date-time)ltstring (date-time)
last_sign_in_atDateRange2 Felder
gtestring (date-time)ltstring (date-time)
anyUserFilter[]At least one of these filters must match (OR)
fieldsstring[]Werte:
idregionemailphonenamecountrylabelsstatuscreated_atlast_sign_in_atStandard:["id","region"]sortstringWerte:
created_at-created_atlast_sign_in_at-last_sign_in_atname-nameStandard:-created_atlimitintegerStandard:
20cursorstring
Antworten
200OKobject
Matching users, with only the requested fields
dataUser[]16 Felder
idstringregionstringMore regions will be added; clients must accept unknown values.
Werte:
EUTRemailstringemail_verifiedbooleanphonestringNot available yet.
namestringcountrystringlabelsLabelsstatusstringWerte:
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_cursorstringnullableregions_searchedstring[]Werte:
EUTRregions_unavailablestring[]Regions that did not answer. Their results are missing.
Werte:
EUTRpartialbooleantruewhen one or more regions did not answer and the results are incomplete.Standard:
false
400Bad RequestError
Invalid filter, for example an unknown field or two operators in one text condition.
errorobjecterforderlich5 Felder
codestringerforderlichStable machine code, e.g. email_exists, country_not_allowed, user_moved, method_not_available, region_unavailable
Beispiel:
region_unavailablemessagestringerforderlichPlain English, for developers
regionstringnullableRegion that produced the error, if any
Werte:
EUTRretryablebooleanerforderlichdetailsobject
503Service UnavailableError
region_unavailable: the user's region cannot answer right now. Retry afterRetry-Afterseconds.errorobjecterforderlich5 Felder
codestringerforderlichStable machine code, e.g. email_exists, country_not_allowed, user_moved, method_not_available, region_unavailable
Beispiel:
region_unavailablemessagestringerforderlichPlain English, for developers
regionstringnullableRegion that produced the error, if any
Werte:
EUTRretryablebooleanerforderlichdetailsobject