Cancel sequences
curl --request POST \
--url https://julian.11x.ai/api/v1/sequences/cancel \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"referenceKey": "account_id",
"referenceValue": "acme-123"
}
'import requests
url = "https://julian.11x.ai/api/v1/sequences/cancel"
payload = {
"referenceKey": "account_id",
"referenceValue": "acme-123"
}
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({referenceKey: 'account_id', referenceValue: 'acme-123'})
};
fetch('https://julian.11x.ai/api/v1/sequences/cancel', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"success": true
}Sequences
Cancel sequences
Cancels all in-progress sequences in your organization whose custom input variable referenceKey equals referenceValue (e.g. every sequence enrolled with account_id = "acme-123"). Sequences that are already done, cancelled, or failed are skipped.
The call is idempotent: it returns success even when no matching in-progress sequences exist.
POST
/
sequences
/
cancel
Cancel sequences
curl --request POST \
--url https://julian.11x.ai/api/v1/sequences/cancel \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"referenceKey": "account_id",
"referenceValue": "acme-123"
}
'import requests
url = "https://julian.11x.ai/api/v1/sequences/cancel"
payload = {
"referenceKey": "account_id",
"referenceValue": "acme-123"
}
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({referenceKey: 'account_id', referenceValue: 'acme-123'})
};
fetch('https://julian.11x.ai/api/v1/sequences/cancel', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"success": true
}Authorizations
Organization API key. Get it from the 11x team or from the platform.
Body
application/json
Response
Cancellation processed (also returned when nothing matched).
Example:
true