Create an asynchronous source task
Start a source task from settings. You do not need input rows or a destination collection. The API returns 202 Accepted with a task ID; save it to check status and read results.
Each active source or enrichment task in your account needs a different uniqueId. An active duplicate returns 409. Once a task finishes or becomes overdue, the same ID can start new work and consume credits again. Check history before retrying a lost creation response.
Set maxCredits to stop starting new work after a credit threshold. Work already underway can exceed it. If you omit the field, your account balance still applies. See source limits for request and output sizes.
Required permissions: enrichments:tasks:create
Authorizations
AuthorizationstringheaderrequiredUse an account access token as Bearer <token>.
Body
application/json · required
uniqueIdstringrequired"^[A-Za-z0-9_-]+$"minLength: 1maxLength: 128settingsobjectValidated against the requested source's settingsSchema from catalog discovery.
Show child attributes
objectValidated against the requested source's settingsSchema from catalog discovery.
Additional 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]+)?$"sourceIdstringrequiredAn authorized source ID from catalog discovery.
Response
New task stored durably and all queue batches accepted
202 · application/json
@idstringrequired@typestringrequired"SourceTask"uniqueIdstringrequired"^[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"createdAtstringrequired"date-time"startedAtstring | nullrequired"date-time"finishedAtstring | nullrequired"date-time"progressobjectrequiredNumber of generated objects recorded so far.
Show child attributes
resultsintegerrequired0creditsobjectrequiredShow 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"source"sourceIdstringrequirederrorobject | 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 | nullrequired