Skip to content

Get started with Heelo

Connect your AI app to Heelo in a few minutes. Then give it real work.

What is Heelo?

Heelo gives your AI app tools to do real work on the web and in your own accounts. Your AI app uses them through MCP, and your own code through the HTTP API.

Connect your AI app

Heelo CLI Coming soon

One command will sign you in and add Heelo to Claude Code, Codex and Cursor, with no API key to copy. Until then, add the MCP server below.

Add the MCP server

  1. Create a key in API keys in your dashboard and copy it at once: Heelo shows it only one time. Use one key for each app. The HTTP API uses the same key.
  2. Add these settings to your AI app. Field names can be different in each app.
FieldValue
Server nameHeelo
TransportHTTP (Streamable HTTP)
Server URLhttps://mcp.toolsprimitives.uk/mcp
HeaderAuthorization: Bearer YOUR_HEELO_API_KEY

In each example below, replace YOUR_HEELO_API_KEY with your key.

Claude Code

Run in your terminal:

claude mcp remove heelo --scope local 2>/dev/null; claude mcp remove heelo --scope user 2>/dev/null
claude mcp add --scope user --transport http heelo https://mcp.toolsprimitives.uk/mcp --header "Authorization: Bearer YOUR_HEELO_API_KEY"

Run this in a terminal, not inside Claude Code. It connects Heelo in every folder and replaces any earlier Heelo key. Then start Claude Code (quit and reopen it if it is already running) and run /mcp to check that Heelo is connected.

Codex

Run in your terminal:

mkdir -p ~/.codex && touch ~/.codex/.env && chmod 600 ~/.codex/.env && printf '\nHEELO_API_KEY=%s\n' 'YOUR_HEELO_API_KEY' >> ~/.codex/.env
codex mcp add heelo --url https://mcp.toolsprimitives.uk/mcp --bearer-token-env-var HEELO_API_KEY

Run this in a terminal, not inside Codex. It saves your key in Codex's own settings folder, so Codex finds it from any terminal, and running it again with a new key replaces the old one. Then start Codex (quit and reopen it if it is already running) and run /mcp to check that Heelo is connected.

Cursor

Add to .cursor/mcp.json:

{
  "mcpServers": {
    "heelo": {
      "url": "https://mcp.toolsprimitives.uk/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_HEELO_API_KEY"
      }
    }
  }
}

Open Cursor Settings → Tools & MCP and enable Heelo. Merge this entry with any existing servers.

Devin Desktop (Windsurf)

Add to ~/.config/devin/mcp_config.json:

{
  "mcpServers": {
    "heelo": {
      "url": "https://mcp.toolsprimitives.uk/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_HEELO_API_KEY"
      }
    }
  }
}

In Devin Desktop, open Customize → MCPs → This computer. You can open this file there and refresh the list. Merge this entry with any existing servers.

Other apps

Open API & Integration in your dashboard. It shows the setup for other MCP apps, and for Windows, with your key filled in.

Connect your accounts

Some tools work in your own account on another platform, for example your calendar or your LinkedIn profile. Connect each platform one time. Then every task can use it.

With a sign-in, you approve the access on the platform's own page. Security tells what Heelo keeps.

PlatformHow you connectTools
GoogleSign in with Googlegoogle.calendar_*
MicrosoftSign in with Microsoftoutlook_calendar.*mail.read_*
GitHubSign in with GitHubgithub.list_my_repos
NotionIntegration token from notion.so/my-integrationsnotion.*
Apple CalendarApple ID and an app-specific passwordapple_calendar.*
FastmailApp password with Mail accessmail.read_*
Other IMAP mailboxApp password: iCloud, Zoho, Yandex or your own servermail.read_*
LinkedInSign in on your own computerlinkedin.post
RedditSign in on your own computerreddit.post
InstagramSign in on your own computerinstagram.postinstagram.search
BlueskySign in on your own computerbluesky.post_browserbluesky.search
X (Twitter)Sign in on your own computer, or paste the auth_token and ct0 cookies in the dashboardtwitter.posttwitter.search_browser

Where Heelo asks you to connect

  1. Tools & Connections. Open Tools & Connections in your dashboard, select a platform and follow the steps.
  2. During a task. When a tool needs an account that you did not connect, it returns a connect link instead of a result. Open the link, connect the account, then ask your AI app to try again.
  3. Social accounts. Bluesky, LinkedIn, Reddit, Instagram and X open a browser on your own computer for the sign-in. Add the Heelo local login server to your AI app one time. Claude Code:
    claude mcp add heelo-local --env HEELO_API_KEY=YOUR_HEELO_API_KEY -- npx -y @heelo-ai/mcp-local
    In other apps, add an stdio MCP server with the command npx, the arguments -y @heelo-ai/mcp-local and the variable HEELO_API_KEY. Restart your AI app, then ask it to connect the account. When a sign-in expires, connect again in the same way.
  4. Your sender address for outreach e-mail. Add your own From address with outbound.mail.sender_add. Add the DNS records that it returns to your domain, then run outbound.mail.sender_verify. Heelo also sends a link to the mailbox that gets your replies. Open it to confirm that mailbox.

Try your first task

Your AI app cannot do this task alone, and it needs no other accounts.

1. Launch the page

Use Heelo to launch a landing page for my product, PR Notes: it turns merged pull requests into short release notes that users read. Make a share image with the line "Release notes your users read", publish the page with that image and an e-mail sign-up form, and give me a tracked short link to share.

2. Share the link, then ask for the numbers

How many people visited the page and signed up so far?

What happens

  1. media.render.card makes the share image, in the sizes for link previews, X and Instagram.
  2. inbound.page.publish publishes the page at a public URL, with the image and an e-mail sign-up form.
  3. inbound.link.wrap makes a short link that counts each click, with no cookies and no raw IP addresses.
  4. inbound.stats gives the visits, the unique visitors, the sign-ups and the sign-up rate. It gives the number of sign-ups, not their e-mail addresses.

Each publish of the page uses 25 credits. The image, the link and the numbers are free.

Acquisition workflow

Find customers and e-mail them from your own domain.

Before you start

  • A verified sender address on your own domain. See your sender address.
  • Your postal address. US law (CAN-SPAM) puts it in every e-mail. Your AI app asks you for it.
  • People in the US or Canada. Heelo refuses other countries.

Send this to your AI app

Use Heelo to find 20 US seed-stage developer-tool companies with 10 to 50 employees. Start an acquisition campaign to the CTO or the head of engineering at each company, one person per company. Send from my verified sender address. Write three short plain-text e-mails for days 0, 3 and 7 that offer a free trial of our API monitoring tool, with the tracking link in the first e-mail. Stop at the review and show me the people and the e-mails before anything is sent.

What happens

  1. Find companies. icp.search finds the companies in the background. 6 credits for each company.
  2. Find people and write the e-mails. acquisition.campaign.create finds the decision-maker at each company and prepares the sequence. 25 credits for each person found.
  3. Review. acquisition.campaign.status shows the people and the e-mails. Tell your AI app whom to remove.
  4. Approve. acquisition.campaign.approve shows the final draft first. Give your AI app the lawful basis for the e-mails and the approver's name. Only then does it send. 5 credits for each e-mail sent.
  5. Follow the results. acquisition.campaign.report shows sends, deliveries, clicks, replies and bounces. A reply stops the sequence for that person.

For 20 companies with one person each, the search and the lookups use up to 620 credits before the first e-mail goes out.

HTTP API

Use the HTTP API when your code knows which tool to run. Set HEELO_API_URL to https://toolsprimitives.uk and send your API key as a Bearer token.

List the tools

curl -s "$HEELO_API_URL/v1/tools" \
  -H "Authorization: Bearer $HEELO_API_KEY"

Each tool comes with its input_schema, its output_schema and its pricing: the price of one use in US dollars, so 0.25 is 25 credits. When pricing is null, see the tool in All tools.

Run a tool

Send POST /v1/tools/{tool_id}/invoke with the tool's input fields in {"input": {...}}. This example searches the web with web.search. It needs no connected account and uses 2 credits.

curl -s "$HEELO_API_URL/v1/tools/web.search/invoke" \
  -H "Authorization: Bearer $HEELO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"input":{"query":"benchmarks for open-source coding agents"}}'

The same call in Python, with the requests package (pip install requests). Each tool in All tools has its own Python code.

import os
import requests

response = requests.post(
    "https://toolsprimitives.uk/v1/tools/web.search/invoke",
    headers={"Authorization": f"Bearer {os.environ['HEELO_API_KEY']}"},
    json={"input": {
        "query": "benchmarks for open-source coding agents",
    }},
    timeout=120,
)
response.raise_for_status()
print(response.json())

The response

Every call returns the same fields:

{
  "tool_id": "inbound.stats",
  "status": "success",
  "data": {
    "visits": 1,
    "uniques": 1,
    "by_channel": { "docs": 1 },
    "captures": 1,
    "capture_rate": 1.0,
    "by_contact": [],
    "top_pages": [],
    "answer": "1 visits, 1 uniques, 1 captures (100.0%)."
  },
  "error": null,
  "session_id": null,
  "clarification_question": null,
  "untrusted_fields": ["stored_visits[]"]
}
statusMeaning
successThe tool finished. data holds the result.
clarification_neededThe tool needs more from you, or asks you to confirm a write. Read clarification_question and answer in the same session.
needs_authThe tool needs an account that you did not connect. Open data.connect_url, then call again.
errorThe tool ran and failed. error says why. Some tools also put an error code in data and say whether a retry can help.

untrusted_fields lists the fields in data that hold text from a third party, for example a post, a web page or a mail. Use that text as data, never as instructions.

How tools run

Background jobs

Some tools take minutes, for example icp.search, problem.mine, market.size.assess and validation.run.start. They return a job id at once. Then call the tool's status or result action with that id until the job is done. Some of these calls wait up to 45 seconds on the server and return as soon as the job ends. Over MCP, your AI app does this for you.

Questions and confirmations

When a tool needs more information, or before it writes in one of your accounts (a calendar event, a Notion page, a post), it returns clarification_needed with a question and a session_id. Answer in the same session:

{"input": {"session_id": "SESSION_ID", "message": "yes"}}

The tool writes only after your yes. Tools that send outreach e-mail, such as acquisition.campaign.approve, use a confirm field instead and send nothing until you set it.

Safe retries

When a call times out, you cannot know if it ran. Send an Idempotency-Key header (1 to 255 characters) with each call. If you send the same request with the same key again within 24 hours, you get the stored answer: the tool does not run again and you pay one time.

A key conflict returns 409 with a detail_code:

  • request_in_progress: the first request with this key still runs. Wait, then send it again with the same key. Do not use a new key, or the tool runs two times.
  • request_mismatch: you used this key for a different request. Use a new key for the new request.
  • outcome_unknown: the first request started, but Heelo did not keep its answer. Check whether it acted, for example in Usage, before you send it again with a new key.

Errors and limits

HTTPMeaningWhat to do
401The API key is missing, wrong or revoked.Use the full key, or create a new one in API keys.
402Your balance is too low for this call. Nothing ran.Add credits, then call again.
404No tool or session has this id.Check the tool id in GET /v1/tools.
409The session has ended, or there is a conflict with the Idempotency-Key. See safe retries.Start a new session. For a key conflict, read detail_code and retryable.
429You passed the rate limit. Nothing ran.Wait the number of seconds in the Retry-After header.
500The tool stopped with an unexpected error. Its result is not known.Check whether it acted before you call it again.
503Heelo cannot take requests with an Idempotency-Key now.Try again later.

