Skip to Content
1MSG
ReferenceCampaigns API

Export segment members as CSV

GET
/api/v1/campaigns/segments/{segmentId}/members/export

Downloads up to 500 segment members as a UTF-8 CSV file compatible with CSV re-import.

  • Columns include name, phone, bsuid, and all attr_* custom attribute keys present on the segment.
  • Supported for both manual segments and materialized automatic segments.

Authorization

bearer
headerAuthorizationBearer <API key>

Key issued in Settings → Developer → API key. Inbox methods need the Inbox scope. Campaigns methods need the Campaigns scope.

Path Parameters

segmentId*string

Segment id returned by create or list.

Response Body

CSV file with segment members.

Example Request
curl -X GET 'https://api.1msg.io/api/v1/campaigns/segments/string/members/export'
Example Response
Empty