Skip to main content
Jobs represent running hosted extractor processes that move data from sources to destinations. Each job links a source to a destination and applies a format to transform the data. You can create, monitor, update, and delete jobs. The API also provides access to job logs and metrics for monitoring extraction health.

What jobs are

A job connects a source (sourceId) to a destination (destinationId) and applies a format that controls how incoming data is converted before writing to CDF. The format is required and can be a built-in type (cognite, rockwell, value, sparkplug) or custom, which references a mapping by mappingId.
A mapping is required only when you use the custom format.
MQTT, Kafka, Event Hub, and MQTT broker jobs run continuously. REST jobs run on a fixed polling interval configured on the job.

Job lifecycle

  • Create: Specify a source, destination, format, and any source-specific config (such as a topic filter for MQTT or a path and interval for REST).
  • Monitor: Check the job’s status field, which reflects its current observed state (for example, running, connected, connection_error, transform_error). See Hosted extractors overview — Jobs for the full list of states and what each one means.
  • Update: Modify the source, destination, format, or source-specific config. Set targetStatus to running or paused to start or pause the job. Set dlqEnabled to true or false to turn the dead letter queue on or off. The destination credentials need raw:write to turn the queue on, or to move a job that already has the queue on. If that check fails for any job, no jobs in the request are updated. The create request does not include dlqEnabled.
  • Delete: Remove the job when extraction is no longer required.
Use job logs and metrics to detect failures, diagnose connectivity issues, and ensure data is flowing correctly.

Monitoring extraction

The API provides endpoints to retrieve job logs and metrics. Use these to identify errors and troubleshoot problems with sources or destinations.

Dead letter queue

The dead letter queue stores messages a job fails to transform. CDF stores them in CDF RAW. It is off until you set dlqEnabled on the job update. See Dead letter queue. GET /api/v1/projects/{project}/hostedextractors/jobs/dlq lists the messages for one job. Pass the job external ID in the job parameter. Reading needs hostedextractors:read and raw:read, because the request uses the caller’s credentials. Each message includes the error, an error category, and the payload.
  • If the dead letter queue is not enabled for the job, the request fails with status 400 and the message DLQ is not enabled for job '<externalId>'.
  • If the job does not exist, the request returns 404.
  • If RAW rejects the request, the 401 or 403 status passes through to the caller.
  • Errors from the underlying storage return 400 (for example, an invalid cursor), 429 (rate limited), 502 (storage unavailable), or 504 (storage timed out).
Last modified on November 2, 2026