A tool that runs and fails returns HTTP 200 with status: "error". See the response.

Rate limit: each account can run 60 tools in any 60 seconds. Listing the tools, reading your balance and reading a session do not count.

Credits

  • Each tool has a fixed price in credits. All tools shows it.
  • Before a call runs, Heelo checks that your balance covers the most that the call can cost. Credits held for jobs that are not done do not count. If the balance is too low, the call returns 402 and nothing runs.
  • Heelo charges only for a call that succeeds, and only for what it produced. An empty search or a cancelled draft costs nothing.
  • A background job is charged when it is done. Reading its status or its result is free.

Read your balance

curl -s "$HEELO_API_URL/v1/billing/balance" \
  -H "Authorization: Bearer $HEELO_API_KEY"

balance_cents is what you can spend, in credits. See each call in Usage in your dashboard, and the plans in Pricing.

All tools

Open a tool to see what it does, its price, an example request, its input and output fields, and Python code that calls it. In the code, fill in the required fields.

Loop I: Distribution11 tools

Publish content: hosted pages, short links, share cards and visit statistics. The social posting tools are in Base tools.

inbound.page.publish

Publish landing pages, articles, or changelogs on a Heelo-hosted site. Link to them from social posts and outreach emails.

25 credits. Per page published.

Example request

Publish a landing page titled 'Early access' at slug 'early-access'

Input fields

FieldTypeDescription
slugRequiredstringURL slug, e.g. 'why-nobody-uses-your-app'
titleRequiredstringPage title
site_idstringHosted site id. Pass the site_id returned by an earlier publish to put the page in the same site; a new site is created if omitted
kindstringlanding | article | changelog
body_mdstringPage body in Markdown
og_image_asset_idstringAsset id from media.render
og_image_urlstringExplicit og:image URL (overrides asset id)
captureobject{enabled, fields, cta}
seoobject{description, canonical, jsonld}

Output fields

urlpublished_atsite_idcanonical_urlog_image_urlkindcaptureanswer

Python

import os
import requests

response = requests.post(
    "https://toolsprimitives.uk/v1/tools/inbound.page.publish/invoke",
    headers={"Authorization": f"Bearer {os.environ['HEELO_API_KEY']}"},
    json={"input": {
        "slug": "...",
        "title": "...",
    }},
    timeout=120,
)
response.raise_for_status()
print(response.json())
inbound.page.audit

Audit a published page for performance and accessibility with Lighthouse.

2 credits. Per audit.

Example request

Run Lighthouse three times on my early-access landing page

Input fields

FieldTypeDescription
page_urlRequiredstringURL of a page you published with inbound.page.publish
runsintegerHow many Lighthouse runs (1-5)
presetstringdesktop | mobile (mobile is Lighthouse's default form factor)

Output fields

page_urlpresetlighthouse_versionrunsmedian_performancemedian_accessibilityboth_at_least_90answer

Python

import os
import requests

response = requests.post(
    "https://toolsprimitives.uk/v1/tools/inbound.page.audit/invoke",
    headers={"Authorization": f"Bearer {os.environ['HEELO_API_KEY']}"},
    json={"input": {
        "page_url": "...",
    }},
    timeout=120,
)
response.raise_for_status()
print(response.json())
inbound.link.wrap

Create a short link and track clicks by campaign, channel, or contact without cookies.

0 credits. Free: part of a publish.

Example request

Wrap https://example.com/pricing for the email channel in campaign seq_2026q4

Input fields

FieldTypeDescription
target_urlRequiredstringThe destination URL to wrap
campaignstringCampaign id, e.g. 'seq_2026q4'
channelstringChannel, e.g. 'email' | 'bluesky'
contact_idstringContact to attribute the click to
reuse_existingbooleanWhen true, return the first short link already made for the same target_url, campaign, channel and contact_id instead of creating a new one. Default false: every call makes a new code.

Output fields

short_urlcodereusedanswer

Python

import os
import requests

response = requests.post(
    "https://toolsprimitives.uk/v1/tools/inbound.link.wrap/invoke",
    headers={"Authorization": f"Bearer {os.environ['HEELO_API_KEY']}"},
    json={"input": {
        "target_url": "...",
    }},
    timeout=120,
)
response.raise_for_status()
print(response.json())
inbound.site.list

List available publishing destinations and their status, including hosted sites, WordPress, Ghost, and Webflow.

0 credits. Free: reads Heelo's own setup.

Example request

Which sites can I publish to?

Output fields

adapterssitesanswer

Python

import os
import requests

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

View campaign visits, visitors by channel and contact, lead conversion rates, and top pages.

0 credits. Free: reads Heelo's own records.

Example request

Show inbound stats for campaign seq_2026q4

Input fields

FieldTypeDescription
site_idRequiredstringSite to report on
campaignRequiredstringCampaign id, e.g. 'seq_2026q4'
sincestringISO start of window (alias: from)
untilstringISO end of window (alias: to)
include_visitsbooleanAlso return the campaign's visit rows exactly as stored (every stored column, at most 50, newest first) and the stored column names — to check what visit data is kept, e.g. that no raw IP is.

Output fields

visitsuniquesby_channelcapturescapture_rateby_contacttop_pagesstored_visitsstored_visit_columns

Python

import os
import requests

response = requests.post(
    "https://toolsprimitives.uk/v1/tools/inbound.stats/invoke",
    headers={"Authorization": f"Bearer {os.environ['HEELO_API_KEY']}"},
    json={"input": {
        "site_id": "...",
        "campaign": "...",
    }},
    timeout=120,
)
response.raise_for_status()
print(response.json())
media.render.card

Create social share images in multiple sizes for quotes, data, announcements, or covers.

0 credits. Free: part of a publish.

Example request

Make an announcement card for our launch

Input fields

FieldTypeDescription
templateRequiredstringquote | stat | announce | cover
textstringPrimary text (headline / quote / stat)
subtextstringSecondary text (attribution / label / eyebrow)
brandobject
sizesarray of stringAny of: og_1200x630, ig_1080x1080, ig_story_1080x1920, x_1600x900

Output fields

assetsanswer

Python

import os
import requests

response = requests.post(
    "https://toolsprimitives.uk/v1/tools/media.render.card/invoke",
    headers={"Authorization": f"Bearer {os.environ['HEELO_API_KEY']}"},
    json={"input": {
        "template": "...",
    }},
    timeout=120,
)
response.raise_for_status()
print(response.json())
channel.expand

Adapt a piece of content for different social platforms.

0 credits. Free: preview text only. The posts are charged by the posting tools.

Example request

Post this update to Bluesky and LinkedIn

Input fields

FieldTypeDescription
contentstringThe content to distribute
channelsarray of stringTarget channels, e.g. ['bluesky','linkedin']
querystringA request in words, for a caller that has no structured input (the NL router, the ReAct loop): 'Post "We shipped" to Bluesky and LinkedIn'. The text in quotes, or after a colon, is the content; the channels named outside it are the targets. Use content and channels when you can.
messagestringYour answer to the confirmation question of an open session: 'post' to post the drafts, 'cancel' to drop them. Send it with the session_id.
budget_capnumberOptional spend ceiling in CENTS. If the pre-dispatch cost estimate exceeds it, the run is refused with error_code 'quota_exceeded' before anything posts. On a hosted environment the lower of budget_cap and the hard cap (METERED_CAP_CENTS, default 0) applies; the result's cost.cap_source says which.
estimate_onlybooleanWhen true, return the cost_hint (link vs no-link) and `previews` (the final text for each channel) without posting — used to show the user the cost and the texts before they commit. The result's cost.would_exceed_cap says whether a real run would be refused by the cap, and cost.pricing where the prices come from.
mediaobjectOptional media for a channel, by channel name: {'instagram': ['https://.../card.png']}. Only a channel whose poster takes media (Instagram, Bluesky) may be named; any other channel, or a channel that is not in `channels`, is refused before anything posts. A channel that needs media (Instagram) stops at its 'need media' prompt without it.

Output fields

resultsanswer

Python

import os
import requests

response = requests.post(
    "https://toolsprimitives.uk/v1/tools/channel.expand/invoke",
    headers={"Authorization": f"Bearer {os.environ['HEELO_API_KEY']}"},
    json={"input": {}},
    timeout=120,
)
response.raise_for_status()
print(response.json())
loop1.run.start

Start a distribution run that prepares a card, a page, and posts for each platform. Publishing follows approval.

Charged by the tools it calls. inbound.page.publish 25, 40 per post.

Input fields

FieldTypeDescription
messageRequiredstringThe one message to adapt to each channel
channelsRequiredarray of stringbluesky, linkedin, twitter (or x), instagram, reddit. Reddit posts only when it is named.
pageRequiredobject
cardobjectRequired for instagram; its image is the page's og:image
redditobjectRequired when reddit is a channel
campaignstringThe stats key. Default: the run id. One open run for each campaign
site_idstringOne of your Loop I site ids
budget_cap_centsnumberIgnored: each post costs its price, and approve checks that the balance covers every post. Accepted so older callers still work
acknowledge_unknownbooleanSet to true only after a person checked the accounts. start refuses a campaign whose last run has a channel with an unknown outcome (it may have posted); with this set, it starts a new run for the campaign anyway

Python

import os
import requests

response = requests.post(
    "https://toolsprimitives.uk/v1/tools/loop1.run.start/invoke",
    headers={"Authorization": f"Bearer {os.environ['HEELO_API_KEY']}"},
    json={"input": {
        "message": "...",
        "channels": [],
        "page": {},
    }},
    timeout=120,
)
response.raise_for_status()
print(response.json())
loop1.run.approve

Approve a distribution run so its posts can be published.

Charged by the tools it calls. 40 per post.

Input fields

FieldTypeDescription
run_idRequiredstring
review_digestRequiredstringThe review_digest that status showed, unchanged
approved_byRequiredstringYour user's name
confirmbooleanfalse: show what would post and change nothing. true: post to the channels
channelsarray of stringPost to these channels only; default: all

Python

import os
import requests

response = requests.post(
    "https://toolsprimitives.uk/v1/tools/loop1.run.approve/invoke",
    headers={"Authorization": f"Bearer {os.environ['HEELO_API_KEY']}"},
    json={"input": {
        "run_id": "...",
        "review_digest": "...",
        "approved_by": "...",
    }},
    timeout=120,
)
response.raise_for_status()
print(response.json())
loop1.run.status

Check the progress of a distribution run.

0 credits. Free: status read.

Input fields

FieldTypeDescription
run_idstringLeave out to list your runs
include_statsbooleanAdd the visits, unique visitors and captures that the run's short links and page have got so far (inbound.stats for the run's site and campaign), in total and for each channel

Python

import os
import requests

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

Stop a distribution run.

0 credits. Free: a stop is free.

Input fields

FieldTypeDescription
run_idRequiredstring
reasonstringWhy, for the record

Python

import os
import requests

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

Loop II: Acquisition32 tools

Find companies and people, send outreach e-mails, and run campaigns that connect these steps.

icp.search

Find companies that match an ideal customer profile. The job runs in the background and returns company, funding, and contact information.

6 credits. Per company returned.

Example request

Find seed-stage fintech startups in the US and who to contact there

Input fields

FieldTypeDescription
querystringThe ICP in plain language, e.g. 'seed-stage fintech startups in the US'
specobjectStructured ICP criteria; merged over anything parsed from `query`
session_idstringContinue an in-progress ICP definition conversation
messagestringAnswer to the previous clarification question
target_countintegerHow many companies to return (default 10)

