Delete Recipient By Address
const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
mailing_list_id: 1,
address: '123 Main Street',
postal_code: '12345',
address2: 'Apartment 1',
city: 'Any Town',
province: 'KS',
country: 'US',
email: 'tobias@example.com'
})
};
fetch('https://api.thanks.io/api/v2/recipients-utils/delete-by-address', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://api.thanks.io/api/v2/recipients-utils/delete-by-address \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"mailing_list_id": 1,
"address": "123 Main Street",
"postal_code": "12345",
"address2": "Apartment 1",
"city": "Any Town",
"province": "KS",
"country": "US",
"email": "tobias@example.com"
}
'import requests
url = "https://api.thanks.io/api/v2/recipients-utils/delete-by-address"
payload = {
"mailing_list_id": 1,
"address": "123 Main Street",
"postal_code": "12345",
"address2": "Apartment 1",
"city": "Any Town",
"province": "KS",
"country": "US",
"email": "tobias@example.com"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"status": "Recipient 297230 Deleted"
}{
"message": "Mailing List Does Not Exist"
}Recipients
Delete Recipient By Address
Delete a recipient by using their address or their email address.
POST
/
recipients-utils
/
delete-by-address
Delete Recipient By Address
const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
mailing_list_id: 1,
address: '123 Main Street',
postal_code: '12345',
address2: 'Apartment 1',
city: 'Any Town',
province: 'KS',
country: 'US',
email: 'tobias@example.com'
})
};
fetch('https://api.thanks.io/api/v2/recipients-utils/delete-by-address', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://api.thanks.io/api/v2/recipients-utils/delete-by-address \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"mailing_list_id": 1,
"address": "123 Main Street",
"postal_code": "12345",
"address2": "Apartment 1",
"city": "Any Town",
"province": "KS",
"country": "US",
"email": "tobias@example.com"
}
'import requests
url = "https://api.thanks.io/api/v2/recipients-utils/delete-by-address"
payload = {
"mailing_list_id": 1,
"address": "123 Main Street",
"postal_code": "12345",
"address2": "Apartment 1",
"city": "Any Town",
"province": "KS",
"country": "US",
"email": "tobias@example.com"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"status": "Recipient 297230 Deleted"
}{
"message": "Mailing List Does Not Exist"
}Authorizations
Bearer token authentication using your thanks.io API key
Body
application/json
- Delete Recipient by Address
- Delete Recipient by Email
Delete a recipient by providing address details
Example:
1
Example:
"123 Main Street"
Example:
"12345"
Example:
"Apartment 1"
Example:
"Any Town"
State or Province
Example:
"KS"
Example:
"US"
Example:
"tobias@example.com"
Response
OK
The response is of type object.
Was this page helpful?