Skip to content
Letterhead Letterhead Letterhead Help Center
Admin Tools

Delete a segment

DELETE
/api/v3/contacts/segments/{segmentId}
curl --request DELETE \
--url 'https://api.tryletterhead.com/api/v3/contacts/segments/1?api=true' \
--header 'Authorization: Bearer <token>'

Deletes a company-level contact segment and clears its channel assignments.

This is a company-level (v3) write. Authenticate with a company API key as a Bearer token.

Response

200 OK with an empty items payload on success. An unknown ID (or one owned by another company) returns 404.

segmentId
required
integer

The segment’s identifier. This is the numeric id returned by List segments β€” not a UUID.

api
required
boolean

Required. Set to true.

Successful response

Still can’t find what you need? Contact support.