Skip to main content
POST
Execute Enrichment by External ID

Overview

Executes one or more marketplace enrichment integrations on a specific entity using your own external identifier. This endpoint first looks up the entity by your externalId, then executes the enrichments. It is identical to the by ID endpoint but more convenient when you use your own entity identifiers. Note: enrichmentGroupRefs applies only to this marketplace execution API (and POST .../marketplace/enrichment by entity UUID). Automatic or manual entity creation still uses explicit enrichment codes only, not group slugs.

Endpoint

Authentication

Requires a valid API key in the Authorization header:

Request Body

string
required
Your external identifier for the entity (e.g., your customer ID, user ID, etc.)
array<string>
Explicit list of enrichment integration codes to run (same semantics as before). See Integration Provider Codes.Send integrationCodes only, enrichmentGroupRefs only, or both. If both are sent, the API expands groups to codes, appends integrationCodes, and deduplicates while keeping first-seen order. At least one of integrationCodes or enrichmentGroupRefs must be non-empty.
array<string>
References to enrichment groups your organization configured in the Marketplace UI. Each value is a group slug or group UUID. The server replaces each ref with that group’s stored integration codes (in order), then merges any integrationCodes. Each code is still subject to the same orchestrator rules as a direct request (catalog type, org enablement, blocks, etc.).
object
Optional additional parameters to pass to the integrations

Response

boolean
Whether the batch enrichment operation completed successfully
string
The resolved internal UUID of the enriched entity
string
The external ID that was used to look up the entity
array
Array of enrichment results, one for each integration codeEach result contains:
  • success (boolean) - Whether this specific enrichment succeeded
  • enrichmentId (string) - UUID of the enrichment execution record
  • integrationCode (string) - The integration code that was executed
  • integrationName (string) - Human-readable name of the integration
  • result (object) - Enrichment data (only if successful)
    • fieldsEnriched (array) - List of entity fields that were enriched
    • dataQuality (object) - Quality metrics
      • completeness (number) - Data completeness score (0-1)
      • confidence (number) - Confidence score (0-1)
    • summary (string) - Human-readable summary
    • enrichmentData (object) - The actual enrichment data
  • executionTime (number) - Execution time in milliseconds
  • costCents (number) - Cost of this enrichment in cents
  • error (object) - Error details (only if failed)
    • code (string) - Error code
    • message (string) - Error message
number
Total cost of all enrichments in cents
number
Total execution time for all enrichments in milliseconds

Examples

Execute Single Enrichment

Execute Multiple Enrichments (Batch)

Response Example - Successful Enrichment

Response Example - Batch with Mixed Results

Error Responses

404 Entity Not Found

401 Unauthorized

400 Bad Request

Use Cases

KYC Data Enrichment

Enrich a person entity with official government data:

Company Due Diligence

Gather comprehensive company data from multiple sources:

Important Notes

  • Batch Execution: Multiple enrichments are executed in parallel for better performance
  • Cost Tracking: Each enrichment’s cost is tracked individually and summed in totalCostCents
  • Partial Success: The batch can succeed even if some individual enrichments fail
  • Automatic Audit: All enrichments are automatically logged in the audit trail
  • Rules Trigger: Successful enrichments trigger the rules engine with enrichment_completed event
  • Idempotency: Running the same enrichment multiple times may return cached results unless forceRefresh is used