---
updatedAt: 2026-06-25T05:56:23.000Z
agentTools:
  projectIndex: https://docs.delivr.ai/llms.txt
---

# Resolve identity

Resolve a hashed email (HEM), plain email address, or LinkedIn profile URL to stored identity data. Provide exactly one of `hem`, `email`, or `linkedin_url`.

**Hash type.** A `hem` is matched by algorithm: SHA-256 (64 hex characters) or MD5 (32 hex characters). The algorithm is inferred from the digest length; pass `hem_type` to set it explicitly (it is then validated against the hem). When `email` is provided instead, it is normalized and hashed for you. **LinkedIn.** `linkedin_url` accepts any pasted shape of a personal profile URL (`linkedin.com/in/<slug>`, with or without a scheme, `www.` or a locale subdomain, a trailing slash, `?trk=` parameters, or deeper path segments). It is reduced to the vanity slug and resolved to the same record an email lookup returns. Company, school, and legacy `/pub/` URLs are rejected with `400`. `hem_type` does not apply.

**Filtering and projection.** Optional `filter` and `select` params apply the same grammar as `/api/v3/events/{tier}`, evaluated against the single resolved record:

- `select` projects a subset of fields (comma-separated). Absent fields are omitted.
- `filter` (`<field>:<op>:<value>`, `,` = AND, `|` = OR within a group; ops `eq`, `ne`, `like`, `not_null`) decides whether the record is returned. If the record does not match, the endpoint responds `404` (no record). Example — business-email records only: `filter=current_business_email:ne:""|business_emails:ne:""|is_email_business:eq:"true"`. Quote literal values (`is_email_business:eq:"true"`).

**Billing.** Metered on egress as `contact_record` (the same meter as a contact query or audience download, not the events `resolution_*` tiers): a `200` that returns a record bills one contact record; a `404` (not found or filtered out) bills nothing. `select` projects fields but does not change the meter.

**Dry run.** Add `dry_run=true` to get the cost preview instead of the record: `records_to_charge` is `1` when a live call returns a record and `0` when it would answer `404`. `field_coverage` shows which person fields that record carries, after `select`, as counts. No record and no identifier is returned, nothing is billed, and no payment method is needed.

Response fields by status. 200: `dry_run`, `meter`, `records_to_charge`, `records_fidelity`, `scope.filters`, `note`, `estimated_cost` (`amount_cents`, `currency`, `basis`, `note`), `field_coverage`. 402: `error`, `message`, `help`, `limits` (`mtd_cents`, `budget_cents`, `project_id`). 429: `error`, `kind`, `message`, `meter`, `reason`, `resets_at`.


# OpenAPI definition