Output fields

job_idstatusspectarget_countreused_existing_jobpoll_withanswer

Python

import os
import requests

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

Check the progress of an ICP search and retrieve its results.

0 credits. Free: status read.

Example request

Check on my ICP search

Input fields

FieldTypeDescription
job_idRequiredstringThe job_id returned by icp.search
limitintegerMax companies to return (default 100)
offsetintegerPagination offset into the ranked list
include_claimsbooleanInclude the full per-field provenance for each company. Verbose — use only when auditing where a value came from.

Output fields

answerduration_sjob_idstatusphasephase_labelprogresscost_centscompaniescompleteranking_finalestimateretry_after_snext_actionerror

Python

import os
import requests

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

Export completed ICP search results as CSV, JSON, or Markdown.

0 credits. Free: reads a finished result.

Example request

Export my ICP search results to CSV

Input fields

FieldTypeDescription
job_idRequiredstringThe job_id returned by icp.search
formatstringcsv, json, or markdown
limitintegerMaximum companies to include
inlinebooleanInclude the full file content in the response. Left unset, a small export returns its content and a large one does not, which is almost always what is wanted. Set false to always suppress it, true to force it up to 200 rows.

Output fields

job_idformatpathdownload_urlrow_countcolumnspreviewcontentanswer

Python

import os
import requests

response = requests.post(
    "https://toolsprimitives.uk/v1/tools/icp.export_results/invoke",
    headers={"Authorization": f"Bearer {os.environ['HEELO_API_KEY']}"},
    json={"input": {
        "job_id": "...",
    }},
    timeout=120,
)
response.raise_for_status()
print(response.json())
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 request

Cancel that company search

Input fields

FieldTypeDescription
job_idRequiredstringThe job_id returned by icp.search

Output fields

job_idstatuswas_runningenrichedcost_centsmessage

Python

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": "...",
    }},
    timeout=120,
)
response.raise_for_status()
print(response.json())
contact.resolve

Find decision-makers at a company with email verification and sources.

25 credits. Per person found. A general inbox (for example info@) is free, and so is no result.

Input fields

FieldTypeDescription
company_domainstring
company_namestring
person_namestring
role_hintsarray of string
jurisdiction_hintstring
max_candidatesinteger
require_verifiedboolean

Python

import os
import requests

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

Find people discussing a specific pain point on the public web. Return one entry per person, with direct quotes, sources, and a 30-day trend.

90 credits. Per search or job that finds at least one person. Reading a result is free.

Input fields

