Segments

List segments

GET/segments

Segments are read-only in this API: their membership is a set of conditions defined in the app, returned in words as definition_summary (the condition tree itself is not part of the API). status is ready when the stored membership matches the definition, with member_count and members_computed_at; it is computing (both null) for a short time after a segment is created or edited, or a list or segment it refers to is archived or restored. The built-in 'All Contacts' is listed with is_default: true, is always ready, and has no stored count (member_count null).

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

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: segment

      At most 2,000 characters.

    • idstringrequired

      At most 2,000 characters.

    • namestringrequired

      At most 255 characters.

    • is_defaultbooleanrequired
    • statusstringrequired

      One of: ready computing

      At most 2,000 characters.

    • member_countnumber | nullrequired
    • members_computed_atstring | nullrequired

      At most 40 characters.

    • definition_summarystring | nullrequired

      At most 20,000 characters.

    • created_atstring | nullrequired

      At most 40 characters.

  • next_cursorstring | nullrequired

    At most 600 characters.

  • has_morebooleanrequired