JavaScript
const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}}; fetch('https://api.thanks.io/api/v2/recipients/{recipientId}', options) .then(res => res.json()) .then(res => console.log(res)) .catch(err => console.error(err));
{ "message": "success" }
Bearer token authentication using your thanks.io API key
ID of recipient
296446
Successful Response
The response is of type object.
object
Was this page helpful?