Skip to main content

Delete List

Permanently delete a contact list. Contacts in the list are not deleted — only the list itself and the associations are removed.

Endpoint

DELETE /lists/:id

Returns: 200 OK

Headers

HeaderValueRequired
AuthorizationBearer <your-api-key>Yes

Path Parameters

ParameterTypeDescription
idstringThe list ID

Response

{
"message": "List deleted"
}

Examples

curl -X DELETE "https://api.arsel.sa/v1/lists/01957e3a-4b5c-7d8e-9f0a-1b2c3d4e5f6a" \
-H "Authorization: Bearer be_your_api_key"

Error Responses

{
"status_code": 404,
"name": "not_found",
"message": "List not found"
}