# Email → Best LinkedIn Source: https://retention.mintlify.app/api-reference/hem/hem-to-best-linkedin POST /api/v1/hem_to_best_linkedin Return the most reliable and active LinkedIn profile tied to an email. Accepts a hashed or plaintext email. Provide either a pre-computed `md5` (32-character hex digest of the lowercased, trimmed email) or a plaintext `email`. Returns the full URL of the most reliable and active LinkedIn profile for the hashed email. **Billing:** 1 credit per successful match (HTTP 200). Misses (404) and request errors (4xx) are not billed. # Email → Business Profile Source: https://retention.mintlify.app/api-reference/hem/hem-to-business-profile POST /api/v1/hem_to_business_profile Enrich an email into a full work profile: name, title, company, seniority. Accepts a hashed or plaintext email. Provide either a pre-computed `md5` (32-character hex digest of the lowercased, trimmed email) or a plaintext `email`. Email fields are MD5-hashed unless you send a plaintext `email`. **Billing:** 2 credits per successful match (HTTP 200). Misses (404) and request errors (4xx) are not billed. # Email → LinkedIn Source: https://retention.mintlify.app/api-reference/hem/hem-to-linkedin POST /api/v1/hem_to_linkedin Find the LinkedIn profile that belongs to an email. Accepts a hashed or plaintext email. Provide either a pre-computed `md5` (32-character hex digest of the lowercased, trimmed email) or a plaintext `email`. Returns the LinkedIn public profile slug matched to the hashed email. **Billing:** 1 credit per successful match (HTTP 200). Misses (404) and request errors (4xx) are not billed. # Personal Identity Source: https://retention.mintlify.app/api-reference/identity/personal-identity-b2c POST /api/v1/identity/consumer B2C consumer identity: personal hashed emails, device IDs, location, and last-seen activity. Accepts hashed or plaintext email and IP address inputs. Single mode: provide a pre-computed `md5`, a plaintext `email`, or an IPv4 or IPv6 `ip_address` with an optional `user_agent`. USA IPs only! Choose exactly one identifier family. The response carries the consumer's personal hashed emails (`hems`), mobile advertising IDs (`maids`), `personal_emails`, coarse `location`, and `last_seen_at` activity. `personal_emails` are MD5-hashed unless you send a plaintext `email`. A match returns HTTP 200 `{ result: {...} }`; a miss returns HTTP 404 `{ result: {} }`. Batch mode: send an `md5s` or `ips` array (max 1,000). MD5s are lowercased and de-duplicated; equivalent IP spellings are de-duplicated while preserving the first input. One malformed MD5 fails the whole request with HTTP 400 before any lookups run. Otherwise the response is always HTTP 200 with `results`, `match_count`, `credits_charged`, and `credits_exhausted`. Every matched result returns `md5`; IP batch results also echo `ip_address`. Inputs with no data are omitted; email fields are always MD5-hashed in batch results. Processing stops once the account's remaining credits are exhausted (`credits_exhausted: true`). **Billing:** the full configured per-record cost when both the profile and MAID data match; 1 credit when only one of the two sources resolves (partial data); 0 credits for a miss (single-mode 404, or omitted from batch `results`). `last_seen_at` and `location` are supplemental and never affect billing. IP-sourced matches add 1 credit (full 4, partial 2 at the default price). Request errors (4xx) are not billed. # Full Business Enrichment Source: https://retention.mintlify.app/api-reference/identity/professional-identity-b2b POST /api/v1/identity/business One call returns everything for a contact: work profile, device IDs, hashed emails. Send a hashed or plaintext email, an IP address, or a batch of up to 1,000 values. Single mode: provide a pre-computed `md5`, a plaintext `email`, or an IPv4 or IPv6 `ip_address` with an optional `user_agent`. USA IPs only! Choose exactly one identifier family. The response combines the business profile (same field names as `/hem_to_business_profile`) with the contact's mobile advertising IDs. `work_email_confirmed` is always plaintext, with `work_email_confirmed_md5` and `work_email_confirmed_sha256` alongside so callers have all three forms; no personal email data is returned. The `maid` key is always present (`null` when no MAID data is found), and when the profile lookup misses but MAID data exists the full profile shape is still returned with `null` values. A match returns HTTP 200 `{ result: {...} }`; a miss returns HTTP 404 `{ result: {} }`. Batch mode: send an `md5s` or `ips` array (max 1,000). MD5s are lowercased and de-duplicated; equivalent IP spellings are de-duplicated while preserving the first input. One malformed MD5 fails the whole request with HTTP 400 before any lookups run. Otherwise the response is always HTTP 200 with `results`, `match_count`, `credits_charged`, and `credits_exhausted`. Every matched result returns `md5`; IP batch results also echo `ip_address`. Inputs with no data are omitted. Processing stops once the account's remaining credits are exhausted (`credits_exhausted: true`). **Billing:** the full configured per-record cost when both the business profile and MAID data match; 1 credit when only one of the two sources resolves (partial data); 0 credits for a miss (single-mode 404, or omitted from batch `results`). IP-sourced matches add 1 credit (full 4, partial 2 at the default price). Request errors (4xx) are not billed. # Universal Identity Source: https://retention.mintlify.app/api-reference/identity/universal POST /api/v1/identity/person Every identity signal on a person in one call: work and personal emails, device IDs, and hashed emails. Accepts hashed or plaintext email and IP address inputs. Single mode: provide a pre-computed `md5`, a plaintext `email`, or an IPv4 or IPv6 `ip_address` with an optional `user_agent`. USA IPs only! Choose exactly one identifier family. The response carries every identity signal on the person: `hems` (MD5 + SHA-256 for each known personal and business email), `maids` (mobile advertising IDs), `personal_emails`, and `business_emails`. Email fields are MD5-hashed unless you send a plaintext `email`. A match returns HTTP 200 `{ result: {...} }`; a miss returns HTTP 404 `{ result: {} }`. Batch mode: send an `md5s` or `ips` array (max 1,000). MD5s are lowercased and de-duplicated; equivalent IP spellings are de-duplicated while preserving the first input. One malformed MD5 fails the whole request with HTTP 400 before any lookups run. Otherwise the response is always HTTP 200 with `results`, `match_count`, `credits_charged`, and `credits_exhausted`. Every matched result returns `md5`; IP batch results also echo `ip_address`. Inputs with no data are omitted; email fields are always MD5-hashed in batch results. Processing stops once the account's remaining credits are exhausted (`credits_exhausted: true`). **Billing:** the full configured per-record cost when both the profile and MAID data match; 1 credit when only one of the two sources resolves (partial data); 0 credits for a miss (single-mode 404, or omitted from batch `results`). IP-sourced matches add 1 credit (full 4, partial 2 at the default price). Request errors (4xx) are not billed. # IP → Business Profile Source: https://retention.mintlify.app/api-reference/ip/ip-to-business-profile POST /api/v1/ip_to_business_profile Resolve an IP (and browser details) straight to one work profile: name, title, company, and seniority. You're only charged when a profile is returned. Provide an IPv4 or IPv6 `ip_address`, optionally with the visitor's `user_agent`. The first available work profile is returned using our proprietary identity resolution technology. Email fields are MD5-hashed by default. **Billing:** 3 credits per successful match (HTTP 200). Misses (404) and request errors (4xx) are not billed. # IP → Company Source: https://retention.mintlify.app/api-reference/ip/ip-to-company POST /api/v1/ip_to_company Identify the company or organization behind an IP address. Provide an IPv4 or IPv6 `ip_address`. Returns the candidate company domains with their match percentages. When no traffic-share breakdown is available, one domain is returned with `percentage` `"1.0"`. **Billing:** 1 credit per successful lookup (HTTP 200), regardless of how many companies are returned. Misses (404) and request errors (4xx) are not billed. # IP → Hashed Email Source: https://retention.mintlify.app/api-reference/ip/ip-to-hem POST /api/v1/ip_to_hem Resolve an IP (and browser details) into the visitor's hashed email. Provide an IPv4 or IPv6 `ip_address` (optionally with the visitor's `user_agent`). We use our proprietary identity resolution technology to derive and return up to 3 matches ordered by descending confidence score; set `include_sha256` to also return each match's SHA-256 hashed email. **Billing:** 1 credit per successful lookup (HTTP 200), regardless of how many matches are returned. Misses (404) and request errors (4xx) are not billed. # LinkedIn → Business Email Source: https://retention.mintlify.app/api-reference/linkedin/linkedin-to-business-email POST /api/v1/linkedin_to_business_email Get the verified work email address for a LinkedIn profile. Send either `linkedin_slug` or `linkedin_url`. `linkedin_slug` accepts a bare slug (e.g. `alice-123`); `linkedin_url` accepts a full profile URL (e.g. `https://www.linkedin.com/in/alice-123`). Only a confirmed work email is returned, and only one. On a miss the response still includes the `result` envelope with `email` set to `null`. **Billing:** 4 credits per successful match (HTTP 200). Misses (404) and request errors (4xx) are not billed. # LinkedIn → Business Profile Source: https://retention.mintlify.app/api-reference/linkedin/linkedin-to-business-profile POST /api/v1/linkedin_to_business_profile Enrich a profile into a full work profile: name, title, company, size. Provide either `linkedin_slug` or `linkedin_url`; at least one is required, and either field accepts a bare slug (e.g. `alice-123`) or a full profile URL (e.g. `https://www.linkedin.com/in/alice-123`). Set `include_mobile_phone` to also look up the contact's mobile phone number. **Billing:** 4 credits per successful match (HTTP 200). Misses (404) and request errors (4xx) are not billed. # LinkedIn → Hashed Emails Source: https://retention.mintlify.app/api-reference/linkedin/linkedin-to-hashed-emails POST /api/v1/linkedin_to_hashed_emails Get hashed email variants for a profile, ready for ad-platform matching. `linkedin_slug` accepts either a bare slug (e.g. `alice-123`) or a full profile URL (e.g. `https://www.linkedin.com/in/alice-123`). On a match, the response contains the hashed email variants known for the profile (e.g. `md5_1`, `sha256_1`, `md5_2`, …); ready for ad-platform audience matching. **Billing:** 1 credit per successful match (HTTP 200). Misses (404) and request errors (4xx) are not billed. # LinkedIn → Mobile Phone Source: https://retention.mintlify.app/api-reference/linkedin/linkedin-to-mobile-phone POST /api/v1/linkedin_to_mobile_phone Find the mobile phone number associated with a profile. `linkedin_slug` accepts either a bare slug (e.g. `alice-123`) or a full profile URL (e.g. `https://www.linkedin.com/in/alice-123`). On a miss the response still includes the `result` envelope with `mobile_phone` set to `null`. **Billing:** 3 credits per successful match (HTTP 200). Misses (404) and request errors (4xx) are not billed. # Work Email → Personal Email Source: https://retention.mintlify.app/api-reference/other/business-email-to-personal-hem POST /api/v1/business_email_to_personal_hem Match a work email to a hashed personal email. Provide a valid plaintext work `email`. On a match, the response contains the person's personal email addresses as SHA-256 hashes; on a miss the `personal_email_sha256s` array is empty. **Billing:** 1 credit per successful match (HTTP 200). Misses (404) and request errors (4xx) are not billed. # Credits Source: https://retention.mintlify.app/api-reference/other/credits GET /api/v1/credits Returns the account's remaining API credit balance. Authenticates with the API key only; no per-service enablement or minimum credit balance is required. When the optional `Api-Origin-Key` header identifies a partner account, the endpoint instead returns a partner usage report aggregating API call counts across every account that shares the partner's custom origin, over the `start_date`/`end_date` range (defaults: beginning of the current month through today). An unknown origin key returns 401 `invalid_origin_key`; a partner account without a configured custom origin returns 400 `no_custom_origin_configured`. **Billing:** never billed; this endpoint does not consume credits. # Email Activity Check Source: https://retention.mintlify.app/api-reference/other/email-to-activity POST /api/v1/email_to_activity See when an email was last active online. Send one email address per request, or an array of up to 1,000 addresses in a single request. Batch endpoint: provide `emails` (an array of up to 1,000 plaintext addresses) or a single `email`. Duplicate addresses count once (matching is case-insensitive and ignores surrounding whitespace). The response lists only the addresses with known activity, each with its `last_active` date; addresses with no match are omitted from `results`. **Billing:** 1 credit per matched email. Misses are free. Matches are billed in input order until the account's credit balance runs out; any further matches are dropped from the response and `credits_exhausted` is returned as `true`. `match_count` and `credits_charged` both reflect the number of matches actually returned and billed. # Retention.com Data APIs Source: https://retention.mintlify.app/index Powerful APIs to supercharge your existing stack, that you can rely on and scale with. ## Get Started! > [card] [API reference](/reference/introduction) > > Every endpoint, grouped by what you start with — email/HEM, IP, or LinkedIn. ## The APIs > [card] [Core Identity](/reference/introduction) > > Pass in a HEM; enrich it with three shapes of person-level data: Universal, Personal (B2C), Professional (B2B). > [card] [HEM → Business Profile](/api-reference/hem/hem-to-business-profile) > > Hand us a HEM, get a B2B profile back. Optional mobile-phone second hop. > [card] [Identity Resolution](/api-reference/ip/ip-to-hem) > > Resolve an IP/UA into a HEM, mobile ad IDs, or company data. > [card] [LinkedIn lookups](/api-reference/linkedin/linkedin-to-business-profile) > > Resolve a LinkedIn profile into a business profile, hashed emails, or a mobile phone. > [!NOTE] > > Most endpoints accept a **HEM** — a 32-character hashed email (MD5) — or a plaintext email. ## Authentication Send your API key in a request header on every call. Any of these work: ```bash theme={null} Api-Key: YOUR_API_KEY # or X-Api-Key: YOUR_API_KEY # or Authorization: Bearer YOUR_API_KEY ``` To find your key, log in to the [dashboard](https://ui.api.rb2b.com) and click **API key** at the top of the page. Keep it secret: it authenticates every request and draws down your account's credits. # Enrichment APIs Source: https://retention.mintlify.app/reference/introduction The full set of identity-resolution and enrichment endpoints. These endpoints turn an identifier - an email or HEM (hashed email), a LinkedIn slug - and turn them into enriched profiles and attributes to make them more actionable and valuable. For every identifier you put in; get a rich set of attributes back ## Core Identity — start with Identity The three **Identity** endpoints are Core Identity: one input, three shapes of person data behind it. Each takes the same input — an MD5 (or plaintext email) — and differs only by **what slice of data it returns**. > [card] [Universal](/api-reference/identity/universal) > > `POST /api/v1/identity/person` — everything we have, in one call. > [card] [Personal Identity](/api-reference/identity/personal-identity-b2c) > > `POST /api/v1/identity/consumer` — consumer attributes, location, recency. > [card] [Professional Identity](/api-reference/identity/professional-identity-b2b) > > `POST /api/v1/identity/business` — firmographic and professional context, plus MAIDs. > [!NOTE] > > The Identity endpoints are **not** one API orchestrating calls to the others. Each reads the same underlying tables the standalone lookups read — it reproduces those fields, it doesn't proxy their calls. The route you call decides what comes back; the hash you send never changes. ## Authentication Every endpoint requires an account API key, sent in a request header. Any of these are accepted: ```bash theme={null} Api-Key: YOUR_API_KEY # or X-Api-Key: YOUR_API_KEY # or Authorization: Bearer YOUR_API_KEY ``` A missing or malformed key returns `401`. A key whose plan doesn't include the service returns `403`. Check your balance any time with [Credits](/api-reference/other/credits). ## Shared behavior * **Input:** Most endpoints take a HEM (`md5`) — a 32-character hashed email — or a plaintext `email`, which is normalized and hashed for you. IP and LinkedIn endpoints take an `ip_address` or `linkedin_slug`/`linkedin_url` instead. * **Hit:** `200` with the data, wrapped in `result` (single) or `results`. * **Miss:** `404` (HEM/identity endpoints) or `200` with an empty payload (LinkedIn/IP endpoints), and zero credits charged. * **Batch:** Identity endpoints and `email_to_activity` accept arrays (max 1,000) and return `match_count`, `credits_charged`, and `credits_exhausted` alongside `results`. Order is preserved after de-dup; misses are omitted. * **Anonymization:** When you look up by HEM, email fields come back MD5-hashed by default. Pass `skip_anonymize=true` (where supported) for plaintext. * **Validation:** Every `4xx` is a no-op — no lookups, no charge.