v1 · OpenAPI 3.1Panel

API referansı İngilizcedir.

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_with or ends_with. Matching ignores case and accents.
  • ids looks 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 fields you ask for are returned. The default is id and region.
  • If a region does not answer, partial is true and the region is listed in regions_unavailable; retry later for complete results.
  • Every search is written to the event log as users.searched with the filter keys and the API key, so the tenant can audit it.
Gereken yetki
users:read
Kimlik doğrulama
Secret key · Organization API key

Yol parametreleri

  • app_idstringzorunlu

    Örnek: app_seller

Gövde application/json

  • filterUserFilterzorunlu

    All given conditions must match (AND). Use any for OR.

    12 alan
    • idsstring[]

      User IDs you already store

    • nameTextMatch

      Exactly one operator. Case and accents are ignored.

      4 alan
      • equalsstring

      • containsstring

      • starts_withstring

      • ends_withstring

    • emailTextMatch

      Exactly one operator. Case and accents are ignored.

      4 alan
      • equalsstring

      • containsstring

      • starts_withstring

      • ends_withstring

    • phoneTextMatch

      Exactly one operator. Case and accents are ignored.

      4 alan
      • equalsstring

      • containsstring

      • starts_withstring

      • ends_withstring

    • labelsLabels

    • regionstring[]

      Değerler: EU TR

    • countrystring[]

      ISO 3166-1 alpha-2

    • statusstring[]

      Değerler: active locked banned invited

    • email_verifiedboolean

    • created_atDateRange

      2 alan
      • gtestring (date-time)

      • ltstring (date-time)

    • last_sign_in_atDateRange

      2 alan
      • gtestring (date-time)

      • ltstring (date-time)

    • anyUserFilter[]

      At least one of these filters must match (OR)

  • fieldsstring[]

    Değerler: id region email phone name country labels status created_at last_sign_in_atVarsayılan: ["id","region"]

  • sortstring

    Değerler: created_at -created_at last_sign_in_at -last_sign_in_at name -nameVarsayılan: -created_at

  • limitinteger

    Varsayılan: 20

  • cursorstring

Yanıtlar

  • 200OKobject

    Matching users, with only the requested fields

    • dataUser[]

      16 alan
      • idstring

      • regionstring

        More regions will be added; clients must accept unknown values.

        Değerler: EU TR

      • emailstring

      • email_verifiedboolean

      • phonestring

        Not available yet.

      • namestring

      • countrystring

      • labelsLabels

      • statusstring

        Değerler: active locked banned invited

      • created_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).

      • metadataobject

        Not available yet (planned expand=metadata).

      • consentsobject[]

        Not available yet (planned expand=consents).

    • next_cursorstringboş olabilir

    • regions_searchedstring[]

      Değerler: EU TR

    • regions_unavailablestring[]

      Regions that did not answer. Their results are missing.

      Değerler: EU TR

    • partialboolean

      true when 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.

    • errorobjectzorunlu

      5 alan
      • codestringzorunlu

        Stable machine code, e.g. email_exists, country_not_allowed, user_moved, method_not_available, region_unavailable

        Örnek: region_unavailable

      • messagestringzorunlu

        Plain English, for developers

      • regionstringboş olabilir

        Region that produced the error, if any

        Değerler: EU TR

      • retryablebooleanzorunlu

      • detailsobject

  • 503Service UnavailableError

    region_unavailable: the user's region cannot answer right now. Retry after Retry-After seconds.

    • errorobjectzorunlu

      5 alan
      • codestringzorunlu

        Stable machine code, e.g. email_exists, country_not_allowed, user_moved, method_not_available, region_unavailable

        Örnek: region_unavailable

      • messagestringzorunlu

        Plain English, for developers

      • regionstringboş olabilir

        Region that produced the error, if any

        Değerler: EU TR

      • retryablebooleanzorunlu

      • detailsobject