Turn campaign sending on or off for a mailbox
curl --request POST \
--url https://api.salessequencer.com/api/v1/mailboxes/{mailbox_id}/toggle-sending \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"enabled": "<string>"
}
'import requests
url = "https://api.salessequencer.com/api/v1/mailboxes/{mailbox_id}/toggle-sending"
payload = { "enabled": "<string>" }
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({enabled: '<string>'})
};
fetch('https://api.salessequencer.com/api/v1/mailboxes/{mailbox_id}/toggle-sending', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));Mailboxes
Turn campaign sending on or off for a mailbox
Sets or flips Mailbox.enabled (whether campaigns may send from it). Unrecognised or missing value flips the current state. 404 JSON if not found.
Minimum role: edit (x-min-role). Destructive: false (x-destructive).
POST
/
mailboxes
/
{mailbox_id}
/
toggle-sending
Turn campaign sending on or off for a mailbox
curl --request POST \
--url https://api.salessequencer.com/api/v1/mailboxes/{mailbox_id}/toggle-sending \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"enabled": "<string>"
}
'import requests
url = "https://api.salessequencer.com/api/v1/mailboxes/{mailbox_id}/toggle-sending"
payload = { "enabled": "<string>" }
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({enabled: '<string>'})
};
fetch('https://api.salessequencer.com/api/v1/mailboxes/{mailbox_id}/toggle-sending', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));