DELETE
/
mailing-lists
/
{mailingListId}
Delete Mailing List
const url = 'https://api.thanks.io/api/v2/mailing-lists/{mailingListId}';
const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}, body: undefined};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
{
  "message": "success"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

mailingListId
integer
required

ID of mailing list

Example:

56

Response

200
application/json

Successful Response

The response is of type object.