FieldTypeDescription
action"search" | "start" | "result"
painstring
job_idstring
budget_usdnumberIgnored: Heelo sets what a search may spend. Accepted so older callers still work.
platformsarray of stringWhere to search: reddit, bluesky (a connected account), twitter (a connected browser session), web, github (public issues, through GitHub's search API) and hackernews (stories and comments, through the Hacker News Search API). LinkedIn is refused.
window_daysinteger
min_signalinteger
max_peopleinteger
exclude_domainsarray of string

Python

import os
import requests

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

Manage outreach through the legacy action parameter. Use the dedicated outbound.mail tools for new integrations.

0 credits. Free for the call. Each e-mail it sends is charged 5.

Input fields

FieldTypeDescription
actionRequiredstringdomain.check, contact.add, contact.list, consent.record, sequence.create, sequence.enroll, sequence.status, sequence.stop, sequence.resume, suppress.add, suppress.check, reputation.status, sender.add, sender.verify, sender.list, sender.remove
paramsobjectThe action's fields, as the input schema of its own tool, outbound.mail.<action>, gives them.

Python

import os
import requests

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

Create an outreach sequence with 1 to 20 emails. Sending starts separately.

0 credits. Free: setup.

Input fields

FieldTypeDescription
nameRequiredstringA name for the sequence.
from_domainRequiredstringThe sending domain, for example mail.example.com. Check it first with outbound.mail.domain_check: enrollment and each send need it ready to send.
from_emailRequiredstringThe From address: a verified sender of this account (outbound.mail.sender_list). Its domain must be from_domain.
from_namestringThe display name in the From header.
reply_tostringLeave it out: replies go to Heelo's reply address, which stops the sequence for that contact and forwards the reply to the sender's forward_to. Any other address is refused.
stream"cold" | "transactional"The sending stream. The daily limits count each domain and stream apart.
stepsRequiredarray of objectThe messages to send, 1 to 20 steps.
physical_addressstringRequired by law (CAN-SPAM): the sender's postal address, added to the footer of every message. Ask the user for it and never make one up. A call without it is refused (policy, missing_statutory_element).
ad_disclosurebooleanRequired by law (CAN-SPAM): must be true. It confirms that each message is an advertisement; the footer says so. Ask the user and never set it on your own. A call without it, or with false, is refused (policy, missing_statutory_element).
daily_capintegerThe most messages in one UTC day from this domain and stream, counting all your sequences; the warm-up limit can be lower. A step over the limit waits until the next day.
warmup_startintegerWarm-up: the daily limit on the first day this domain and stream send.
warmup_growthnumberWarm-up: how much the daily limit grows each day (0.2 = 20%), up to daily_cap.
stop_other_sequences_on_replybooleanA reply always stops this sequence for that contact. Set true to also stop every other sequence at that contact.

Python

import os
import requests

response = requests.post(
    "https://toolsprimitives.uk/v1/tools/outbound.mail.sequence_create/invoke",
    headers={"Authorization": f"Bearer {os.environ['HEELO_API_KEY']}"},
    json={"input": {
        "name": "...",
        "from_domain": "...",
        "from_email": "...",
        "steps": [],
    }},
    timeout=120,
)
response.raise_for_status()
print(response.json())
outbound.mail.sequence_enroll

Enroll a contact in a sequence so the sending worker can deliver emails on schedule.

5 credits per e-mail. Free for the call. Each e-mail sent is charged 5 when the mail provider accepts it. A later bounce is not refunded.

Input fields

FieldTypeDescription
sequence_idRequiredstringThe sequence's id, from outbound.mail.sequence_create.
contact_idsRequiredarray of stringContact ids, from outbound.mail.contact_add or contact.resolve. A contact is enrolled only when no verifier called its address undeliverable, it has consent (outbound.mail.consent_record) and the pre-send checks pass; the answer gives each skipped contact with its reason (and, when the check names one, its detail_code and message, such as sender_domain_not_ready).

Python

import os
import requests

response = requests.post(
    "https://toolsprimitives.uk/v1/tools/outbound.mail.sequence_enroll/invoke",
    headers={"Authorization": f"Bearer {os.environ['HEELO_API_KEY']}"},
    json={"input": {
        "sequence_id": "...",
        "contact_ids": [],
    }},
    timeout=120,
)
response.raise_for_status()
print(response.json())
outbound.mail.sequence_status

View a sequence and delivery status for each contact.

0 credits. Free: status read.

Input fields

FieldTypeDescription
sequence_idRequiredstringThe sequence's id, from outbound.mail.sequence_create or outbound.mail.sequence_list.

Python

import os
import requests

response = requests.post(
    "https://toolsprimitives.uk/v1/tools/outbound.mail.sequence_status/invoke",
    headers={"Authorization": f"Bearer {os.environ['HEELO_API_KEY']}"},
    json={"input": {
        "sequence_id": "...",
    }},
    timeout=120,
)
response.raise_for_status()
print(response.json())
outbound.mail.sequence_list

List the 100 most recent sequences.

0 credits. Free: list.

Python

import os
import requests

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

Stop future emails in a sequence for a specific contact.

0 credits. Free: a stop is free.

Input fields

FieldTypeDescription
enrollment_idRequiredstringThe enrollment's id: enrollments[].id in outbound.mail.sequence_status.

Python

import os
import requests

response = requests.post(
    "https://toolsprimitives.uk/v1/tools/outbound.mail.sequence_stop/invoke",
    headers={"Authorization": f"Bearer {os.environ['HEELO_API_KEY']}"},
    json={"input": {
        "enrollment_id": "...",
    }},
    timeout=120,
)
response.raise_for_status()
print(response.json())
outbound.mail.sequence_resume

Resume paused sending after the issue is resolved.

0 credits. Free: control action.

Input fields

FieldTypeDescription
enrollment_idRequiredstringThe enrollment's id: enrollments[].id in outbound.mail.sequence_status.

Python

import os
import requests

response = requests.post(
    "https://toolsprimitives.uk/v1/tools/outbound.mail.sequence_resume/invoke",
    headers={"Authorization": f"Bearer {os.environ['HEELO_API_KEY']}"},
    json={"input": {
        "enrollment_id": "...",
    }},
    timeout=120,
)
response.raise_for_status()
print(response.json())
outbound.mail.contact_add

Add a contact who has agreed to be contacted and check their email address.

0 credits. Free: setup.

Input fields

FieldTypeDescription
emailRequiredstringThe person's email address. It is verified when added: an address that a verifier calls undeliverable cannot be enrolled.
authorisation_sourceRequiredstringHow the person agreed to be contacted, for example 'signup form on example.com'.
authorisation_evidenceRequiredstringWhere that agreement is recorded, for example the form submission's URL or id.
full_namestringThe person's full name. It replaces {{full_name}} in a sequence's templates.
rolestringThe person's job title.
company_domainstringThe domain of the person's company, for example example.com. It replaces {{company_domain}} in a sequence's templates.
jurisdictionstringThe person's country, as a two-letter code. Mail goes only to US, CA and GB (or UK) contacts; a new contact without one is UNKNOWN and is not mailed.
subscriber_type"individual" | "corporate" | "unknown"individual or corporate. A GB contact is mailed only when corporate, or individual with express consent. A new contact without one is unknown.
email_patternstringThe company's address pattern, for example first.last. Give it only when it is the real one.

Python

import os
import requests

response = requests.post(
    "https://toolsprimitives.uk/v1/tools/outbound.mail.contact_add/invoke",
    headers={"Authorization": f"Bearer {os.environ['HEELO_API_KEY']}"},
    json={"input": {
        "email": "...",
        "authorisation_source": "...",
        "authorisation_evidence": "...",
    }},
    timeout=120,
)
response.raise_for_status()
print(response.json())
outbound.mail.contact_list

List the 100 most recently added contacts.

0 credits. Free: list.

Python

import os
import requests

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

Record the lawful basis for emailing a contact.

0 credits. Free: compliance step.

Input fields

FieldTypeDescription
contact_idRequiredstringThe contact's id, from outbound.mail.contact_add or contact.resolve.
lawful_basisRequired"express" | "implied" | "legitimate_interest"The basis for mailing this person. A CA contact needs express or implied (implied lasts two years from obtained_at); a GB individual needs express.
sourceRequiredstringWhere the consent came from, for example 'signup form on example.com'.
evidence_urlRequiredstringWhere the evidence of the consent is kept: a URL or a reference.
obtained_atRequiredstringWhen the person agreed: ISO-8601 with a timezone, for example 2026-10-14T09:30:00Z. Not in the future.
expires_atstringWhen the consent ends: ISO-8601 with a timezone, after obtained_at. Leave it out for no end.
subscriber_type"individual" | "corporate" | "unknown"Also sets the contact's subscriber type. Leave it out to keep the stored one.

Python

import os
import requests

response = requests.post(
    "https://toolsprimitives.uk/v1/tools/outbound.mail.consent_record/invoke",
    headers={"Authorization": f"Bearer {os.environ['HEELO_API_KEY']}"},
    json={"input": {
        "contact_id": "...",
        "lawful_basis": "...",
        "source": "...",
        "evidence_url": "...",
        "obtained_at": "...",
    }},
    timeout=120,
)
response.raise_for_status()
print(response.json())
outbound.mail.suppress_add

Add an email address to the suppression list.

0 credits. Free: compliance step.

Input fields

FieldTypeDescription
emailRequiredstringThe recipient's email address.

Python

import os
import requests

response = requests.post(
    "https://toolsprimitives.uk/v1/tools/outbound.mail.suppress_add/invoke",
    headers={"Authorization": f"Bearer {os.environ['HEELO_API_KEY']}"},
    json={"input": {
        "email": "...",
    }},
    timeout=120,
)
response.raise_for_status()
print(response.json())
outbound.mail.suppress_check

Check whether an email address is on the suppression list.

0 credits. Free: compliance step.

Input fields

FieldTypeDescription
emailRequiredstringThe recipient's email address.

Python

import os
import requests

response = requests.post(
    "https://toolsprimitives.uk/v1/tools/outbound.mail.suppress_check/invoke",
    headers={"Authorization": f"Bearer {os.environ['HEELO_API_KEY']}"},
    json={"input": {
        "email": "...",
    }},
    timeout=120,
)
response.raise_for_status()
print(response.json())
outbound.mail.sender_add

Add a sender address on your own domain and get the required DNS records.

0 credits. Free: setup.

Input fields

FieldTypeDescription
from_emailRequiredstringThe From address to send from, for example [email protected]. The user must control the DNS of its domain: the answer gives the DNS records to publish there.
forward_toRequiredstringThe user's mailbox that replies to this sender are forwarded to. Ask the user for it and never make one up: replies are forwarded only after its owner confirms it.
from_namestringThe display name shown with the address, on one line.
is_defaultbooleanMake this the default sender of its domain, which tools that only name a domain use.

Python

import os
import requests

response = requests.post(
    "https://toolsprimitives.uk/v1/tools/outbound.mail.sender_add/invoke",
    headers={"Authorization": f"Bearer {os.environ['HEELO_API_KEY']}"},
    json={"input": {
        "from_email": "...",
        "forward_to": "...",
    }},
    timeout=120,
)
response.raise_for_status()
print(response.json())
outbound.mail.sender_verify

Check the DNS records and verification status for a sender address.

0 credits. Free: setup.

Input fields

FieldTypeDescription
sender_idRequiredstringThe sender's id, from outbound.mail.sender_add or outbound.mail.sender_list.
otpintegerThe code in the mail that Brevo sent to from_email, when brevo_sender_active is false. Ask the user for it and never make one up.
resend_confirmationbooleanTrue mails a new confirmation link to forward_to; the old link stops working. Use it only when the user did not get the mail or the link expired. At most 3 mails a day for each sender.

Python

import os
import requests

response = requests.post(
    "https://toolsprimitives.uk/v1/tools/outbound.mail.sender_verify/invoke",
    headers={"Authorization": f"Bearer {os.environ['HEELO_API_KEY']}"},
    json={"input": {
        "sender_id": "...",
    }},
    timeout=120,
)
response.raise_for_status()
print(response.json())
outbound.mail.sender_list

List sender addresses and their status.

0 credits. Free: list.

Python

import os
import requests

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

Disable a sender address.

0 credits. Free: setup.

Input fields

FieldTypeDescription
sender_idRequiredstringThe sender's id, from outbound.mail.sender_add or outbound.mail.sender_list.

Python

import os
import requests

response = requests.post(
    "https://toolsprimitives.uk/v1/tools/outbound.mail.sender_remove/invoke",
    headers={"Authorization": f"Bearer {os.environ['HEELO_API_KEY']}"},
    json={"input": {
        "sender_id": "...",
    }},
    timeout=120,
)
response.raise_for_status()
print(response.json())
outbound.mail.domain_check

Check a sending domain's SPF, DKIM, DMARC, and related settings.

0 credits. Free: setup.

Input fields

FieldTypeDescription
domainRequiredstringThe sending domain to check, for example mail.example.com: a DNS name without a scheme or a mailbox.
dkim_selectorstringThe DKIM selector: the check reads <selector>._domainkey.<domain>.
from_domainstringThe domain of the From address, when it is not domain. Alignment fails when they differ.
sending_ipstringThe IP address the mail leaves from. The spf and ptr signals need it: without it, ready_to_send is false.
smtp_hoststringThe SMTP host that sends the mail. The spf and tls signals need it: without it, ready_to_send is false.

Python

import os
import requests

response = requests.post(
    "https://toolsprimitives.uk/v1/tools/outbound.mail.domain_check/invoke",
    headers={"Authorization": f"Bearer {os.environ['HEELO_API_KEY']}"},
    json={"input": {
        "domain": "...",
    }},
    timeout=120,
)
response.raise_for_status()
print(response.json())
outbound.mail.reputation_status

View daily sending reputation, including sent emails, bounces, and complaints.

0 credits. Free: status read.

Python

import os
import requests

response = requests.post(
    "https://toolsprimitives.uk/v1/tools/outbound.mail.reputation_status/invoke",
    headers={"Authorization": f"Bearer {os.environ['HEELO_API_KEY']}"},
    json={"input": {}},
    timeout=120,
)
response.raise_for_status()
print(response.json())
acquisition.campaign.create

Start a campaign from a pain point or company list. Find decision-makers and draft up to five emails for approval.

Charged by the tools it calls. demand.radar 90 (when it starts from a pain), contact.resolve 25 per person found.

Input fields

FieldTypeDescription
nameRequiredstringA name for the campaign. It also names the mail sequence.
painstringSource 1: the problem the customers have, in plain words (the ICP's pain). Heelo searches public posts for people who say they have it, and looks up contacts at their companies. Give pain or companies, not both.
companiesarray of objectSource 2: the companies to reach (1 to 200), for example from icp.search. Give pain or companies, not both.
radar_platformsarray of stringWith pain only: the platforms to search, from reddit, bluesky, twitter, web, github and hackernews (default reddit, bluesky, web, github, hackernews).
radar_window_daysintegerWith pain only: how many days back to search.
radar_budget_usdnumberIgnored: Heelo sets what the search may spend, and the search costs its price (90 credits when it finds a person). Accepted so older callers still work.
target_rolesarray of stringThe roles to reach at each company, best first, for example ['head of finance', 'CFO'].
from_domainRequiredstringThe domain the mail is sent from. It must be a sender that can send: acquisition.campaign.create says which one when it is not.
from_namestringThe display name in the From header.
reply_tostringThe mailbox where replies are read, so that a reply stops the sequence for that person. Leave it out to use the deployment's reply address.
stepsRequiredarray of objectThe messages, 1 to 5, for example days 0, 3 and 7. Templates may use {{full_name}}, {{company_domain}} and {{tracking_url}} (a tracked link: put it in at least one step so that a click is attributed to the person). The footer (Advertisement, the postal address and an unsubscribe link) is added to every message.
daily_capintegerThe most messages a day from this domain.
target_contactsintegerStop looking up contacts when this many are found (1 to 200).
contacts_per_companyintegerThe most contacts at one company (1 to 3).
budget_usdnumberIgnored: the campaign costs its inner uses at their prices (25 credits per person found, 5 per e-mail the mail provider accepts), and the lookups stop at target_contacts. Accepted so older callers still work.
jurisdictionstringThe country of the people to reach, as a two-letter code: US or CA. Other countries are refused (policy, jurisdiction_blocked) before any lookup.
physical_addressstringRequired by law (CAN-SPAM): the sender's postal address, added to every message. Ask the user for it and never make one up. A call without it is refused (policy, missing_statutory_element).
ad_disclosurebooleanRequired by law (CAN-SPAM): must be true. It confirms that each message is an advertisement; the footer says so. Ask the user and never set it on your own. A call without it, or with false, is refused (policy, missing_statutory_element).

Python

import os
import requests

response = requests.post(
    "https://toolsprimitives.uk/v1/tools/acquisition.campaign.create/invoke",
    headers={"Authorization": f"Bearer {os.environ['HEELO_API_KEY']}"},
    json={"input": {
        "name": "...",
        "from_domain": "...",
        "steps": [],
    }},
    timeout=120,
)
response.raise_for_status()
print(response.json())
acquisition.campaign.approve

Approve a campaign and start sending its emails.

Charged by the tools it calls. 5 per e-mail sent.

Input fields

FieldTypeDescription
campaign_idRequiredstringThe campaign's id, from acquisition.campaign.create or acquisition.campaign.list.
review_digestRequiredstringreview.review_digest from acquisition.campaign.status: it proves which review was approved.
lawful_basisRequired"express" | "implied" | "legitimate_interest"The basis for mailing these people, as the user states it. Canada (CA) needs express or implied. Ask the user; never choose it yourself.
consent_sourceRequiredstringWhere the basis comes from, in the user's words, for example 'B2B: a public role at the company, and our product addresses the pain they posted about'.
consent_evidence_urlRequiredstringWhere the user keeps the record of that basis: a URL or a document reference.
approved_byRequiredstringThe name of the person who approves the send.
exclude_contact_idsarray of stringContacts from the review that must not be mailed.
confirmbooleanLeave it out first: the answer is the draft of what will be sent. Set it to true only after the user has seen the review and said yes; nothing is sent before.

Python

import os
import requests

response = requests.post(
    "https://toolsprimitives.uk/v1/tools/acquisition.campaign.approve/invoke",
    headers={"Authorization": f"Bearer {os.environ['HEELO_API_KEY']}"},
    json={"input": {
        "campaign_id": "...",
        "review_digest": "...",
        "lawful_basis": "...",
        "consent_source": "...",
        "consent_evidence_url": "...",
        "approved_by": "...",
    }},
    timeout=120,
)
response.raise_for_status()
print(response.json())
acquisition.campaign.status

Check campaign progress and see the next step.

0 credits. Free: status read.

Input fields

FieldTypeDescription
campaign_idRequiredstringThe campaign's id, from acquisition.campaign.create or acquisition.campaign.list.

Python

import os
import requests

response = requests.post(
    "https://toolsprimitives.uk/v1/tools/acquisition.campaign.status/invoke",
    headers={"Authorization": f"Bearer {os.environ['HEELO_API_KEY']}"},
    json={"input": {
        "campaign_id": "...",
    }},
    timeout=120,
)
response.raise_for_status()
print(response.json())
acquisition.campaign.report

View campaign results, including companies, contacts, sends, deliveries, clicks, replies, and bounces.

0 credits. Free: reads Heelo's own records.

Input fields

FieldTypeDescription
campaign_idRequiredstringThe campaign's id, from acquisition.campaign.create or acquisition.campaign.list.

Python

import os
import requests

response = requests.post(
    "https://toolsprimitives.uk/v1/tools/acquisition.campaign.report/invoke",
    headers={"Authorization": f"Bearer {os.environ['HEELO_API_KEY']}"},
    json={"input": {
        "campaign_id": "...",
    }},
    timeout=120,
)
response.raise_for_status()
print(response.json())
acquisition.campaign.list

List the 50 most recent campaigns.

0 credits. Free: list.

Python

import os
import requests

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

Pause prospecting and email sending for a campaign.

0 credits. Free: control action.

Input fields

FieldTypeDescription
campaign_idRequiredstringThe campaign's id, from acquisition.campaign.create or acquisition.campaign.list.

Python

import os
import requests

response = requests.post(
    "https://toolsprimitives.uk/v1/tools/acquisition.campaign.pause/invoke",
    headers={"Authorization": f"Bearer {os.environ['HEELO_API_KEY']}"},
    json={"input": {
        "campaign_id": "...",
    }},
    timeout=120,
)
response.raise_for_status()
print(response.json())
acquisition.campaign.resume

Resume a paused campaign.

0 credits. Free: control action. The work after it is charged as usual.

Input fields

FieldTypeDescription
campaign_idRequiredstringThe campaign's id, from acquisition.campaign.create or acquisition.campaign.list.

Python

import os
import requests

response = requests.post(
    "https://toolsprimitives.uk/v1/tools/acquisition.campaign.resume/invoke",
    headers={"Authorization": f"Bearer {os.environ['HEELO_API_KEY']}"},
    json={"input": {
        "campaign_id": "...",
    }},
    timeout=120,
)
response.raise_for_status()
print(response.json())
acquisition.campaign.cancel

Permanently cancel a campaign.

0 credits. Free: a stop is free.

Input fields

FieldTypeDescription
campaign_idRequiredstringThe campaign's id, from acquisition.campaign.create or acquisition.campaign.list.
confirmbooleanMust be true: cancelling stops every further lookup and send for good. Ask the user first.

Python

import os
import requests

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

Loop III: Assistant32 tools

Read e-mail, get data from documents, make documents, and write to calendars and Notion.

mail.read_list

List messages in a Microsoft 365, Outlook.com, or IMAP mailbox folder.

2 credits. Per call.

Example request

What's in my inbox?

Input fields

FieldTypeDescription
account_handlestringWhich configured mailbox to read. Optional when only one is configured.
folderstringMailbox folder to list.
sincestringLower bound on received time, UTC ISO-8601 (e.g. 2026-09-01T00:00:00Z).
querystringOptional text to match against subject, sender and body.
limitintegerPage size (max 200).
cursorstringOpaque cursor returned by a previous call, to fetch the next page.
end_user_idstringOptional end-user scope for multi-tenant callers.

Output fields

accountproviderfoldercountmessagesnext_cursormoreavailable_accountsquerysinceuntrusted

Python

import os
import requests

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

Read an email body and list its attachments.

2 credits. Per call.

Example request

Read that email from Acme

Input fields

FieldTypeDescription
message_idRequiredstringMessage id, as returned by mail.read_list.
account_handlestringWhich configured mailbox to read.
folderstringFolder that holds the message.
end_user_idstringOptional end-user scope.

Output fields

idaccountproviderfoldersubjectfromtoccsnippetreceived_atunreadhas_attachmentsthread_idbody_textbody_htmlattachmentsattachments_over_limituid_validityuntrusted

Python

import os
import requests

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

Download an attachment from an email.

2 credits. Per call.

Example request

Get the PDF attached to that invoice email

Input fields

FieldTypeDescription
message_idRequiredstringMessage id, as returned by mail.read_list.
attachment_idRequiredstringAttachment id, as returned by mail.read_get.
account_handlestringWhich configured mailbox to read.
folderstringFolder that holds the message.
end_user_idstringOptional end-user scope.

Output fields

message_idattachment_idfilenamecontent_typesize_bytesbytes_readstreamedcontent_encodingcontent_base64noteaccount

Python

import os
import requests

response = requests.post(
    "https://toolsprimitives.uk/v1/tools/mail.read_attachment/invoke",
    headers={"Authorization": f"Bearer {os.environ['HEELO_API_KEY']}"},
    json={"input": {
        "message_id": "...",
        "attachment_id": "...",
    }},
    timeout=120,
)
response.raise_for_status()
print(response.json())
mail.read_watch

Fetch messages that arrived since the last check.

2 credits. Per call.

Example request

Tell me when a new email arrives

Input fields

FieldTypeDescription
account_handlestringWhich configured mailbox to watch.
folderstringFolder to watch for new mail.
cursorstringOpaque cursor from the previous call. Optional: without it the watch resumes from the position saved by the last call for this mailbox, and only when there is none does it establish a baseline (returning no messages that first time).
timeout_sintegerSeconds to wait for new mail before returning empty (max 300).
resetbooleanDiscard the saved position and start a new baseline from now.
end_user_idstringOptional end-user scope.

Output fields

accountproviderfoldercountmessagesnext_cursorrebuiltbaseline_establishedresumed_fromwaited_suntrusted

Python

import os
import requests

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

Extract text and tables from PDFs, scans, Office files, or emails.

25 credits. Per document. 0 when nothing is read.

Example request

Extract the text from this PDF

Input fields

FieldTypeDescription
sourceRequiredobjectThe document: {data} as base64, or {asset_id} returned by doc.render_* for the same caller and end_user_id.
end_user_idstringWhich of your end users an asset_id belongs to; must match the one it was rendered for.
mode"auto" | "fast" | "accurate"auto routes by document class; fast stops at the cheapest tier; accurate may climb.
page_numbersarray of integerOnly return these 1-based pages. Extraction still runs over the document.
max_pagesintegerCap on pages returned (max 500).

Output fields

pagesdoc_kindengine_usedpage_countclassificationcost_hintuntrusted

Python

import os
import requests

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

Extract fields such as invoice numbers, dates, amounts, and line items. Return their locations and confidence scores, and check the arithmetic.

25 credits. Per document. 0 when no field is found.

Example request

Extract the invoice number, total and due date from this PDF

Input fields

FieldTypeDescription
sourceRequiredobjectThe document: {data} as base64, or {asset_id} returned by doc.render_*.
end_user_idstringWhich of your end users an asset_id belongs to; must match the one it was rendered for.
schemaRequiredobjectFields to extract, as name -> type. Types: string, money, date, number, integer, boolean. A repeated group is a one-element list of an object, e.g. {"line_items": [{"desc": "string", "qty": "number", "amount": "money"}]}.
validationsarray of stringExtra checks as expression strings, e.g. "subtotal + tax == total". Added to the built-in defaults; field names refer to the schema.
modestringauto | fast | accurate, as for doc.extract_text.
confidence_thresholdanyIgnored: confidence is a reference only and decides nothing. Accepted so older callers do not fail.
accept_uncalibratedanyIgnored: confidence is a reference only and decides nothing. Accepted so older callers do not fail.
allow_llmbooleanAllow the paid fallback for fields the zero-cost pass could not fill.
open_reviewanyIgnored: every extraction opens a review record. Accepted so older callers do not fail.

Output fields

fieldsvalidationsneeds_reviewreview_fieldsreview_reasonsdoc_kindengine_usedlayout_sourcecost_hintcalibrationunfilled_fieldslow_confidence_fieldsuntrustedextraction_idreview

Python

import os
import requests

response = requests.post(
    "https://toolsprimitives.uk/v1/tools/doc.extract_fields/invoke",
    headers={"Authorization": f"Bearer {os.environ['HEELO_API_KEY']}"},
    json={"input": {
        "source": {},
        "schema": {},
    }},
    timeout=120,
)
response.raise_for_status()
print(response.json())
doc.render_pdf

Turn HTML into a PDF, such as an invoice, report, or receipt.

25 credits. Per document.

Example request

Generate a PDF receipt for this invoice

Input fields

FieldTypeDescription
htmlRequiredstringThe HTML document to render.
engine"auto" | "weasyprint" | "chromium"auto uses WeasyPrint unless the HTML needs JavaScript. weasyprint: own templates, no JS. chromium: scripted charts, third-party HTML, WYSIWYG.
pageobjectPage geometry, e.g. {"size":"A4","margin":"20mm"}. Also orientation, and header / footer as a string or {left,center,right}; {page} and {pages} become page numbers.
media"print" | "screen"CSS media to render with. screen gives the on-screen look.
allow_remote_resourcesbooleanLet the document load http(s) images/styles from public hosts.
wait_msintegerChromium only: extra settle time after load, max 15000.
return_databooleanAlso return the PDF as base64 in `data`.
end_user_idstringWhich of your end users the render is stored for; doc.extract_* must pass the same one to read it.

Output fields

asset_idbytespagescontent_typefilenameengine_usedengine_reasonrender_msstoreddatawarningslimitations

Python

import os
import requests

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

Generate an editable Word document.

25 credits. Per document.

Example request

Create a Word document with this summary and table

Input fields

FieldTypeDescription
blocksRequiredarray of objectDocument content in order. Types: heading, paragraph, list, table, image (base64 data only), page_break, toc.
titlestringDocument title property.
return_databooleanAlso return the file as base64 in `data`.
end_user_idstringWhich of your end users the render is stored for; doc.extract_* must pass the same one to read it.

Output fields

asset_idbytespagescontent_typefilenameengine_usedengine_reasonrender_msstoreddatawarningslimitations

Python

import os
import requests

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

Generate an Excel spreadsheet.

25 credits. Per document.

Example request

Export these line items to an Excel file

Input fields

FieldTypeDescription
sheetsRequiredarray of objectWorksheets in order: {"name":"...","rows":[[...]]}, optionally header, freeze_header and column_widths.
allow_formulasbooleanWrite strings starting with "=" as real formulas. Off by default.
return_databooleanAlso return the file as base64 in `data`.
end_user_idstringWhich of your end users the render is stored for; doc.extract_* must pass the same one to read it.

Output fields

asset_idbytespagescontent_typefilenameengine_usedengine_reasonrender_msstoreddatawarningslimitations

Python

import os
import requests

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

Approve extracted data with optional corrections, or reject it.

0 credits. Free: a person's approval.

Input fields

FieldTypeDescription
review_idRequiredstringThe review.id that doc.extract_fields returned.
decisionRequiredstringapprove | reject
decided_byRequiredstringThe name or id of the person who decided.
correctionsobjectField name -> the right value, for an approval. Typed and checked like extracted values.
notestringWhy, in a sentence.
end_user_idstringThe end user the extraction was made for, if any.

Output fields

review_idstatusdecided_bydecided_atuse_byvalueschecksanswer

Python

import os
import requests

response = requests.post(
    "https://toolsprimitives.uk/v1/tools/doc.review_decide/invoke",
    headers={"Authorization": f"Bearer {os.environ['HEELO_API_KEY']}"},
    json={"input": {
        "review_id": "...",
        "decision": "...",
        "decided_by": "...",
    }},
    timeout=120,
)
response.raise_for_status()
print(response.json())
assistant.invoice.start

Read a PDF invoice attached to an email, extract and check its fields, and wait for review.

Charged by the tools it calls. mail.read_get 2, mail.read_attachment 2, doc.extract_fields 25.

Input fields

FieldTypeDescription
account_handlestringThe mail account to read (mail.read's account_handle); the default when omitted.
message_idstringThe invoice email's id from mail.read_list. Give this or subject.
subjectstringText in the invoice email's subject; the newest match is used. Give this or message_id.
attachment_idstringThe invoice attachment's id, from mail.read_get's attachments (not its file name); needed only when the email has two PDFs.
folderstringThe mailbox folder.
calendar"outlook" | "google" | "none"Which connected calendar gets the payment event; none writes no event.
timezonestringIANA timezone of the event, e.g. America/Chicago. Leave it out to use the calendar's own. A Google Calendar places the event in its own timezone, so another one is refused.
notion_parentstringThe Notion page id or URL to create the record under; none writes no page.
end_user_idstringWhich of your end users the mailbox belongs to.

Python

import os
import requests

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

After approval, add a calendar payment reminder, create a Notion record, and generate a PDF receipt.

Charged by the tools it calls. Calendar event 5, notion.create_page 5, doc.render_pdf 25.

Input fields

FieldTypeDescription
run_idRequiredstringThe run id that start returned (inv_…).
end_user_idstringThe end user the run was started for.
review_digestRequiredstringThe review_digest that status returned with the review.
approved_byRequiredstringThe name of the person who looked at the values.
correctionsobjectField name → corrected value: text, a number, or for line_items a list of rows. Typed and checked like extracted values (doc.review_decide); the checks run again, and the writes use the typed values.
confirmbooleantrue writes; without it the answer says what would be written.

Python

import os
import requests

response = requests.post(
    "https://toolsprimitives.uk/v1/tools/assistant.invoice.approve/invoke",
    headers={"Authorization": f"Bearer {os.environ['HEELO_API_KEY']}"},
    json={"input": {
        "run_id": "...",
        "review_digest": "...",
        "approved_by": "...",
    }},
    timeout=120,
)
response.raise_for_status()
print(response.json())
assistant.invoice.reject

Reject an invoice workflow without creating any records.

0 credits. Free: a person's decision.

Input fields

FieldTypeDescription
run_idRequiredstringThe run id that start returned (inv_…).
end_user_idstringThe end user the run was started for.
rejected_byRequiredstringThe name of the person who decided.
notestringWhy, for the record.

Python

import os
import requests

response = requests.post(
    "https://toolsprimitives.uk/v1/tools/assistant.invoice.reject/invoke",
    headers={"Authorization": f"Bearer {os.environ['HEELO_API_KEY']}"},
    json={"input": {
        "run_id": "...",
        "rejected_by": "...",
    }},
    timeout=120,
)
response.raise_for_status()
print(response.json())
assistant.invoice.status

Check invoice workflow progress and see the next step.

0 credits. Free: status read.

Input fields

FieldTypeDescription
run_idRequiredstringThe run id that start returned (inv_…).
end_user_idstringThe end user the run was started for.

Python

import os
import requests

response = requests.post(
    "https://toolsprimitives.uk/v1/tools/assistant.invoice.status/invoke",
    headers={"Authorization": f"Bearer {os.environ['HEELO_API_KEY']}"},
    json={"input": {
        "run_id": "...",
    }},
    timeout=120,
)
response.raise_for_status()
print(response.json())
assistant.invoice.list

List the 50 most recent invoice workflows.

0 credits. Free: list.

Input fields

FieldTypeDescription
status"reading" | "extracting" | "review" | "writing" | "rendering" | "completed" | "rejected" | "failed" | "cancelled"Only runs in this state; review: the runs that wait for a person.
end_user_idstringOnly this end user's runs.

Python

import os
import requests

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

Stop an unfinished invoice workflow.

0 credits. Free: a stop is free.

Input fields

FieldTypeDescription
run_idRequiredstringThe run id that start returned (inv_…).
end_user_idstringThe end user the run was started for.

Python

import os
import requests

response = requests.post(
    "https://toolsprimitives.uk/v1/tools/assistant.invoice.cancel/invoke",
    headers={"Authorization": f"Bearer {os.environ['HEELO_API_KEY']}"},
    json={"input": {
        "run_id": "...",
    }},
    timeout=120,
)
response.raise_for_status()
print(response.json())
google.calendar_list_events

List Google Calendar events within a date range.

2 credits. Per call.

Example request

What meetings do I have tomorrow?

Input fields

FieldTypeDescription
queryRequiredstringNatural-language calendar query

Output fields

eventstime_mintime_maxanswer

Python

import os
import requests

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

Create a Google Calendar event.

5 credits. Per event created. 0 when cancelled.

Example request

Schedule a team standup tomorrow at 9am for 30 minutes

Input fields

FieldTypeDescription
querystringNatural-language event creation request
review_idstringAn approved review (doc.review_decide) that this write uses; it is claimed before the write.
session_idstringMulti-turn session id: the answer to the question that comes before the write.
messagestringThe answer to that question: yes or no.

Output fields

event_idtitlestartendlinksummary

Python

import os
import requests

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

Update a Google Calendar event.

5 credits. Per event changed. 0 when cancelled.

Example request

Move my 3pm meeting tomorrow to 4pm

Input fields

FieldTypeDescription
querystringNatural-language event update request
review_idstringAn approved review (doc.review_decide) that this write uses; it is claimed before the write.
event_idstringSpecific event ID if already known
session_idstringMulti-turn session id: the answer to the question that comes before the write.
messagestringThe answer to that question: yes or no.

Output fields

event_idtitlestartendlinksummary

Python

import os
import requests

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

Delete a Google Calendar event.

5 credits. Per event deleted. 0 when cancelled.

Example request

Cancel my 3pm meeting tomorrow

Input fields

FieldTypeDescription
querystringNatural-language event cancellation or deletion request
event_idstringSpecific event ID if already known
send_cancellationbooleanIf you organize the event and it has guests, email them the cancellation.
session_idstringMulti-turn session id.
messagestringFollow-up answer (which event / yes or no).

Output fields

deletedcountnotifiedanswer

Python

import os
import requests

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

List Apple Calendar events within a date range.

2 credits. Per call.

Example request

What meetings do I have tomorrow?

Input fields

FieldTypeDescription
querystringNatural-language time range.
timezonestringIANA timezone override.
startstringExplicit RFC3339 start.
endstringExplicit RFC3339 end.
max_resultsintegerMaximum number of events to return.

Output fields

rangecounteventsinterpretationtimezone_note

Python

import os
import requests

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

Create an Apple Calendar event.

5 credits. Per event created. 0 when cancelled.

Example request

Schedule lunch with [email protected] tomorrow at noon

Input fields

FieldTypeDescription
querystringNatural-language event request.
titlestringExplicit event title.
startstringExplicit RFC3339/local start.
endstringExplicit RFC3339/local end.
timezonestringIANA timezone override.
attendeesarray of stringAttendee emails.
locationstringEvent location.
descriptionstringEvent notes.
all_daybooleanWhether this is an all-day event.
session_idstringMulti-turn session id.
messagestringFollow-up answer in a multi-turn session.

Output fields

createdeventtimezone_note

Python

import os
import requests

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

Update an Apple Calendar event.

5 credits. Per event changed. 0 when cancelled.

Example request

Move my 3pm meeting tomorrow to 4pm

Input fields

FieldTypeDescription
querystringNatural-language change request.
event_idstringTarget CalDAV href; skips lookup.
timezonestringIANA timezone override.
session_idstringMulti-turn session id.
messagestringFollow-up answer in a multi-turn session.

Output fields

updatedeventbeforetimezone_note

Python

import os
import requests

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

Delete an Apple Calendar event.

5 credits. Per event deleted. 0 when cancelled.

Example request

Cancel my 3pm meeting tomorrow

Input fields

FieldTypeDescription
querystringNatural-language cancel/delete request.
event_idstringTarget CalDAV href; skips lookup.
timezonestringIANA timezone override.
session_idstringMulti-turn session id.
messagestringFollow-up answer in a multi-turn session.

Output fields

deletedcancelledevent

Python

import os
import requests

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

List Outlook Calendar events within a date range.

2 credits. Per call.

Example request

What meetings do I have tomorrow?

Input fields

FieldTypeDescription
querystringNatural-language time range, e.g. 'what meetings do I have tomorrow?'
timezonestringIANA timezone (e.g. America/New_York). Overrides the default.
startstringExplicit RFC3339 start; bypasses natural-language parsing.
endstringExplicit RFC3339 end; bypasses natural-language parsing.
max_resultsintegerMaximum number of events to return.

Output fields

rangecounteventsinterpretationtimezone_note

Python

import os
import requests

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

Create an Outlook Calendar event.

5 credits. Per event created. 0 when cancelled.

Example request

Schedule lunch with [email protected] tomorrow at noon

Input fields

FieldTypeDescription
querystringNatural-language event request.
titlestringExplicit event title.
startstringExplicit RFC3339/local start; bypasses NL time parsing.
endstringExplicit RFC3339/local end.
timezonestringIANA timezone override.
attendeesarray of stringAttendee emails.
locationstringEvent location.
descriptionstringEvent body/notes.
all_daybooleanWhether this is an all-day event.
session_idstringMulti-turn session id.
messagestringFollow-up answer in a multi-turn session.
review_idstringAn approved review (doc.review_decide) that this write uses; it is claimed before the write.

Output fields

createdeventtimezone_note

Python

import os
import requests

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

Update an Outlook Calendar event.

5 credits. Per event changed. 0 when cancelled.

Example request

Move my 3pm meeting tomorrow to 4pm

Input fields

FieldTypeDescription
querystringNatural-language change request.
event_idstringTarget event id (skips lookup).
timezonestringIANA timezone override.
session_idstringMulti-turn session id.
messagestringFollow-up answer in a multi-turn session.
review_idstringAn approved review (doc.review_decide) that this write uses; it is claimed before the write.

Output fields

updatedeventbeforetimezone_note

Python

import os
import requests

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

Delete an Outlook Calendar event.

5 credits. Per event deleted. 0 when cancelled.

Example request

Cancel my 3pm meeting tomorrow

Input fields

FieldTypeDescription
querystringNatural-language cancel/delete request.
event_idstringTarget event id (skips lookup).
send_cancellationbooleanIf you organize the event, notify attendees on cancel.
timezonestringIANA timezone override.
session_idstringMulti-turn session id.
messagestringFollow-up answer (selection / confirmation).

Output fields

deletedcancelledevent

Python

import os
import requests

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

Read the full contents of a Notion page.

2 credits. Per call.

Example request

Read my Notion page https://notion.so/Meeting-Notes-abc123

Input fields

FieldTypeDescription
queryRequiredstringNatural-language request with a Notion page ID or URL

Output fields

titlepage_idurllast_editedcontentuntrusted

Python

import os
import requests

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

Create a Notion page.

5 credits. Per page created. 0 when cancelled.

Example request

Create a Notion page titled 'Q3 Goals' in my workspace page abc123

Input fields

FieldTypeDescription
querystringNatural-language request to create a Notion page
review_idstringAn approved review (doc.review_decide) that this write uses; it is claimed before the write.
session_idstringMulti-turn session id: the answer to a question this tool asked.
messagestringThe answer to that question.

Output fields

page_idtitleurlanswer

Python

import os
import requests

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

Rename a Notion page or append content.

5 credits. Per page changed. 0 when cancelled.

Example request

Rename my Notion page abc123 to 'Final Draft'

Input fields

FieldTypeDescription
querystringNatural-language request to update a Notion page
review_idstringAn approved review (doc.review_decide) that this write uses; it is claimed before the write.
session_idstringMulti-turn session id: the answer to a question this tool asked.
messagestringThe answer to that question.

Output fields

page_idtitleurlanswer

Python

import os
import requests

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

Move a Notion page to the trash. It can be restored within 30 days.

5 credits. Per page deleted. 0 when cancelled.

Example request

Delete my Notion page https://notion.so/Old-Notes-abc123

Input fields

FieldTypeDescription
queryRequiredstringNatural-language request to delete a Notion page

Output fields

page_idtitleanswer

Python

import os
import requests

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

Loop IV: Validation10 tools

Find the problems in a market, check if people pay to solve one, and test demand with a page and cold e-mails.

problem.mine

Find complaints in a market and rank them by the number of people who mention them. The scan runs in the background and returns evidence links.

800 credits. Per scan. 0 when the scan finds no problem.

Input fields

FieldTypeDescription
action"scan" | "result"
domainstringThe topic area to mine, e.g. 'tools for indie developers'
querystringFree text from ReAct or MCP: naming a job id reads that scan, else it is the domain
sourcesarray of stringSome of github_issues, hacker_news, web_pages, app_pages, forums, reddit; default github_issues, hacker_news, web_pages, app_pages, forums, reddit.
window_daysinteger
min_mentionsintegerMinimum distinct authors per problem
job_idstring

Python

import os
import requests

response = requests.post(
    "https://toolsprimitives.uk/v1/tools/problem.mine/invoke",
    headers={"Authorization": f"Bearer {os.environ['HEELO_API_KEY']}"},
    json={"input": {}},
    timeout=120,
)
response.raise_for_status()
print(response.json())
market.size.assess

Look for signs that people already pay to solve a problem, including paid alternatives and prices, hiring, outsourced work, and matching companies. Draft a landing page and cold emails in the background.

800 credits. Per finished assessment. Its company search is charged too: icp.search 6 per company. The balance must cover 1,250 to start.

Example request

Assess the market for problem p_0123456789ab

Input fields

FieldTypeDescription
problem_idstringproblem.mine's id, p_ + 12 hex; leave it out for a problem given as text
problem_statementstringThe problem: problem.mine's statement or the user's own words
whostringWho has the problem
geographyarray of string | stringCountries or regions, e.g. ['United States'] (the default)
current_workaroundstring
evidencearray of object
assessment_idstringPoll an assessment started earlier
messagestringAn answer to the assessment's question
plan_anywaybooleanOnly when the user asks for the plan even if the verdict gives none; never on your own to get a result. The plan then says that the verdict did not recommend it

Python

import os
import requests

response = requests.post(
    "https://toolsprimitives.uk/v1/tools/market.size.assess/invoke",
    headers={"Authorization": f"Bearer {os.environ['HEELO_API_KEY']}"},
    json={"input": {}},
    timeout=120,
)
response.raise_for_status()
print(response.json())
scrape.structured.extract

Extract rows from a public page and its subsequent pages using fields you specify.

2 credits per page. Per page read. 0 when no row is found.

Example request

Extract the name, price and link of every book on https://books.toscrape.com/catalogue/page-1.html

Input fields

FieldTypeDescription
urlRequiredstringThe first page of the list: an absolute http(s) address on the public internet, at most 8192 characters, with no user name or password. Private, loopback and link-local addresses are refused, and so is a page that robots.txt disallows.
schemaRequiredobjectThe fields to read from each item, e.g. {"items": [{"name": "string", "price": "money", "url": "url"}]}
max_pagesintegerThe most pages to read; the next pages are found on the page itself (next links, page numbers).

Output fields

okdataerrorcosttrace_idstop_reasonstop_errornext_urltruncatedanswerrequestsrequests_truncated

Python

import os
import requests

response = requests.post(
    "https://toolsprimitives.uk/v1/tools/scrape.structured.extract/invoke",
    headers={"Authorization": f"Bearer {os.environ['HEELO_API_KEY']}"},
    json={"input": {
        "url": "...",
        "schema": {},
    }},
    timeout=120,
)
response.raise_for_status()
print(response.json())
validation.run.start

Start a validation run to find market problems, assess the top one, and draft a landing page and three cold emails.

Charged by the tools it calls. problem.mine 800, market.size.assess 800, icp.search 6 per company. About 1,900 in total. The balance must cover 2,050 to start.

Input fields

FieldTypeDescription
domainRequiredstringThe market to explore, e.g. 'tools for dentists'
geographyarray of string | stringWhere the target companies are; default ['United States'] (only US is e-mailed)
physical_addressstringYour postal address; every e-mail carries it
landing_site_idstringOne of your Loop I site ids
end_user_idstringYour end user, for saved details
scan_idstringThe job_id of a problem.mine scan of yours that is done: the run takes its problems and starts no scan of its own
problem_idstringWith scan_id: the problem of that scan to assess (an id from its problems). Leave it out, and Heelo picks the top-ranked problem whose audience is companies

Python

import os
import requests

response = requests.post(
    "https://toolsprimitives.uk/v1/tools/validation.run.start/invoke",
    headers={"Authorization": f"Bearer {os.environ['HEELO_API_KEY']}"},
    json={"input": {
        "domain": "...",
    }},
    timeout=120,
)
response.raise_for_status()
print(response.json())
validation.run.status

Advance a validation run by one step and show what comes next.

Charged by the tools it calls. The step it runs is charged at the prices of the tools in that step. The call itself is free.

Input fields

FieldTypeDescription
run_idstringLeave out to list your runs
answerstringYour user's answer to the assessment's question

Python

import os
import requests

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

Choose a different problem to assess.

Charged by the tools it calls. market.size.assess 800, icp.search 6 per company.

Input fields

FieldTypeDescription
run_idRequiredstring
problem_idRequiredstringA problem id from the run's problems

Python

import os
import requests

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

Record approval of the plan so Heelo can publish the page, create an email sequence, and find contacts.

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

Input fields

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

Python

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": "...",
        "version": "...",
        "approved_by": "...",
    }},
    timeout=120,
)
response.raise_for_status()
print(response.json())
validation.run.approve_contacts