```json
{
  "openapi": "3.0.3",
  "info": {
    "title": "Events & Identity",
    "description": "Query the resolved on-domain events your pixel captures, and resolve identities for the people behind them. Once your pixel is installed (see **Pixel Tracking**), use these endpoints to pull page views, clicks, and other events with the resolved person and company attached, inspect the event schema, resolve hashed emails (HEM), and look up a contact.\n\n**Pick a tier, and you pick the price.** Events are read through four tier routes rather than one endpoint. Each route returns the columns at or below its enrichment tier and bills the matching meter, so the cost of a call is legible from its URL before you make it. Start at `web_event`, which carries no identity resolution and is the cheapest way to establish volume or scope a window, and move up only for the identity fields you actually need.\n\n**Authentication:** organization API key. Send `X-Api-Key` + `X-Api-Secret` on every request. (Legacy JWT bearer auth still works but is deprecated.)\n\n**Base URL:** `https://api.delivr.ai`\n",
    "version": "1.0",
    "contact": {
      "name": "Delivr.ai Support",
      "url": "https://delivr.ai"
    }
  },
  "servers": [
    {
      "url": "https://api.delivr.ai",
      "description": "Production"
    }
  ],
  "security": [
    {
      "ApiKeyAuth": [],
      "ApiSecretAuth": []
    }
  ],
  "tags": [
    {
      "name": "Identity",
      "description": "Resolve hashed emails (HEM) or plain emails to identity data."
    }
  ],
  "paths": {
    "/api/v1/lookup": {
      "get": {
        "tags": [
          "Identity"
        ],
        "summary": "Resolve identity",
        "operationId": "lookupHem",
        "description": "Resolve a hashed email (HEM), plain email address, or LinkedIn profile URL to stored identity data. Provide exactly one of `hem`, `email`, or `linkedin_url`.\n\n**Hash type.** A `hem` is matched by algorithm: SHA-256 (64 hex characters) or MD5 (32 hex characters). The algorithm is inferred from the digest length; pass `hem_type` to set it explicitly (it is then validated against the hem). When `email` is provided instead, it is normalized and hashed for you. **LinkedIn.** `linkedin_url` accepts any pasted shape of a personal profile URL (`linkedin.com/in/<slug>`, with or without a scheme, `www.` or a locale subdomain, a trailing slash, `?trk=` parameters, or deeper path segments). It is reduced to the vanity slug and resolved to the same record an email lookup returns. Company, school, and legacy `/pub/` URLs are rejected with `400`. `hem_type` does not apply.\n\n**Filtering and projection.** Optional `filter` and `select` params apply the same grammar as `/api/v3/events/{tier}`, evaluated against the single resolved record:\n\n- `select` projects a subset of fields (comma-separated). Absent fields are omitted.\n- `filter` (`<field>:<op>:<value>`, `,` = AND, `|` = OR within a group; ops `eq`, `ne`, `like`, `not_null`) decides whether the record is returned. If the record does not match, the endpoint responds `404` (no record). Example — business-email records only: `filter=current_business_email:ne:\"\"|business_emails:ne:\"\"|is_email_business:eq:\"true\"`. Quote literal values (`is_email_business:eq:\"true\"`).\n\n**Billing.** Metered on egress as `contact_record` (the same meter as a contact query or audience download, not the events `resolution_*` tiers): a `200` that returns a record bills one contact record; a `404` (not found or filtered out) bills nothing. `select` projects fields but does not change the meter.\n\n**Dry run.** Add `dry_run=true` to get the cost preview instead of the record: `records_to_charge` is `1` when a live call returns a record and `0` when it would answer `404`. `field_coverage` shows which person fields that record carries, after `select`, as counts. No record and no identifier is returned, nothing is billed, and no payment method is needed.\n\nResponse fields by status. 200: `dry_run`, `meter`, `records_to_charge`, `records_fidelity`, `scope.filters`, `note`, `estimated_cost` (`amount_cents`, `currency`, `basis`, `note`), `field_coverage`. 402: `error`, `message`, `help`, `limits` (`mtd_cents`, `budget_cents`, `project_id`). 429: `error`, `kind`, `message`, `meter`, `reason`, `resets_at`.\n",
        "parameters": [
          {
            "name": "hem",
            "in": "query",
            "description": "Hashed email (HEM) to look up. SHA-256 (64 hex characters) or MD5 (32 hex characters); the algorithm is inferred from the length, or set it explicitly with `hem_type`.\n",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "hem_type",
            "in": "query",
            "description": "Hash algorithm of `hem`: `sha256` or `md5`. Optional. When omitted, the algorithm is inferred from the digest length (64 hex = `sha256`, 32 hex = `md5`). When provided, it is validated against the `hem`; a mismatch (or an unsupported value) returns `400`.\n",
            "schema": {
              "type": "string",
              "enum": [
                "sha256",
                "md5"
              ]
            }
          },
          {
            "name": "email",
            "in": "query",
            "description": "Plain-text email (normalized and hashed automatically).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "linkedin_url",
            "in": "query",
            "description": "LinkedIn personal profile URL, any pasted shape of `linkedin.com/in/<slug>`. Reduced to the vanity slug and resolved to the person's identity record. Not a `/in/` profile URL returns `400`.\n",
            "schema": {
              "type": "string"
            },
            "example": "https://www.linkedin.com/in/jane-doe-87745243/"
          },
          {
            "name": "filter",
            "in": "query",
            "description": "Filter expression applied to the resolved record. `<field>:<op>:<value>`; `,` = AND, `|` = OR within a clause group; ops `eq`, `ne`, `like`, `not_null`. A non-matching record yields `404`. Quote literal values.\n",
            "schema": {
              "type": "string"
            },
            "example": "current_business_email:ne:\"\"|is_email_business:eq:\"true\""
          },
          {
            "name": "select",
            "in": "query",
            "description": "Comma-separated field list to project. Absent fields are omitted.",
            "schema": {
              "type": "string"
            },
            "example": "hem,first_name,company_name,current_business_email"
          },
          {
            "name": "dry_run",
            "in": "query",
            "description": "When `true`, returns the cost preview instead of the record. Nothing is billed.\n",
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Identity record found. With `dry_run=true`, the cost preview instead.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/LookupResponse"
                    },
                    {
                      "$ref": "#/components/schemas/LookupDryRunResponse"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Invalid input: no identifier or more than one of hem, email, linkedin_url; a malformed hem; a `hem_type` that does not match the hem; or a `linkedin_url` that is not a personal profile URL.\n"
          },
          "401": {
            "description": "Missing or invalid authentication."
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          },
          "404": {
            "description": "No record found for the given HEM."
          },
          "429": {
            "$ref": "#/components/responses/PlatformCapRefused"
          },
          "500": {
            "description": "Internal server error."
          },
          "501": {
            "description": "Lookup is not available for the requested hem type."
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "ApiKeyAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "X-Api-Key",
        "description": "Organization API key (`dlvr_` prefixed), created in the dashboard at `https://app.delivr.ai/{org_id}/settings/api-keys`. Must be paired with the `X-Api-Secret` header."
      },
      "ApiSecretAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "X-Api-Secret",
        "description": "Secret half of the organization API key, paired with `X-Api-Key`. Both headers are required on every request."
      }
    },
    "schemas": {
      "LookupResponse": {
        "type": "object",
        "description": "Identity record for the resolved HEM.",
        "additionalProperties": true
      },
      "PlatformCapRefusal": {
        "type": "object",
        "description": "The body of a platform cap refusal (HTTP 429).",
        "required": [
          "error",
          "kind",
          "message",
          "meter",
          "reason"
        ],
        "properties": {
          "error": {
            "type": "string",
            "enum": [
              "platform_cap_exceeded"
            ]
          },
          "kind": {
            "type": "string",
            "enum": [
              "limit_reached",
              "request_too_large",
              "shut_off"
            ],
            "description": "What retrying can achieve. `limit_reached` succeeds after `resets_at`; `request_too_large` cannot succeed at the current limit; `shut_off` needs support."
          },
          "message": {
            "type": "string",
            "description": "A sentence for your users naming the limit and what to do. It contains no usage figures."
          },
          "meter": {
            "type": "string",
            "description": "The usage meter whose limit refused the request, for example `web_event`."
          },
          "reason": {
            "type": "string",
            "enum": [
              "daily",
              "monthly",
              "off"
            ],
            "description": "The limit that refused the request, or `off` with `shut_off`. For `limit_reached` with both limits used up, the monthly one, which resets last."
          },
          "resets_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the limit resets, in UTC: the next midnight for `daily`, the 1st of next month for `monthly`. Present only for `limit_reached`."
          }
        }
      },
      "LookupDryRunResponse": {
        "type": "object",
        "description": "Cost preview returned when `dry_run` is `true`. No record and no identifier is returned, and nothing is billed.",
        "required": [
          "dry_run",
          "meter",
          "records_to_charge",
          "records_fidelity",
          "field_coverage"
        ],
        "properties": {
          "dry_run": {
            "type": "boolean",
            "description": "Always `true`."
          },
          "meter": {
            "type": "string",
            "description": "The meter a live call bills, `contact_record`."
          },
          "records_to_charge": {
            "type": "integer",
            "format": "int64",
            "description": "The exact number of records a live call returns and bills, after `filter`."
          },
          "records_fidelity": {
            "type": "string",
            "description": "Always `exact` for a lookup."
          },
          "scope": {
            "type": "object",
            "properties": {
              "filters": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "The `filter` the count was computed under."
              }
            }
          },
          "note": {
            "type": "string"
          },
          "estimated_cost": {
            "type": "object",
            "description": "The most this request would cost at standard rates. Omitted when no rate applies.",
            "properties": {
              "amount_cents": {
                "type": "integer",
                "format": "int64"
              },
              "currency": {
                "type": "string"
              },
              "basis": {
                "type": "string"
              },
              "note": {
                "type": "string"
              }
            }
          },
          "field_coverage": {
            "type": "object",
            "description": "For each person field, how many of the charged records carry it, after `select`. Counts only.",
            "additionalProperties": {
              "type": "integer",
              "format": "int64"
            }
          }
        }
      },
      "PaymentRefusal": {
        "type": "object",
        "description": "The body of a payment or budget refusal (HTTP 402).",
        "required": [
          "error",
          "message"
        ],
        "properties": {
          "error": {
            "type": "string",
            "enum": [
              "payment_method_required",
              "subscription_inactive",
              "terms_acceptance_required",
              "account_suspended_inactive",
              "budget_exceeded"
            ],
            "description": "Why the request was refused. Branch on this, not on `message`."
          },
          "message": {
            "type": "string",
            "description": "A sentence for your users saying what to do."
          },
          "help": {
            "type": "string",
            "description": "The next step, sent with `terms_acceptance_required` and `account_suspended_inactive`."
          },
          "limits": {
            "type": "object",
            "description": "Spend and budget for `budget_exceeded`, in cents. See [Project budgets](https://docs.delivr.ai/docs/project-budgets).",
            "properties": {
              "mtd_cents": {
                "type": "integer"
              },
              "budget_cents": {
                "type": "integer"
              },
              "project_id": {
                "type": "string"
              }
            }
          }
        }
      }
    },
    "responses": {
      "PaymentRequired": {
        "description": "Payment required: your organization cannot be billed for this request, so it was refused and nothing was billed. `error` says why:\n\n- `payment_method_required`: no card or bank account is on file. An organization owner or admin adds one in the dashboard under **Billing**, then retry.\n- `subscription_inactive`: the subscription was canceled. Reactivate the plan in **Billing**.\n- `terms_acceptance_required`: no agreement is on file. An owner or admin accepts the terms in the dashboard.\n- `account_suspended_inactive`: the account was suspended for inactivity. An owner or admin accepts the current terms in the dashboard.\n- `budget_exceeded`: the monthly budget set for your organization or project is reached. See [Project budgets](https://docs.delivr.ai/docs/project-budgets).\n\nRetrying does not help until the cause is fixed. Test keys are never refused for payment.\n",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/PaymentRefusal"
            },
            "example": {
              "error": "payment_method_required",
              "message": "A payment method is required to use this endpoint."
            }
          }
        }
      },
      "PlatformCapRefused": {
        "description": "Too many requests: the platform cap refused the request, or it was rate limited.\n\nA platform cap refusal has `error` set to `platform_cap_exceeded`. Accounts have a daily and a monthly usage limit per meter, and `kind` says what retrying can achieve:\n\n- `limit_reached`: this request would take usage past the limit. The same request succeeds once the limit resets at `resets_at`, which `Retry-After` gives in seconds.\n- `request_too_large`: this request alone is larger than the limit, so retrying cannot succeed. Make it smaller (a lower `limit`, or fewer `emails`), or contact support to raise the limit.\n- `shut_off`: usage is paused for this account. Contact support.\n\n`message` says the same in a sentence you can show your users.\n\nAny other 429 is rate limiting: wait for `Retry-After` when it is present, then retry.\n",
        "headers": {
          "Retry-After": {
            "description": "Whole seconds to wait. Always sent on a rate limit 429. On a platform cap refusal it is the seconds until `resets_at`, rounded up, and is sent with `limit_reached` only.",
            "schema": {
              "type": "integer"
            }
          }
        },
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/PlatformCapRefusal"
            },
            "example": {
              "error": "platform_cap_exceeded",
              "kind": "limit_reached",
              "message": "You have reached your daily usage limit for Events / Journey. It resets at midnight UTC. Contact support to raise it.",
              "meter": "web_event",
              "reason": "daily",
              "resets_at": "2026-10-05T00:00:00Z"
            }
          }
        }
      }
    }
  }
}
```