Skip to content

Remove members from a list

DELETE
/api/v2/flare/contact-lists/{id}/contacts
curl --request DELETE \
--url https://api.sipstack.com/api/v2/flare/contact-lists/example/contacts \
--header 'Content-Type: application/json' \
--header 'x-api-key: <x-api-key>' \
--data '{ "contactIds": [ "1f2e6b7c-8a90-4c1d-9e2f-0a1b2c3d4e5f", "2a3b4c5d-6e7f-4809-a1b2-c3d4e5f60718" ] }'

Removes contacts from the list. Requires contacts:write. 404 when the list isn’t your organization’s.

id
required
string
Media type application/json

Add or remove contacts from a list. Adds are idempotent (duplicates ignored); removes of a non-member are a no-op.

object
contactIds
required
Array<string>
>= 1 items
Example
[
"1f2e6b7c-8a90-4c1d-9e2f-0a1b2c3d4e5f",
"2a3b4c5d-6e7f-4809-a1b2-c3d4e5f60718"
]

Members removed.

Media type application/json
object
success
boolean
Example generated
{
"success": true
}

contactIds must be a non-empty array.

Media type application/json

Inline error shape used by the messaging API and management endpoints.

object
success
boolean
error
string
Example
{
"success": false,
"error": "Recipient phone number (to) is required"
}

Missing or invalid API key.

Media type application/json

Inline error shape used by the messaging API and management endpoints.

object
success
boolean
error
string
Example
{
"success": false,
"error": "Recipient phone number (to) is required"
}

List not found in your organization.

Media type application/json

Inline error shape used by the messaging API and management endpoints.

object
success
boolean
error
string
Example
{
"success": false,
"error": "Recipient phone number (to) is required"
}