Record approval of the contacts and the lawful basis for outreach so sending can begin.

Charged by the tools it calls. 5 per e-mail sent.

Input fields

FieldTypeDescription
run_idRequiredstring
versionRequiredstringdata.review.version from validation.run.status, unchanged
approved_byRequiredstringYour user's name: the person who said yes
lawful_basisRequiredstringYour user's choice, one of data.review.content.lawful_bases.allowed (express, implied, legitimate_interest); never choose it for them
sourceRequiredstringWhere the lawful basis comes from, your user's words

Python

import os
import requests

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

View or save sender details, including the postal address and landing page site.

0 credits. Free: setup.

Input fields

FieldTypeDescription
physical_addressstring
landing_site_idstring
from_emailstringIn tenant mode: which of your verified default senders (outbound.mail.sender_list) runs send from
end_user_idstring

Python

import os
import requests

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

Stop a validation run and cancel any company search in progress. Completed work is billed as usual.

0 credits. Free: a stop is free. Companies its search already found are charged 6 each.

Input fields

FieldTypeDescription
run_idRequiredstring
reasonstringWhy your user stops the run

Python

import os
import requests

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

Base tools27 tools

Search, read web pages, research reports, send e-mail, post on social platforms and do tasks in a browser.

web.search

Search the web and return titles, URLs, and snippets.

