The enrichment run API
What it does
- Starts an Enrichment run for companies you name or for one property, the same run Fill specific companies starts from the ICP page.
- Needs a signed in member who can approve (an Admin or Non admin). It is the app's own API at your Askling address, used by the page, and there is no separate key.
- Writes nothing to HubSpot. Values still wait for a yes or an Auto mode rule.
The request
POST /api/enrichment/run with { "companyIds": ["123"], "property": "industry", "reason": "For your ICP: Industry" }. Send companyIds, or only property.
- The answer holds
runId,count(companies this run reads),queued(companies that wait) andtotal. - For a property it also holds
fill(its status).startsAfterappears when it waits for another run, andoverLimitwhen the fill is bigger than the daily limit. - Send the same request with
pastDailyLimit: trueafter the person's yes. - The status of every property is
GET /api/enrichment/targets.
How to use it
You need first
- Profile: Admin or Non admin. Yours shows beside your name in the sidebar footer.
- Enrichment applied: the field is on in Enrichment, Configuration, and the rubric (your rules for each field) is applied.
- Know this: the run reads at most your daily run limit. The rest wait.
Start a run for one property
- In your client, signed in to Askling, send
POST /api/enrichment/runwith{ "property": "industry", "reason": "For your ICP: Industry" }. - Read
runIdandfillin the answer. - If
overLimitis there, ask the person, then send the same body withpastDailyLimit: true.
Check it worked: the run shows in the runs list on Enrichment with the reason you sent.
What it does not do
- It does not write to HubSpot by itself.
- It does not go past this month's AI allowance, with or without
pastDailyLimit. - It does not start two runs at once. A second request for the same property answers that a run is in progress.
Why it works this way
The page and the API start the same run, so there is one pipeline, one set of rules and one audit trail.
Common questions
What do count and queued mean? count is the number of companies this run reads, queued the number that wait for the next run.
What is startsAfter? It appears when the fill waits for another run, for example Starts when Service model is done.
What is overLimit? The fill is bigger than the daily limit. It holds the plan, for example 200 today, 212 tomorrow at 06:00, and what going past the limit uses of the monthly AI allowance.
How do I read the status of every property? Call GET /api/enrichment/targets.
What does it answer when a run is going? That a run is in progress. Wait until it ends. See more on this message.
When something goes wrong
| Symptom | Cause | What to do |
|---|---|---|
A run is in progress | A run is queued or running | Wait, then send again. See more on this message |
There are no companies to fill | Nothing misses the property | Nothing to do. See more on this message |
Set up Enrichment first | No rubric is applied | Open Configuration and apply it. See more on this message |