>unstuck engine

Help / 05 · Enrichment

> Enriching via API

The Enrichment API lets you trigger enrichment from outside the app — from n8n workflows, scripts, AI agents. Same waterfall, same credit accounting, programmatic invocation.

2 min readNever reviewed

TL;DR: Send a POST with email or LinkedIn URL or company domain. Get back enriched fields. Same engine as the in-app Enrich button, no UI required.

When to use the API

Three patterns:

  • CRM integration. Your CRM is the source of truth for net-new leads. As they're created, hit the Enrichment API to populate contact channels and persona fields before routing.
  • Sequencer prep. Before a sequence launches, validate each lead's email via the Enrichment API. Replace bouncing emails on the fly.
  • AI-agent workflows. Your LLM agent needs structured contact data on a person it just discovered. Call the Enrichment API, get the contact channels back as JSON.

API endpoint

POST /enrichment
Headers:
Authorization: Bearer <UNSTUCK_API_KEY>
Content-Type: application/json

Body:
{
"email": "person@company.com", // optional, identity hint
"linkedin_url": "https://...", // optional, identity hint
"company_domain": "company.com", // optional, identity hint
"channels": ["work_email", "phone"] // which channels to enrich
}

At least one identity hint (email, LinkedIn URL, company domain) must be provided. The waterfall runs for the specified channels.

Response:

{
"record_id": "lead_abc123",
"channels": {
"work_email": {
"value": "person@company.com",
"source": "Provider A",
"confidence": 0.94
},
"phone": {
"value": null,
"tried_providers": ["A", "B", "C"]
}
},
"credits_used": 1
}

This request sends identity hints only, so it enriches an external list: the delivered work email costs 1 credit, and the empty phone costs nothing.

Credit accounting via API

Identical to the in-app behavior. Each delivered field costs its price, whichever provider supplied it: on your leads a work email is included, a personal email costs 5 credits, a mobile number 10 and a social handle 2. For an external list (no lead is created), a work email costs 1 credit, a personal email 5, a mobile number 10 and a social handle 2. Failed attempts (waterfall exhausted, no contact found) cost zero. A request by lead id also makes each lead active (1 credit, unless it is already active this billing period).

The response includes credits_used so your downstream system can track burn. You can also poll /credits to check current balance before bulk-enriching via the API. For higher-volume needs (bulk backfills), use the bulk audience-enrich UI action, which respects internal batching.

Idempotency

The Enrichment API is idempotent on a record-channel basis. If you send the same enrich request for a record that's already been enriched for those channels, the response returns the cached values and charges no field again. A request by lead id still makes the lead active (1 credit, unless it is already active this billing period).

To force a re-enrichment via API, include force: true in the body. The previous values are cleared and the waterfall re-runs.