Javascript
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" }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
ID of mailing list
56
Successful Response
The response is of type object.
object
Was this page helpful?