Loading...
Skip to main content

DELETE /lists/:list_id/subscriptions/:recipient_id

URL: https://api.courier.com/lists/:list_id/subscriptions/:recipient_id

Method: DELETE

Path Parameters

list_idstringrequired
A unique identifier associated with the list you wish to retrieve.
recipient_idstringrequired
A unique identifier representing the recipient associated with the list

Responses

status: 204 Successfully deleted

status: 404 Not Found

messagestring
A message describing the error that occurred.
typestring
[invalid_request_error] The type of error that occurred.

Request Example

curl --request DELETE \
--url https://api.courier.com/lists/example.list.id/subscriptions/0460766e-8463-4905-ae98-b72c7aef41d6 \
--header 'Accept: application/json'

Responses Example

Empty
{
"message": "Not Found",
"type": "invalid_request_error"
}