Skip to Content
1MSG
ReferenceCampaigns API

Delete a segment

DELETE
/api/v1/campaigns/segments/{segmentId}

Deletes the segment and its members. Fails while a draft, sending, paused, or scheduled campaign still uses it.

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

Example Request
curl -X DELETE 'https://api.1msg.io/api/v1/campaigns/segments/string'
Example Response204
Empty