Javascript
const url = 'https://api.thanks.io/api/v2/recipients/{recipientId}'; 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 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?