Skip to Content
1MSG
ReferenceCampaigns API

Materialize automatic segment members

POST
/api/v1/campaigns/segments/{segmentId}/materialize

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 excludeStoplist and excludeBlocked settings 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 manual segment returns 400 (invalid_filter).

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

application/json
  1. response
memberCount*number

How many members were written.

lastMaterializedAt*string

When materialization completed.

Formatdate-time
Example Request
curl -X POST 'https://api.1msg.io/api/v1/campaigns/segments/string/materialize'
Example Response
{  "memberCount": 42,  "lastMaterializedAt": "2019-08-24T14:15:22Z"}