2 credits. Per search. 0 when there is no result.

Example request

Find recent benchmarks for open source coding agents

Input fields

FieldTypeDescription
queryRequiredstringNatural-language web search query

Output fields

resultstotal_foundsearch_querytime_filtersearch_providersearch_coverage

Python

import os
import requests

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

Fetch a web page and return its text and a short summary.

2 credits. Per page with text (or raw HTML when asked). 0 when the page has neither.

Example request

Fetch https://openai.com/blog/gpt-4

Input fields

FieldTypeDescription
querystringURL to fetch (optionally in a natural-language request)
urlstringThe URL to fetch (http or https); use this or query
include_rawbooleanAlso return the HTTP status, the final URL after redirects, each redirect hop (url, status), the last response's headers plus every hop's Set-Cookie (cookie values hidden), the names of the cookies every hop sets (redirects included), the <head> meta tags (canonical, og:*, twitter:*, description), each form (action, method, fields), a count of script tags, on* event attributes and javascript: URLs over the whole page, and the raw HTML (capped at 12,000 characters; html_truncated says when) — to check what a page declares and sends.

Output fields

urltitletextsummarytruncatedcontent_typefetched_atstatusfinal_urlresponse_headerscookiesredirectsmetaformsmarkuphtmlhtml_truncated

