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
| Field | Type | Description |
|---|---|---|
run_idRequired | string | |
versionRequired | string | data.review.version from validation.run.status, unchanged |
approved_byRequired | string | Your 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())// Node.js 18 or newer, in an ES module.
const response = await fetch("https://toolsprimitives.uk/v1/tools/validation.run.approve_plan/invoke", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.HEELO_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
input: {
"run_id": "RUN_ID",
"version": "VERSION",
"approved_by": "APPROVED_BY"
},
}),
signal: AbortSignal.timeout(120_000),
});
if (!response.ok) throw new Error(`HTTP ${response.status}`);
console.log(await response.json());