Segments

List a segment's members

GET/segments/{id}/profiles

In profile-id order. A segment's members are stored and kept up to date as profiles, lists, consent and events change (usually within a minute or two; conditions that depend on the clock, on email engagement or on custom objects are refreshed every 15 minutes), and this page reads them. While the segment's status is computing (just created or edited, or a list or segment it refers to was archived or restored) there is nothing correct to return: the answer is 409 segment_computing with Retry-After, normally for under a minute. A profile that starts or stops matching while you page may be missed or repeated. Membership is not permission to email: each profile shows its own email_subscription.

Permission: segments:read · on the API key screen: Segments → Read access · All permissions

Path parameters

  • idstringrequired

    The id of the segment.

Query parameters

  • limitnumber

    Page size, 1 to 200 (default 50).

    From 1 to 200.

  • cursorstring

    The next_cursor of the previous page. Only valid with the same filters.

    At most 600 characters.

Response

  • dataobject[]required

    At most 200 items.

    Show properties
    • objectstringrequired

      One of: profile

      At most 2,000 characters.

    • idstringrequired

      At most 2,000 characters.

    • emailstring | nullrequired

      At most 100,000 characters.

    • email_subscriptionstringrequired

      Read-only. Whether the person may be sent marketing email: only 'subscribed' may. 'never_subscribed' = no consent recorded; 'pending' = waiting for the person to confirm by email.

      One of: subscribed unsubscribed pending never_subscribed

      At most 2,000 characters.

    • subscription_resultobject

      Only in the response to a write that sent subscription: what became of it.

      Show properties
      • requestedstringrequired

        One of: subscribed unsubscribed

        At most 2,000 characters.

      • outcomestringrequired

        One of: applied unchanged confirmation_required refused

        At most 2,000 characters.

      • reasonstring | nullrequired

        One of: unsubscribed suppressed

        At most 2,000 characters.

    • sms_subscription_resultobject

      Only in the response to a write that sent sms_subscription: what became of it.

      Show properties
      • requestedstringrequired

        One of: subscribed unsubscribed

        At most 2,000 characters.

      • outcomestringrequired

        One of: applied unchanged refused

        At most 2,000 characters.

      • reasonstring | nullrequired

        One of: unsubscribed

        At most 2,000 characters.

    • external_idstring | nullrequired

      At most 100,000 characters.

    • first_namestring | nullrequired

      At most 100,000 characters.

    • last_namestring | nullrequired

      At most 100,000 characters.

    • phonestring | nullrequired

      At most 100,000 characters.

    • organizationstring | nullrequired

      At most 100,000 characters.

    • titlestring | nullrequired

      At most 100,000 characters.

    • addressobjectrequired
      Show properties
      • streetstring | nullrequired

        At most 100,000 characters.

      • citystring | nullrequired

        At most 100,000 characters.

      • statestring | nullrequired

        At most 100,000 characters.

      • zipstring | nullrequired

        At most 100,000 characters.

    • custom_fieldsobjectrequired
    • tagsstring[]required

      At most 100000 items.

    • sourcestring | nullrequired

      At most 100,000 characters.

    • created_atstring | nullrequired

      At most 40 characters.

    • updated_atstring | nullrequired

      At most 40 characters.

  • next_cursorstring | nullrequired

    At most 600 characters.

  • has_morebooleanrequired