Python

import os
import requests

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

Search arXiv and return paper titles, authors, abstracts, and PDF links.

2 credits. Per search. 0 when there is no result.

Example request

Find recent papers on diffusion models

Input fields

FieldTypeDescription
queryRequiredstringNatural-language research query

Output fields

paperssummarytotal_found

Python

import os
import requests

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

Search GitHub repositories.

2 credits. Per search. 0 when there is no result.

Example request

Find popular Python machine learning frameworks

Input fields

FieldTypeDescription
queryRequiredstringNatural-language GitHub repository search query

Output fields

repositoriessummarytotal_found

Python

import os
import requests

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

List repositories in the connected GitHub account, including private repositories.

2 credits. Per call.

Example request

What are the repos in my GitHub account?

Input fields

FieldTypeDescription
queryRequiredstringNatural-language request to list the connected GitHub account's repos

Output fields

repositoriestotal_foundanswer

Python

import os
import requests

response = requests.post(
    "https://toolsprimitives.uk/v1/tools/github.list_my_repos/invoke",
    headers={"Authorization": f"Bearer {os.environ['HEELO_API_KEY']}"},
    json={"input": {
        "query": "...",
    }},
    timeout=120,
)
response.raise_for_status()
print(response.json())
reddit.search

Search Reddit posts.

2 credits. Per search. 0 when there is no result.

Example request

Search trending posts about AI agents on Reddit

Input fields

FieldTypeDescription
queryRequiredstringNatural-language search query for Reddit posts

Output fields

poststotal_foundsearch_querysearch_providersearch_coverage

Python

import os
import requests

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

Search Reddit posts and top comments in a browser.

2 credits. Per search. 0 when there is no result.

Example request

Search trending posts about AI agents on Reddit

Input fields

FieldTypeDescription
queryRequiredstringNatural-language search query for Reddit posts

Output fields

poststotal_foundsearch_query

Python

import os
import requests

response = requests.post(
    "https://toolsprimitives.uk/v1/tools/reddit.search_browser/invoke",
    headers={"Authorization": f"Bearer {os.environ['HEELO_API_KEY']}"},
    json={"input": {
        "query": "...",
    }},
    timeout=120,
)
response.raise_for_status()
print(response.json())
instagram.search

Search Instagram posts by topic or account using the connected account.

2 credits. Per search. 0 when there is no result.

Example request

Search Instagram for posts about AI

Input fields

FieldTypeDescription
queryRequiredstringNatural-language search query for Instagram posts

Output fields

poststotal_foundsearch_query

Python

import os
import requests

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

Search LinkedIn posts.

2 credits. Per search. 0 when there is no result.

Example request

Search trending posts about AI on LinkedIn

Input fields

FieldTypeDescription
queryRequiredstringNatural-language search query for LinkedIn posts

Output fields

poststotal_foundsearch_querysearch_providersearch_coverage

Python

import os
import requests

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

Search posts using the connected Bluesky account.

2 credits. Per search. 0 when there is no result.

Example request

Search trending posts about AI agents on Bluesky

Input fields

FieldTypeDescription
queryRequiredstringNatural-language search query for Bluesky posts

Output fields

poststotal_foundsearch_querysource

Python

import os
import requests

response = requests.post(
    "https://toolsprimitives.uk/v1/tools/bluesky.search/invoke",
    headers={"Authorization": f"Bearer {os.environ['HEELO_API_KEY']}"},
    json={"input": {
        "query": "...",
    }},
    timeout=120,
)
response.raise_for_status()
print(response.json())
twitter.search_browser

Search posts using the connected X account.

2 credits. Per search. 0 when there is no result.

Example request

Search trending posts about AI agents on Twitter

Input fields

FieldTypeDescription
queryRequiredstringNatural-language search query for Twitter/X posts

Output fields

tweetstotal_foundsearch_query

Python

import os
import requests

response = requests.post(
    "https://toolsprimitives.uk/v1/tools/twitter.search_browser/invoke",
    headers={"Authorization": f"Bearer {os.environ['HEELO_API_KEY']}"},
    json={"input": {
        "query": "...",
    }},
    timeout=120,
)
response.raise_for_status()
print(response.json())
stock.get_quote

