Create an asynchronous enrichment task
Start an enrichment task with settings and input rows. The API returns 202 Accepted with a task ID; the work runs in the background. Save the ID to check status and read results.
Choose a uniqueId that no active source or enrichment task in your account is using. An active duplicate returns 409 DuplicateApiTask. Once a task finishes or becomes overdue, reusing its ID starts new work and can charge credits again.
Your account has a target limit of 20 active tasks. Simultaneous requests can occasionally exceed it. For input and request sizes, see limits and errors.
If creation returns 503 ApiTaskDispatchFailed or the response is lost, check task history before retrying. Some work may already have run. See safe retries.
Required permissions: enrichments:tasks:create
Authorizations
AuthorizationstringheaderrequiredUse an account access token as Bearer <token>.
Body
application/json · required
enrichmentIdstringrequiredAn authorized enrichment ID from catalog discovery.
uniqueIdstringrequired"^[A-Za-z0-9_-]+$"minLength: 1maxLength: 128settingsobjectValidated against the requested enrichment's settingsSchema from catalog discovery.
Show child attributes
objectValidated against the requested enrichment's settingsSchema from catalog discovery.
Additional properties are supported.
inputsobject[]required1maxItems: 10000Show child attributes
inputIdstringrequiredYour ID for this input. Returned unchanged so you can match results to your records.
1maxLength: 128dataobjectrequiredShow child attributes
objectAdditional properties are supported.
maxCreditsstringStop starting new work after this credit threshold. Work already underway can exceed it. Omit for no task-specific limit; your account balance still applies. "0" stops after the first paid completion. Values round upward to hundredth-credit precision. Read credits.used for actual usage.
"^[0-9]+(\\.[0-9]+)?$"Response
New task stored durably and all queue batches accepted
202 · application/json
@idstringrequired@typestringrequired"EnrichmentTask"enrichmentIdstringrequireduniqueIdstringrequired"^[A-Za-z0-9_-]+$"minLength: 1maxLength: 128statusstringrequiredThe task is active while queued, running, or stop_asked. Read results after completed, failed, or stopped. Reaching maxCredits can finish with partial results. A stop ends in stopped unless the task also fails.
"queued", "running", "stop_asked", "completed", "failed", "stopped"errorobject | nullrequiredNull while the task is active or successfully completed. On failure, includes error details and a traceId when available. A stopped task can keep an error that occurred before it stopped.
Show child attributes
reasonstringrequiredStable reason for a failed task.
"dispatch_failed", "deadline_exceeded", "worker_failed", "enrichment_failed", "credits_error"codestringrequiredmessagestringrequiredtraceIdstring | nullrequiredcreatedAtstringrequired"date-time"startedAtstring | nullrequired"date-time"finishedAtstring | nullrequired"date-time"progressobjectrequiredShow child attributes
totalInputsintegerrequired1maximum: 10000finishedInputsintegerrequired0maximum: 10000outcomesobjectrequiredShow child attributes
successintegerrequired0noResultintegerrequired0errorintegerrequired0skippedintegerrequired0creditsobjectrequiredShow child attributes
usedstringrequired"^[0-9]+(\\.[0-9]+)?$"maxstring | nullrequiredNull when the caller omitted maxCredits (no limit).
"^[0-9]+(\\.[0-9]+)?$"linksobjectrequiredShow child attributes
objectAdditional properties are supported.
kindstringrequired"enrichment"