ReferenceCampaigns API
Create a segment
POST
name is required, up to 200 characters. description is optional, up to 2000 characters. Returns the segment id used when creating a campaign.
bearerheader
AuthorizationBearer <token>Key issued in Settings → Developer → API key. Inbox methods need the Inbox scope. Campaigns methods need the Campaigns scope.
application/json- body
name*stringSegment name, up to 200 characters.
description?stringOptional note, up to 2000 characters.
application/json- response
id*stringSegment id.
name*stringSegment name, up to 200 characters.
description*|Optional note, up to 2000 characters, or null when none was stored.
createdAt*stringWhen the segment was created.
Format
date-timecurl -X POST 'https://api.1msg.io/api/v1/campaigns/segments' \ -H 'Content-Type: application/json' \ -d '{ "name": "April buyers"}'{ "id": "cm3segment01", "name": "April buyers", "description": "People who bought in April", "createdAt": "2026-11-01T09:00:00.000Z"}