sendsend.email

Delete a segment

DELETE/v1/segments/{id}

Refused while a scheduled, sending or paused broadcast uses it. Finished broadcasts keep their history without the segment.

Required scope: contacts:manage

Parameters

NameInDescription
idrequiredpathThe segment id.

Example

curl -X DELETE 'https://api.sendsend.email/v1/segments/ID' \
  -H "Authorization: Bearer $SENDSEND_API_KEY"

Response 200

{
  "object": "segment",
  "id": "xxx_…",
  "deleted": true
}

Errors

StatusCodeWhen
404not_foundNo such resource in this project.
409validation_errorA broadcast is still using it.
401unauthorizedThe API key is missing, invalid or revoked.
403forbiddenThe key does not have the scope this endpoint needs.

Every error has the same shape. See Errors.