Delete a segment
DELETE
/v1/segments/{id}Secret key — sk_… or sk_test_… · Base URL https://api.volanea.com
Deletes the segment and every membership row belonging to it. The contacts themselves are untouched — membership is a join, and only the join is removed.
Nothing checks whether a campaign or workflow still names this segmentId; those references are left dangling and resolve to no audience.
Path parameters
idstringrequiredSegment id.
Response
Deleted.
successbooleanrequired
Errors
Every failure returns the standard envelope — branch on `code`, never on the wording of `error`.
401Missing or invalid API key.404Not found.422Request validation failed (code `validation_error`, 422).
Request
curl https://api.volanea.com/v1/segments/id_123 \
-X DELETE \
-H "Authorization: Bearer sk_..."Response
200 · application/json
{
"success": true,
"data": {
"success": true
}
}92 endpoints · OpenAPI document