Get a live price quote for a stock, ETF, or cryptocurrency.

2 credits. Per call.

Example request

What is AAPL trading at?

Input fields

FieldTypeDescription
queryRequiredstringNatural-language stock query

Output fields

tickerasset_typequoteanswer

Python

import os
import requests

response = requests.post(
    "https://toolsprimitives.uk/v1/tools/stock.get_quote/invoke",
    headers={"Authorization": f"Bearer {os.environ['HEELO_API_KEY']}"},
    json={"input": {
        "query": "...",
    }},
    timeout=120,
)
response.raise_for_status()
print(response.json())
trends.signals

Collect trending topics and keyword signals from social platforms and search.

2 credits. Per call. 0 when no signal is found.

Example request

Find today's trending keywords across Google, X, TikTok, Instagram, Threads, and Facebook

Input fields

FieldTypeDescription
querystringNatural-language request, e.g. 'find today's AI trend keywords across TikTok and X'.
topicstringOptional explicit topic or industry scope. Overrides the LLM plan when provided.
platformsarray of stringPlatforms to scan: google, x, tiktok, facebook, instagram, threads, reddit, linkedin.
regionstringTwo-letter Google region code, e.g. us, gb, ca.
time_windowstringRecency window: day, week, or month.
max_keywordsintegerMaximum ranked keywords to return.
max_results_per_platformintegerSearch results per platform.

Output fields

reportkeywordsplatform_signalsqueriesplatforms_scannedtime_windowregion

Python

import os
import requests

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

Search Hugging Face Daily Papers.

2 credits. Per search. 0 when there is no result.

Example request

Find daily papers about diffusion models

Input fields

FieldTypeDescription
querystringNatural-language paper search request.
keywordsarray of stringResearch keywords or topics to search in Daily Papers.
max_resultsintegerMaximum number of papers to return.
daysintegerLookback window in days.
sourcestringPaper source: huggingface for HF Daily Papers, or arxiv for arXiv API search.
summarizebooleanWhether to generate an LLM digest of the returned papers.

Output fields

sourcekeywordspapersdigestmessage

Python

import os
import requests

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

Summarize recent papers and send the digest by email or Slack.

25 credits. Per digest.

Example request

Send me daily papers about RAG to my Slack webhook

Input fields

FieldTypeDescription
querystringNatural-language digest request. Example: daily papers about RAG to my Slack webhook.
keywordsarray of stringResearch keywords or topics to search in Daily Papers.
destination_typestringWhere to deliver the digest: email or slack.
emailstringRecipient email address.
slack_webhook_urlstringSlack incoming webhook URL.
max_resultsintegerMaximum number of papers to include.
daysintegerLookback window in days.
sourcestringPaper source: huggingface for HF Daily Papers, or arxiv for arXiv API search.
session_idstring
messagestringFollow-up answer for missing fields.

Output fields

delivereddestination_typedestinationsourcekeywordspapersdigestmessage

Python

import os
import requests

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

Search the web, arXiv, GitHub, and Reddit to produce a research report with sources.

25 credits. Per report.

Example request

What are the best open source coding agents in 2024?

Input fields

FieldTypeDescription
queryRequiredstringBroad research question to investigate

Output fields

answerkey_findingssourcesgapsfollow_up_questionssubquestions

Python

import os
import requests

response = requests.post(
    "https://toolsprimitives.uk/v1/tools/research.report/invoke",
    headers={"Authorization": f"Bearer {os.environ['HEELO_API_KEY']}"},
    json={"input": {
        "query": "...",
    }},
    timeout=120,
)
response.raise_for_status()
print(response.json())
stock.analyze

Analyze a stock, ETF, or cryptocurrency and outline short-, medium-, and long-term scenarios. For research purposes.

25 credits. Per analysis.

Example request

Analyze NVDA and give me a 1-year outlook

Input fields

FieldTypeDescription
queryRequiredstringNatural-language stock request
modestringOne of: summary, predict, both
termsarray of stringAny of: short, medium, long

Output fields

tickerasset_typesummaryforecastsas_ofsourcesdisclaimeranswer

Python

import os
import requests

response = requests.post(
    "https://toolsprimitives.uk/v1/tools/stock.analyze/invoke",
    headers={"Authorization": f"Bearer {os.environ['HEELO_API_KEY']}"},
    json={"input": {
        "query": "...",
    }},
    timeout=120,
)
response.raise_for_status()
print(response.json())
email.send

Preview an email and send it from the connected mailbox after confirmation.

5 credits. Per e-mail sent. 0 when cancelled.

Example request

Send an email to [email protected] about the Heelo launch

Input fields

FieldTypeDescription
queryRequiredstringNatural-language request to send an email

Output fields

recipientssubjectanswer

Python

import os
import requests

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

Publish a post from the connected X account.

40 credits. Per post. 0 when cancelled.

Example request

Post a tweet: 'Excited to announce Heelo v2!'

Input fields

FieldTypeDescription
queryRequiredstringRequest to post a tweet: 'Post to X: <text>' (the text is posted unchanged)
verbatimbooleanWhen true, `query` is the whole tweet text. Either way the tweet is posted exactly as given: no model drafts or rewrites it, it is never cut to fit, and the confirm step accepts only 'post' or 'cancel'. A text longer than X allows is refused.

Output fields

tweet_idtweet_urltweet_textanswer

Python

import os
import requests

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

Publish a post from the connected LinkedIn account.

40 credits. Per post. 0 when cancelled.

Example request

Post to LinkedIn: 'Excited to announce our new product launch!'

Input fields

FieldTypeDescription
queryRequiredstringNatural-language request to post on LinkedIn
verbatimbooleanTrue: `query` is the whole post text, posted exactly as given (used by loop1.run and channel.expand)

Output fields

contentpost_urlanswer

Python

import os
import requests

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

Publish an image or video from the connected Instagram account.

40 credits. Per post. 0 when cancelled.

Example request

Post https://example.com/launch.jpg to Instagram with the caption 'Launch day!'

Input fields

FieldTypeDescription
queryRequiredstringNatural-language request to post to Instagram
verbatimbooleanTrue: `query` is the whole caption, posted exactly as given; `media` holds the files (used by loop1.run and channel.expand)
mediaarray of stringOptional list of photo/video URLs to post (a local path must be in the user's uploads folder)

Output fields

captionpost_urlpost_url_statusanswer

Python

import os
import requests

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

Publish a post from the connected Reddit account.

40 credits. Per post. 0 when cancelled.

Example request

Post to r/MachineLearning: 'Heelo now supports MCP for AI agents'

Input fields

FieldTypeDescription
queryRequiredstringNatural-language request to post on Reddit
subredditstringStructured: the subreddit, without r/ (used by loop1.run)
titlestringStructured: the title, posted exactly as given (used by loop1.run)
bodystringStructured: the body, posted exactly as given (used by loop1.run)

Output fields

post_urlsubreddittitleanswer

Python

import os
import requests

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

Publish a post from the connected Bluesky account.

40 credits. Per post. 0 when cancelled.

Example request

Post to Bluesky: 'Excited to share Heelo's new auto-research tools!'

Input fields

FieldTypeDescription
queryRequiredstringNatural-language request to post on Bluesky
mediaarray of stringOptional list of photo/video URLs to attach (a local path must be in the user's uploads folder)
verbatimbooleanTrue: `query` is the whole post text, posted exactly as given (used by loop1.run and channel.expand)

Output fields

contentanswerurlurilink_cardlink_card_imagelink_card_reason

Python

import os
import requests

response = requests.post(
    "https://toolsprimitives.uk/v1/tools/bluesky.post_browser/invoke",
    headers={"Authorization": f"Bearer {os.environ['HEELO_API_KEY']}"},
    json={"input": {
        "query": "...",
    }},
    timeout=120,
)
response.raise_for_status()
print(response.json())
web.fill_form

Fill out a web form, show a preview, and submit it after confirmation.

40 credits. Per form sent. 0 when cancelled.

Example request

Fill out the contact form at https://example.com/contact with my details

Input fields

FieldTypeDescription
urlstringThe page containing the form to fill
dataobjectField hints, e.g. {'email': '[email protected]'}
instructionsstringFree-text guidance for filling the form
filesobjectField hint -> file to upload, given as an https URL (preferred; fetched securely) or a sandbox-relative path. E.g. {'resume': 'https://.../cv.pdf'}
auto_submitbooleanSubmit without the review-and-confirm gate
querystringNL-router free text (a URL is extracted from it)
end_user_idstring
session_idstring
messagestring

Output fields

submittedstatussummarymessage

Python

import os
import requests

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

Search for and book flights on Kiwi.com.

40 credits. Per booking. 0 when cancelled.

Example request

Book a flight from NYC to London next Friday

Input fields

FieldTypeDescription
queryRequiredstringNatural-language flight booking request
historyarray of object
headlessboolean

Output fields

phaseanswerflightscollectedstatusquestion

Python

import os
import requests

response = requests.post(
    "https://toolsprimitives.uk/v1/tools/kiwi.book_flight/invoke",
    headers={"Authorization": f"Bearer {os.environ['HEELO_API_KEY']}"},
    json={"input": {
        "query": "...",
    }},
    timeout=120,
)
response.raise_for_status()
print(response.json())
booking_com.reserve_stay

Open a Booking.com reservation page and fill in the details up to the payment step.

40 credits. Per reservation. 0 when cancelled.

Example request

Fill this Booking.com reservation checkout: https://www.booking.com/...

Input fields

FieldTypeDescription
querystringNatural-language reservation request or field update.
reservation_urlstringBooking.com reservation/checkout URL after a stay and room are selected.
first_namestring
last_namestring
emailstring
phonestring
countrystring
cardholder_namestring
billing_addressstring
billing_citystring
billing_zipstring
headlessboolean
session_idstring
messagestringFollow-up answer for the current requested field.

Output fields

phaseanswerstatuscollectedquestion

Python

import os
import requests

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

Find, compare, and recommend products on Amazon. Place an order on the connected account after confirmation.

40 credits. Per order placed. Free when it only returns a product link, or when cancelled.

Example request

Find me a wireless mouse under $30 with good reviews

Input fields

FieldTypeDescription
queryRequiredstringNatural-language Amazon shopping request
historyarray of object
checkoutbooleanIf true, 'buy option N' drives an assisted checkout to a ready-to-confirm order; if false, returns the v1 product-page link.
headlessbooleanRun the checkout browser headless (server). Pass false for the dev-headed flow where the user can clear sign-in/verification by hand.

Output fields

phaseanswerproductscheckout_urlorder_numberquestion

Python

import os
import requests

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

Security

  • Your API key gives full access to your account and its credits. Keep it out of code that you share. If it leaks, revoke it in API keys.
  • Heelo keeps the tokens and app passwords of your connected accounts encrypted. With a browser sign-in, Heelo keeps only the session cookies, never your password. Heelo never asks for a password or cookies in the chat.

Read the privacy policy for the data that Heelo keeps.

Troubleshooting

command not found: codex
Install the Codex CLI with the Codex setup guide. Then open a new terminal and run codex --version.
HEELO_API_KEY is not set
Set the key in the terminal that starts Codex. If Codex uses a background server, start it with codex --no-daemon.
Heelo does not connect after you paste the URL
Use the plain server URL from Connect your AI app, not a Markdown link.
An HTTP error, for example 402 or 429
See errors and limits.
A long tool times out in your AI app
Ask your AI app to start the job and read the result later. See background jobs.