v1 · OpenAPI 3.1Dashboard

Die API-Referenz ist auf Englisch.

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_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.
Benötigter Scope
users:read
Authentifizierung
Secret key · Organization API key

Pfadparameter

  • app_idstringerforderlich

    Beispiel: app_seller

Body application/json

  • filterUserFiltererforderlich

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

    12 Felder
    • idsstring[]

      User IDs you already store

    • nameTextMatch

      Exactly one operator. Case and accents are ignored.

      4 Felder
      • equalsstring

      • containsstring

      • starts_withstring

      • ends_withstring

    • emailTextMatch

      Exactly one operator. Case and accents are ignored.

      4 Felder
      • equalsstring

      • containsstring

      • starts_withstring

      • ends_withstring

    • phoneTextMatch

      Exactly one operator. Case and accents are ignored.

      4 Felder
      • equalsstring

      • containsstring

      • starts_withstring

      • ends_withstring

    • labelsLabels

    • regionstring[]

      Werte: EU TR

    • countrystring[]

      ISO 3166-1 alpha-2

    • statusstring[]

      Werte: active locked banned invited

    • email_verifiedboolean

    • created_atDateRange

      2 Felder
      • gtestring (date-time)

      • ltstring (date-time)

    • last_sign_in_atDateRange

      2 Felder
      • gtestring (date-time)

      • ltstring (date-time)

    • anyUserFilter[]

      At least one of these filters must match (OR)

  • fieldsstring[]

    Werte: id region email phone name country labels status created_at last_sign_in_atStandard: ["id","region"]

  • sortstring

    Werte: created_at -created_at last_sign_in_at -last_sign_in_at name -nameStandard: -created_at

  • limitinteger

    Standard: 20

  • cursorstring

Antworten

  • 200OKobject

    Matching users, with only the requested fields

    • dataUser[]

      16 Felder
      • idstring

      • regionstring

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

        Werte: EU TR

      • emailstring

      • email_verifiedboolean

      • phonestring

        Not available yet.

      • namestring

      • countrystring

      • labelsLabels

      • statusstring

        Werte: 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_cursorstringnullable

    • regions_searchedstring[]

      Werte: EU TR

    • regions_unavailablestring[]

      Regions that did not answer. Their results are missing.

      Werte: EU TR

    • partialboolean

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

    • errorobjecterforderlich

      5 Felder
      • codestringerforderlich

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

        Beispiel: region_unavailable

      • messagestringerforderlich

        Plain English, for developers

      • regionstringnullable

        Region that produced the error, if any

        Werte: EU TR

      • retryablebooleanerforderlich

      • detailsobject

  • 503Service UnavailableError

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

    • errorobjecterforderlich

      5 Felder
      • codestringerforderlich

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

        Beispiel: region_unavailable

      • messagestringerforderlich

        Plain English, for developers

      • regionstringnullable

        Region that produced the error, if any

        Werte: EU TR

      • retryablebooleanerforderlich

      • detailsobject