DELETE
/
recipients
/
{recipientId}
Delete Recipient
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"
}

Authorizations

Authorization
string
header
required

Bearer token authentication using your thanks.io API key

Path Parameters

recipientId
integer
required

ID of recipient

Example:

296446

Response

Successful Response

The response is of type object.