Skip to content

Docs / All tools / Loop IV: Validation

validation.run.approve_plan

Record approval of the plan so Heelo can publish the page, create an email sequence, and find contacts. Your sender must be ready first: a verified sender on your own domain, with a From name, set as the default sender of that domain, and your postal address.

Charged by the tools it calls. inbound.page.publish 25, contact.resolve 25 per person found.

Example prompt

Send this to your AI app when Heelo is connected:

I read the landing page, the e-mails and the target companies. Approve the plan.

Input fields

FieldTypeDescription
run_idRequiredstring
versionRequiredstringdata.review.version from validation.run.status, unchanged
approved_byRequiredstringYour user's name: the person who said yes

Code

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

import os
import requests

response = requests.post(
    "https://toolsprimitives.uk/v1/tools/validation.run.approve_plan/invoke",
    headers={"Authorization": f"Bearer {os.environ['HEELO_API_KEY']}"},
    json={"input": {
        "run_id": "RUN_ID",
        "version": "VERSION",
        "approved_by": "APPROVED_BY",
    }},
    timeout=120,
)
response.raise_for_status()
print(response.json())