Skip to content

Delete all subscribers

Deletes all users from a given subscriber list

Endpoint URI

1
DELETE https://services.ownpage.fr/v1/newsletters/lists/LIST_ID/subscribers/all?status=STATUS

Endpoint parameters

  • LIST_ID : the email list you want to modify

Headers

  • X-Ownpage-Client-Token : a valid token

Query string parameters

  • STATUS (values subscribed|unsubscribed|all, default all): filter to remove only the subscribed users (subscribed) or the unsubscribed ones (unsubscribed) or all subscribers (all)

Response

1
HTTP/1.1 200 OK

Example

We remove all users from the list with id #123

1
curl -X DELETE --header "X-Ownpage-Client-Token:TOKEN" https://services.ownpage.fr/v1/newsletters/lists/123/subscribers/all

Comments