ReferenceCampaigns API
Materialize automatic segment members
POST
Evaluates an automatic segment's Inbox rules live, replaces its stored preview member list, and updates lastMaterializedAt.
- Evaluates pure Inbox audience predicates only; per-campaign
excludeStoplistandexcludeBlockedsettings apply on the campaign. - Enforces the 500-member segment cap (
recipient_cap_exceeded). - Optional helper for inspecting or exporting members; campaign send always re-evaluates automatic rules live and ignores stale materialized rows.
- Calling this endpoint on a
manualsegment returns400(invalid_filter).
bearerheader
AuthorizationBearer <API key>Key issued in Settings → Developer → API key. Inbox methods need the Inbox scope. Campaigns methods need the Campaigns scope.
segmentId*stringSegment id returned by create or list.
application/json- response
memberCount*numberHow many members were written.
lastMaterializedAt*stringWhen materialization completed.
Format
date-timecurl -X POST 'https://api.1msg.io/api/v1/campaigns/segments/string/materialize'Example Response
{ "memberCount": 42, "lastMaterializedAt": "2019-08-24T14:15:22Z"}