1MSG
ReferenceCampaigns API

List segment members

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

limit is the page size, default 50, maximum 100. cursor is the nextCursor from the previous page.

Authorization

bearer
headerAuthorizationBearer <token>

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.

Query Parameters

limit?string

Page size. Defaults to 50, maximum 100.

cursor?string

nextCursor from the previous page. Leave empty for the first page.

Response Body

application/json
  1. response
items*array<>

Members on this page, newest first.

nextCursor*|

Cursor for the next page, or null on the last page.

curl -X GET 'https://api.1msg.io/api/v1/campaigns/segments/string/members'
{  "items": [    {      "id": "cm3member01",      "name": "Ana",      "phone": "+15551234567",      "bsuid": "ab.abc123xyz"    }  ],  "nextCursor": null}