Skip to content

Docs / All tools / Loop II: Acquisition

icp.cancel_job

Stop an ICP search.

0 credits. Free for the stop. Companies already found are charged 6 each, at most the number asked for.

Example prompt

Send this to your AI app when Heelo is connected:

Cancel that company search

Input fields

FieldTypeDescription
job_idRequiredstringThe job_id returned by icp.search

Output fields

The fields in data when status is success.

FieldType
job_idstring
statusstring
was_runningboolean
enrichedinteger
cost_centsinteger
messagestring

Code

The call with the input fields that the tool needs. Replace each word in capitals, such as JOB_ID. Set HEELO_API_KEY to your API key.

import os
import requests

response = requests.post(
    "https://toolsprimitives.uk/v1/tools/icp.cancel_job/invoke",
    headers={"Authorization": f"Bearer {os.environ['HEELO_API_KEY']}"},
    json={"input": {
        "job_id": "JOB_ID",
    }},
    timeout=120,
)
response.raise_for_status()
print(response.json())