Javascript
const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}}; fetch('https://api.thanks.io/api/v2/recipients/293401', options) .then(response => response.json()) .then(response => console.log(response)) .catch(err => console.error(err));
"Recipient Deleted"
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
OK
The response is of type string.
string
Was this page helpful?