Enrich a contact (spends credits)
enrich_contactReturns the full record for one known person, matched by email or by name with a company name, number or domain. It spends 1 credit only on a confident match, and 0 on no match or when you already hold the record under licence, so a repeat never charges twice. Like create_order it needs the user's confirmation (a form, or the confirmation_token from an approval_url) or an agent key whose allowed_tools include enrich_contact within its per-order cap and monthly budget; otherwise nothing is charged and it returns confirmation-required or agent-budget-exceeded. It needs enrich:write; use it for a single named person, and the result gives credits_charged and the balance left. Lawful basis is UK GDPR Article 6(1)(f) legitimate interests; email audiences include corporate subscribers only by default (PECR), so sole traders and ordinary partnerships are left out unless the toggle is changed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| No | |||
| domain | No | ||
| last_name | No | ||
| first_name | No | ||
| company_name | No | ||
| company_number | No | Eight characters in upper case, such as 05046417 or SC123456. | |
| confirmation_token | No | The token the approval page on mydatahub.emailmovers.com returns once the signed-in person approves. It is bound to that person (their sub), this spend (the machine quote_id, or the enrichment or push) and an expiry no later than the quote's, and it is redeemable once. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| record | Yes | ||
| matched | Yes | ||
| cost_gbp | Yes | Pounds sterling excluding VAT, to two decimal places. | |
| credits_charged | Yes | 1 on a confident match, otherwise 0. | |
| already_licensed | Yes | True when you already hold the record, so it costs 0. | |
| match_confidence | Yes | ||
| credits_remaining | Yes | Credits, to one decimal place: whole at 1 credit a record, fractional only where a rule is (0.1 company-only, 1.8 outright, both proposed). | |
| licence_expires_at | Yes |