Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Runs

Trigger, monitor, and cancel import runs.

Retrieving run history

get

Retrieves the run history for a configuration, most recent first.

Required scopes
This endpoint requires the following scopes:
  • : Needed to trigger, schedule, monitor, and cancel import runs; to manage a file-based stream's file queue; and to read configurations, streams, schedules, runs, and imported data.
Authorizations
OAuth2clientCredentialsRequired
Token URL:
Path parameters
tenantstringRequired

The tenant you want to access.

Example: mytenant
configIdstring · uuidRequired

The configuration identifier.

Example: 7c9e6679-7425-40de-944b-e07fc1f90ae7
Query parameters
pageintegerOptional

The zero-based page number. A negative value returns HTTP 400.

Default: 0Example: 0
sizeinteger · min: 1Optional

The page size. Defaults to 20 for run history, 50 for run errors, and 25 for imported records. A value below 1 returns HTTP 400.

Example: 20
Responses
200

The request was successful. The run history is returned.

application/json

Pagination metadata for a page of results.

totalElementsintegerOptional

The total number of elements across all pages.

Example: 1250
totalPagesintegerOptional

The total number of pages.

Example: 63
numberintegerOptional

The current zero-based page number.

Example: 0
sizeintegerOptional

The page size.

Example: 20
get/importtool/{tenant}/configs/{configId}/runs
GET /importtool/{tenant}/configs/{configId}/runs HTTP/1.1
Host: api.emporix.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
{
  "totalElements": 3,
  "totalPages": 1,
  "number": 0,
  "size": 20,
  "content": [
    {
      "id": "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d",
      "configId": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
      "tenant": "mytenant",
      "trigger": "MANUAL",
      "origin": "Dashboard",
      "status": "SUCCEEDED",
      "mode": "DELTA",
      "startedAt": "2026-07-27T02:00:00.000Z",
      "executionStartedAt": "2026-07-27T02:00:03.000Z",
      "finishedAt": "2026-07-27T02:04:12.000Z",
      "recordsRead": 1250,
      "created": 40,
      "updated": 1180,
      "skipped": 25,
      "failed": 5,
      "deleted": 0,
      "message": "Import completed with 5 record failures."
    }
  ]
}

Triggering an import run

post

Requests an import run for the configuration and returns immediately with the run in the QUEUED status. The run starts when a worker of the Import Service is free, usually within moments, and then has the RUNNING status. If maxConcurrentImports runs are already executing for the tenant, the run waits until one of them finishes. queueWaitingFor says what a queued run waits for. To follow the run's progress, retrieve the run or stream its progress events.

A configuration has at most one run executing and at most one run queued. The service rejects a request with a 409 Conflict response while the configuration has a run in the QUEUED, RUNNING, or RESUMABLE status. The response names that run in the details entry whose field is activeRunId. The service also rejects the request with a 409 Conflict response while a data purge is in progress for the configuration.

A scheduled run is not rejected. It is queued behind the configuration's current run and starts when that run finishes. If the schedule requests another run while the configuration's run is still queued, the service adds the request to the queued run instead of queuing a second run, and counts it in supersededRequests. The service does this only when the queued run is a real run of the whole configuration. If the queued run is a dry run, a run of selected streams, or a retry, the scheduled run waits until that run starts and is then queued behind it.

A run executes each stream's published mappings. Saved mapping changes that are not published yet are the draft mappings, and they take effect only after they are published. Publishing mappings is an administrative operation that requires the importtool.import_manage scope and is not covered in this reference. A real run, or a dry run that uses the published mappings, fixes the published mapping version of each stream when it starts, so a version published during the run applies from the next run. The run reports these versions in mappingVersions. A dry run of the draft mappings does not use published versions and does not report mappingVersions.

A stream whose mappings have never been published is not run. Its entry in the run details (streams in the response of retrieving a run) has the ABORTED status and a message that gives the reason, and the run finishes with the PARTIAL status. The service refuses the whole run when streamIds names a stream whose mappings have never been published, or when every enabled stream is in that state.

The refusal does not change the response to this request: the service still returns 200 with the run, and the run then finishes with the ABORTED status and a message that names the streams. Retrieve the run to check its final status.

Required scopes
This endpoint requires the following scopes:
  • : Needed to trigger, schedule, monitor, and cancel import runs; to manage a file-based stream's file queue; and to read configurations, streams, schedules, runs, and imported data.
Authorizations
OAuth2clientCredentialsRequired
Token URL:
Path parameters
tenantstringRequired

The tenant you want to access.

Example: mytenant
configIdstring · uuidRequired

The configuration identifier.

Example: 7c9e6679-7425-40de-944b-e07fc1f90ae7
Body
modestring · enumOptional

The run mode, FULL or DELTA. When omitted, defaults to DELTA. The value is not case-sensitive. Send one of the listed values. The service does not reject another value and runs the import as DELTA.

Example: DELTAPossible values:
dryRunbooleanOptional

When true, the run maps and validates but performs no remote writes.

Example: false
mappingsstring · enumOptional

Dry-run only. Which mappings the dry run uses. published uses each stream's published mappings, which is what a real run executes. draft uses the draft mappings, so you can check them before publishing. When omitted, defaults to published. A dry run with published handles streams whose mappings have never been published in the same way as a real run. The field has no effect when dryRun is false, because a real run always uses the published mappings.

Default: publishedExample: publishedPossible values:
forcebooleanOptional

When true, every extracted record is rewritten, even if unchanged. It bypasses the idempotency skip-if-unchanged check. Use it to force target IDs and values to be rewritten.

Example: false
sampleSizeinteger · min: 1 · max: 100Optional

Dry-run only. How many mapped records to sample per stream for the preview returned as dryRunSample. Clamped to 1-100; defaults to 25.

Example: 25
originstring · max: 40Optional

What requested this run. Examples: Dashboard, an integration scenario name, or a scheduler name. The trigger field records only how the run started, for example MANUAL. Use origin when more than one system calls this endpoint. If you omit origin or send a blank value, the service stores the trigger value. The service rejects values longer than 40 characters and values that contain control characters. It does not shorten them.

Example: Make scenario 42
streamIdsstring · uuid[]Optional

The stream identifiers to run. Omit the field to run every stream in the configuration. Send a list of stream IDs to run only those streams. Do not send stream names; use the id values from the stream resource. The service rejects an empty list. It also rejects a list that includes no stream from this configuration. Listed streams still run in the computed stream order, not in list order. The service also rejects a stream that cannot produce data on its own. A COMPOSITE_CHILD stream with childStrategy set to EMBED is written by its parent. A child that reads values captured during the parent run also cannot run alone. Either stream without its parent would complete successfully without importing records.

Example: ["8f1b6a5c-2d7e-4a91-9c33-0b5e4d2a7f10"]
Responses
200

The request was successful. The run has been queued.

application/json

An import run and its reconciled counters.

idstring · uuidOptional

The run identifier.

Example: 9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d
configIdstring · uuidOptional

The configuration the run belongs to.

Example: 7c9e6679-7425-40de-944b-e07fc1f90ae7
tenantstringOptional

The owning tenant.

Example: mytenant
triggerstring · enumOptional

What triggered the run. Possible values:

  • MANUAL – triggered with the run operation.
  • SCHEDULED – started by the configuration's schedule.
  • RETRY – created by retrying the failed records of an earlier run. retryOfRunId names that run.
Example: MANUALPossible values:
originstringOptional

What requested the run. The origin value from the trigger request, or the trigger value when origin was omitted. Use this field to distinguish a dashboard run from a run started by an integration scenario. The field is absent on runs recorded before it existed.

Example: Dashboard
statusstring · enumOptional

The run status. Possible values:

  • QUEUED – the run waits to start. Nothing has been read yet, and the run has no per-stream progress. queueWaitingFor says what the run waits for.
  • RUNNING – the run is executing.
  • RESUMABLE – the run was interrupted, for example by a service restart, and resumes automatically from its last checkpoint. It is not a final status.
  • SUCCEEDED – the run finished, and every record was processed.
  • PARTIAL – the run finished, but not completely: some records failed, a limit skipped records, or a stream was not run. The message field and the per-stream progress give the details.
  • FAILED – the run stopped because of an error.
  • CANCELLED – the run was cancelled.
  • ABORTED – the service refused to start the run because of the import configuration, for example mappings that have never been published or a changed target schema. Nothing was read or written.
Example: SUCCEEDEDPossible values:
modestring · enumOptional

The run mode.

Example: DELTAPossible values:
startedAtstring · date-timeOptional

When the run was requested. If the run was queued first, it began executing later, at executionStartedAt.

Example: 2026-07-27T02:00:00.000Z
executionStartedAtstring · date-time · nullableOptional

When the run began executing. Equal to startedAt, or later by the time the run spent in the queue. null while the run is QUEUED, and on runs recorded before the field existed.

Example: 2026-07-27T02:00:03.000Z
finishedAtstring · date-timeOptional

When the run finished.

Example: 2026-07-27T02:04:12.000Z
queuePositioninteger · min: 1Optional

QUEUED runs only. The run's position among the queued runs that can start, where 1 starts next. Runs of all tenants share the queue, and a tenant with fewer runs executing goes first. The value is approximate, because the queue changes while you read it. The field is absent when the run is not queued, when it waits for something other than a worker, or when the service has not yet calculated it.

Example: 2
queueWaitingForstring · enumOptional

QUEUED runs only. What the run waits for. Possible values:

  • WORKER – the run waits for a free worker. queuePosition gives its place in the queue.
  • PREVIOUS_RUN – the run waits for the configuration's current run to finish.
  • TENANT_LIMIT – the run waits for one of the tenant's runs to finish, because maxConcurrentImports runs are already executing.

The field is absent when the run is not queued, or when the service has not yet calculated it.

Example: WORKERPossible values:
supersededRequestsintegerOptional

The number of later scheduled run requests that were added to this run while it was queued. A configuration has at most one queued run, so a scheduled request that arrives while a real run of the whole configuration is queued does not queue a second run.

Example: 0
lastRequestedAtstring · date-timeOptional

When the latest scheduled run request counted in supersededRequests was made. Absent when supersededRequests is 0.

Example: 2026-07-27T03:00:00.000Z
recordsReadintegerOptional

Records read. The counters reconcile: recordsRead = created + updated + skipped + unresolvedParents + deleted + failed + collapsed + embedded. A client that sums only some of them will not balance.

Example: 1250
createdintegerOptional

Records created.

Example: 40
updatedintegerOptional

Records updated.

Example: 1180
skippedintegerOptional

Records skipped because they were unchanged.

Example: 25
failedintegerOptional

Records that failed.

Example: 5
deletedintegerOptional

Records deleted.

Example: 0
duplicateKeysintegerOptional

Source rows that repeat a key already imported in this run. The import keeps the last row of each repeated key and discards earlier rows. Duplicate keys do not fail the run; they mean the source feed is not unique on the key the stream imports by.

Example: 25907
unresolvedParentsintegerOptional

Child records that were not imported because their parent could not be found. Counted separately from skipped, which counts records that were already up to date.

Example: 25370
collapsedintegerOptional

Source rows that repeated a key already present in the same batch. They are merged before the write, last row wins, and counted here — so the report adds up however the source feed is batched. A repeat in a later batch is written again and counted as created or updated instead; duplicateKeys is the signal for a feed that is not unique on its key.

Example: 12
embeddedintegerOptional

Child records an EMBED composite child handed to its parent, which the parent then wrote inside its own instance. One write of the parent covers them all, so they are never counted as created or updated (that would count each line as an instance) and never as skipped (which means "already up to date"). If the parent turned out to be unchanged, failed, or absent, these are settled onto skipped, failed, or unresolvedParents once the parent's pass completes.

Example: 430
messagestringOptional

A terminal status message, typically set on failure.

Example: Import completed with 5 record failures.
streamIdsstring · uuid[]Optional

The streams the run was asked to execute, as sent in streamIds when it was triggered. Absent when the run executes every stream of the configuration.

Example: ["3fa85f64-5717-4562-b3fc-2c963f66afa6"]
retryOfRunIdstring · uuidOptional

When the run retries another run's failed records, the identifier of that original run.

Example: 7c9e6679-7425-40de-944b-e07fc1f90ae7
forcebooleanOptional

Whether the run rewrote every record, bypassing the skip-if-unchanged check.

Example: false
dryRunbooleanOptional

Whether the run only extracted, mapped, and validated, writing nothing to the target. A dry run legitimately reports zero for every counter, so this distinguishes it from a run that wrote nothing because it failed.

Example: false
cancelRequestedbooleanOptional

Whether cancellation has been requested for a run that is still finishing.

Example: false
dryRunSampleSizeintegerOptional

For a dry run, how many mapped records were kept as a sample.

Example: 10
dryRunPublishedbooleanOptional

Dry-run only. Whether the dry run used the published mappings (true) or the draft mappings (false).

Example: true
post/importtool/{tenant}/configs/{configId}/runs
POST /importtool/{tenant}/configs/{configId}/runs HTTP/1.1
Host: api.emporix.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 36

{
  "mode": "FULL",
  "origin": "Dashboard"
}
{
  "id": "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d",
  "configId": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
  "tenant": "mytenant",
  "trigger": "MANUAL",
  "origin": "Dashboard",
  "status": "QUEUED",
  "mode": "FULL",
  "startedAt": "2026-07-27T02:00:00.000Z",
  "recordsRead": 0,
  "created": 0,
  "updated": 0,
  "skipped": 0,
  "failed": 0,
  "deleted": 0,
  "supersededRequests": 0
}

Retrieving a run

get

Retrieves a run's status together with its per-stream progress.

Required scopes
This endpoint requires the following scopes:
  • : Needed to trigger, schedule, monitor, and cancel import runs; to manage a file-based stream's file queue; and to read configurations, streams, schedules, runs, and imported data.
Authorizations
OAuth2clientCredentialsRequired
Token URL:
Path parameters
tenantstringRequired

The tenant you want to access.

Example: mytenant
runIdstring · uuidRequired

The run identifier.

Example: 9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d
Responses
200

The request was successful. The run and its streams are returned.

application/json

A run together with its per-stream progress.

get/importtool/{tenant}/runs/{runId}
GET /importtool/{tenant}/runs/{runId} HTTP/1.1
Host: api.emporix.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
{
  "run": {
    "id": "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d",
    "configId": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
    "tenant": "mytenant",
    "trigger": "MANUAL",
    "origin": "Dashboard",
    "status": "SUCCEEDED",
    "mode": "DELTA",
    "startedAt": "2026-07-27T02:00:00.000Z",
    "executionStartedAt": "2026-07-27T02:00:03.000Z",
    "finishedAt": "2026-07-27T02:04:12.000Z",
    "recordsRead": 1250,
    "created": 40,
    "updated": 1180,
    "skipped": 25,
    "failed": 5,
    "deleted": 0,
    "message": "Import completed with 5 record failures."
  },
  "streams": [
    {
      "id": "c56a4180-65aa-42ec-a945-5fd21dec0538",
      "runId": "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d",
      "streamId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "streamName": "Products",
      "status": "PARTIAL",
      "recordsRead": 1250,
      "created": 40,
      "updated": 1180,
      "skipped": 25,
      "failed": 5,
      "deleted": 0,
      "message": "5 records failed validation."
    }
  ]
}

Streaming run progress

get

Streams a run's progress as Server-Sent Events. The service sends these events:

  • snapshot – sent once when the connection opens. run is the run and streams its per-stream entries, as returned by retrieving the run. streams can be empty when the entries cannot be read in time; the stream events then fill them in.

  • stream – sent per processed batch and when a stream finishes. Carries runId, streamId, streamName, status, the counters recordsRead, created, updated, skipped, failed, deleted, collapsed and embedded, and the stream's message.

  • run – sent when the run's status or totals change, for example when a queued run starts. Carries runId, configId, status, the run's counters, and finished. The event with finished set to true is the last one: the service then closes the stream.

An event can repeat values already sent. Each event carries complete counters, not increments.

Required scopes
This endpoint requires the following scopes:
  • : Needed to trigger, schedule, monitor, and cancel import runs; to manage a file-based stream's file queue; and to read configurations, streams, schedules, runs, and imported data.
Authorizations
OAuth2clientCredentialsRequired
Token URL:
Path parameters
tenantstringRequired

The tenant you want to access.

Example: mytenant
runIdstring · uuidRequired

The run identifier.

Example: 9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d
Responses
200

The event stream was opened.

text/event-stream
stringOptionalExample: event: snapshot data: {"run":{"id":"9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d","status":"RUNNING"},"streams":[{"streamName":"Products","status":"RUNNING","recordsRead":120}]} event: stream data: {"runId":"9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d","streamId":"3fa85f64-5717-4562-b3fc-2c963f66afa6","streamName":"Products","status":"RUNNING","recordsRead":240,"created":20,"updated":210,"skipped":8,"failed":2,"deleted":0,"collapsed":0,"embedded":0} event: run data: {"runId":"9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d","configId":"7c9e6679-7425-40de-944b-e07fc1f90ae7","status":"SUCCEEDED","recordsRead":1250,"created":40,"updated":1190,"skipped":15,"failed":5,"deleted":0,"collapsed":0,"embedded":0,"finished":true}
get/importtool/{tenant}/runs/{runId}/events
GET /importtool/{tenant}/runs/{runId}/events HTTP/1.1
Host: api.emporix.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
event: snapshot
data: {"run":{"id":"9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d","status":"RUNNING"},"streams":[{"streamName":"Products","status":"RUNNING","recordsRead":120}]}

event: stream
data: {"runId":"9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d","streamId":"3fa85f64-5717-4562-b3fc-2c963f66afa6","streamName":"Products","status":"RUNNING","recordsRead":240,"created":20,"updated":210,"skipped":8,"failed":2,"deleted":0,"collapsed":0,"embedded":0}

event: run
data: {"runId":"9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d","configId":"7c9e6679-7425-40de-944b-e07fc1f90ae7","status":"SUCCEEDED","recordsRead":1250,"created":40,"updated":1190,"skipped":15,"failed":5,"deleted":0,"collapsed":0,"embedded":0,"finished":true}

Cancelling a run

post

Requests cancellation of an active run. By default the cancellation is cooperative; with force=true the run is stopped immediately and its configuration is unblocked.

A run in the QUEUED status has not started, so it is cancelled immediately and gets the CANCELLED status, with or without force. A run in the RESUMABLE status can be stopped only with force=true. Without force, the request returns a 409 Conflict response.

A 409 Conflict response is also returned when the run does not exist or has already finished. In every case, the 409 Conflict response body is the same cancellation result as a 202 Accepted response, with accepted set to false.

Required scopes
This endpoint requires the following scopes:
  • : Needed to trigger, schedule, monitor, and cancel import runs; to manage a file-based stream's file queue; and to read configurations, streams, schedules, runs, and imported data.
Authorizations
OAuth2clientCredentialsRequired
Token URL:
Path parameters
tenantstringRequired

The tenant you want to access.

Example: mytenant
runIdstring · uuidRequired

The run identifier.

Example: 9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d
Query parameters
forcebooleanOptional

When true, hard-stops the run immediately.

Default: falseExample: false
Responses
202

The cancellation was accepted.

application/json

The outcome of a cancellation request.

runIdstring · uuidOptional

The run the cancellation targeted.

Example: 9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d
forcebooleanOptional

Whether a hard stop was requested.

Example: false
acceptedbooleanOptional

Whether the cancellation was accepted. false when the run does not exist, has already finished, or has the RESUMABLE status and force was not set.

Example: true
cancelRequestedbooleanOptionalDeprecated

The same value as accepted. Kept for clients written against an earlier response. Use accepted.

Example: true
post/importtool/{tenant}/runs/{runId}/cancel
POST /importtool/{tenant}/runs/{runId}/cancel HTTP/1.1
Host: api.emporix.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
{
  "runId": "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d",
  "force": false,
  "accepted": true,
  "cancelRequested": true
}

Retrieving run errors

get

Retrieves the errors recorded during a run, paginated.

Required scopes
This endpoint requires the following scopes:
  • : Needed to trigger, schedule, monitor, and cancel import runs; to manage a file-based stream's file queue; and to read configurations, streams, schedules, runs, and imported data.
Authorizations
OAuth2clientCredentialsRequired
Token URL:
Path parameters
tenantstringRequired

The tenant you want to access.

Example: mytenant
runIdstring · uuidRequired

The run identifier.

Example: 9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d
Query parameters
pageintegerOptional

The zero-based page number. A negative value returns HTTP 400.

Default: 0Example: 0
sizeinteger · min: 1Optional

The page size. Defaults to 20 for run history, 50 for run errors, and 25 for imported records. A value below 1 returns HTTP 400.

Example: 20
Responses
200

The request was successful. The errors are returned.

application/json

Pagination metadata for a page of results.

totalElementsintegerOptional

The total number of elements across all pages.

Example: 1250
totalPagesintegerOptional

The total number of pages.

Example: 63
numberintegerOptional

The current zero-based page number.

Example: 0
sizeintegerOptional

The page size.

Example: 20
get/importtool/{tenant}/runs/{runId}/errors
GET /importtool/{tenant}/runs/{runId}/errors HTTP/1.1
Host: api.emporix.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
{
  "totalElements": 5,
  "totalPages": 1,
  "number": 0,
  "size": 50,
  "content": [
    {
      "id": "6ba7b810-9dad-11d1-80b4-00c04fd430c8",
      "runId": "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d",
      "streamId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "naturalKey": "SKU-1001",
      "targetEntity": "emporix.customEntity",
      "stage": "VALIDATE",
      "errorCode": "VALIDATION",
      "message": "Required field 'name' is missing for natural key SKU-1001.",
      "createdAt": "2026-07-27T02:03:41.000Z"
    }
  ]
}

Retrieving run diagnostics

get

Retrieves the source rows represented by a run's feed-quality counters.

A run reports how many source rows repeated a natural key (duplicateKeys) and how many child lines had no parent to attach to (unresolvedParents). This endpoint identifies the affected rows and returns each record's key, its parent-linking field and value, and the number of lines waiting for each missing parent.

Neither counter is a failure, so these rows are kept separately from run errors.

The rows are a capped SAMPLE, not necessarily the whole set — recorded gives how many were stored and sampleTruncated says whether a stream hit the cap. The run's own counters show the total number of affected rows; do not use the returned row count to measure the size of the problem.

Required scopes
This endpoint requires the following scopes:
  • : Needed to trigger, schedule, monitor, and cancel import runs; to manage a file-based stream's file queue; and to read configurations, streams, schedules, runs, and imported data.
Authorizations
OAuth2clientCredentialsRequired
Token URL:
Path parameters
tenantstringRequired

The tenant you want to access.

Example: mytenant
runIdstring · uuidRequired

The run identifier.

Example: 9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d
Query parameters
streamIdstring · uuidOptional

Restrict the rows to those recorded for this stream.

kindstring · enumOptional

Restrict the rows to this kind.

Possible values:
limitinteger · min: 1 · max: 50000Optional

Maximum number of rows to return. Defaults differ between the JSON and CSV operations.

Default: 500
Responses
200

The request was successful. The diagnostic rows are returned.

application/json

A page of diagnostic rows with metadata that indicates whether the response contains all recorded rows or only part of a capped sample. Use recorded, cap, and sampleTruncated to interpret the page. The run's counters show the total number of affected rows.

returnedintegerOptional

How many rows this response contains.

Example: 500
recordedintegerOptional

How many rows were recorded in total for this scope.

Example: 2000
capintegerOptional

The per-stream, per-kind recording cap.

Example: 2000
sampleTruncatedbooleanOptional

Whether at least one stream reached the cap. When true, these rows are a sample, and the run's own counters show the total number of affected rows.

Example: true
notestringOptional

A human-readable statement of what this response is.

get/importtool/{tenant}/runs/{runId}/diagnostics
GET /importtool/{tenant}/runs/{runId}/diagnostics HTTP/1.1
Host: api.emporix.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
{
  "returned": 2,
  "recorded": 2000,
  "cap": 2000,
  "sampleTruncated": true,
  "note": "At least one stream hit the recording cap, so these rows are a capped SAMPLE.",
  "rows": [
    {
      "streamName": "poLine",
      "kind": "UNRESOLVED_PARENT",
      "naturalKey": "ID:PO-4711",
      "linkingField": "HEADER_ID",
      "linkingValue": "PO-4711",
      "targetType": "PURCHASE_ORDER",
      "waitingLines": 7
    }
  ]
}

Downloading run diagnostics as CSV

get

Returns the same rows as a CSV attachment, for opening in a spreadsheet or attaching to a ticket.

Comment lines above the header indicate whether the limit parameter restricted the response or a stream reached the recording cap. These comments preserve that context when the file is shared independently of the request.

Values are quoted. Any value beginning with =, +, -, or @ is prefixed with an apostrophe so that spreadsheet software does not interpret source-provided data as a formula.

Required scopes
This endpoint requires the following scopes:
  • : Needed to trigger, schedule, monitor, and cancel import runs; to manage a file-based stream's file queue; and to read configurations, streams, schedules, runs, and imported data.
Authorizations
OAuth2clientCredentialsRequired
Token URL:
Path parameters
tenantstringRequired

The tenant you want to access.

Example: mytenant
runIdstring · uuidRequired

The run identifier.

Example: 9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d
Query parameters
streamIdstring · uuidOptional

Restrict the rows to those recorded for this stream.

kindstring · enumOptional

Restrict the rows to this kind.

Possible values:
limitinteger · min: 1 · max: 50000Optional

Maximum number of rows to include. Defaults differ between the JSON and CSV operations.

Default: 50000
Responses
200

The request was successful. The CSV file is returned.

text/csv
Responsestring
get/importtool/{tenant}/runs/{runId}/diagnostics/csv
GET /importtool/{tenant}/runs/{runId}/diagnostics/csv HTTP/1.1
Host: api.emporix.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
# capped sample: 2000 rows recorded (cap 2000 per stream) - the run's counters show the total number of affected rows
stream,kind,key,linkingField,linkingValue,targetType,waitingLines,occurrence
poLine,UNRESOLVED_PARENT,ID:PO-4711,HEADER_ID,PO-4711,PURCHASE_ORDER,7,

Retrying the failed records of a run

post

Starts a new run that reprocesses only the records that failed in the given run, instead of the whole source. The new run is returned immediately in the QUEUED status and starts when a worker is free. It reports its own progress. The original run is left untouched and keeps its counters.

As with a run that you trigger, the service rejects the retry with a 409 Conflict response while the configuration has a run in the QUEUED, RUNNING, or RESUMABLE status, or while a data purge is in progress for it. A 409 Conflict response is also returned when the run cannot be retried:

  • The run is still active.

  • The run has no failed records that a retry can re-read.

  • A failed stream reads from a source that cannot fetch specific records by key, such as an HTTP source.

  • A file that the run read has been removed or replaced since the run.

Required scopes
This endpoint requires the following scopes:
  • : Needed to trigger, schedule, monitor, and cancel import runs; to manage a file-based stream's file queue; and to read configurations, streams, schedules, runs, and imported data.
Authorizations
OAuth2clientCredentialsRequired
Token URL:
Path parameters
tenantstringRequired

The tenant you want to access.

Example: mytenant
runIdstring · uuidRequired

The run identifier.

Example: 9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d
Responses
200

The request was successful. The retry run has been queued.

application/json

An import run and its reconciled counters.

idstring · uuidOptional

The run identifier.

Example: 9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d
configIdstring · uuidOptional

The configuration the run belongs to.

Example: 7c9e6679-7425-40de-944b-e07fc1f90ae7
tenantstringOptional

The owning tenant.

Example: mytenant
triggerstring · enumOptional

What triggered the run. Possible values:

  • MANUAL – triggered with the run operation.
  • SCHEDULED – started by the configuration's schedule.
  • RETRY – created by retrying the failed records of an earlier run. retryOfRunId names that run.
Example: MANUALPossible values:
originstringOptional

What requested the run. The origin value from the trigger request, or the trigger value when origin was omitted. Use this field to distinguish a dashboard run from a run started by an integration scenario. The field is absent on runs recorded before it existed.

Example: Dashboard
statusstring · enumOptional

The run status. Possible values:

  • QUEUED – the run waits to start. Nothing has been read yet, and the run has no per-stream progress. queueWaitingFor says what the run waits for.
  • RUNNING – the run is executing.
  • RESUMABLE – the run was interrupted, for example by a service restart, and resumes automatically from its last checkpoint. It is not a final status.
  • SUCCEEDED – the run finished, and every record was processed.
  • PARTIAL – the run finished, but not completely: some records failed, a limit skipped records, or a stream was not run. The message field and the per-stream progress give the details.
  • FAILED – the run stopped because of an error.
  • CANCELLED – the run was cancelled.
  • ABORTED – the service refused to start the run because of the import configuration, for example mappings that have never been published or a changed target schema. Nothing was read or written.
Example: SUCCEEDEDPossible values:
modestring · enumOptional

The run mode.

Example: DELTAPossible values:
startedAtstring · date-timeOptional

When the run was requested. If the run was queued first, it began executing later, at executionStartedAt.

Example: 2026-07-27T02:00:00.000Z
executionStartedAtstring · date-time · nullableOptional

When the run began executing. Equal to startedAt, or later by the time the run spent in the queue. null while the run is QUEUED, and on runs recorded before the field existed.

Example: 2026-07-27T02:00:03.000Z
finishedAtstring · date-timeOptional

When the run finished.

Example: 2026-07-27T02:04:12.000Z
queuePositioninteger · min: 1Optional

QUEUED runs only. The run's position among the queued runs that can start, where 1 starts next. Runs of all tenants share the queue, and a tenant with fewer runs executing goes first. The value is approximate, because the queue changes while you read it. The field is absent when the run is not queued, when it waits for something other than a worker, or when the service has not yet calculated it.

Example: 2
queueWaitingForstring · enumOptional

QUEUED runs only. What the run waits for. Possible values:

  • WORKER – the run waits for a free worker. queuePosition gives its place in the queue.
  • PREVIOUS_RUN – the run waits for the configuration's current run to finish.
  • TENANT_LIMIT – the run waits for one of the tenant's runs to finish, because maxConcurrentImports runs are already executing.

The field is absent when the run is not queued, or when the service has not yet calculated it.

Example: WORKERPossible values:
supersededRequestsintegerOptional

The number of later scheduled run requests that were added to this run while it was queued. A configuration has at most one queued run, so a scheduled request that arrives while a real run of the whole configuration is queued does not queue a second run.

Example: 0
lastRequestedAtstring · date-timeOptional

When the latest scheduled run request counted in supersededRequests was made. Absent when supersededRequests is 0.

Example: 2026-07-27T03:00:00.000Z
recordsReadintegerOptional

Records read. The counters reconcile: recordsRead = created + updated + skipped + unresolvedParents + deleted + failed + collapsed + embedded. A client that sums only some of them will not balance.

Example: 1250
createdintegerOptional

Records created.

Example: 40
updatedintegerOptional

Records updated.

Example: 1180
skippedintegerOptional

Records skipped because they were unchanged.

Example: 25
failedintegerOptional

Records that failed.

Example: 5
deletedintegerOptional

Records deleted.

Example: 0
duplicateKeysintegerOptional

Source rows that repeat a key already imported in this run. The import keeps the last row of each repeated key and discards earlier rows. Duplicate keys do not fail the run; they mean the source feed is not unique on the key the stream imports by.

Example: 25907
unresolvedParentsintegerOptional

Child records that were not imported because their parent could not be found. Counted separately from skipped, which counts records that were already up to date.

Example: 25370
collapsedintegerOptional

Source rows that repeated a key already present in the same batch. They are merged before the write, last row wins, and counted here — so the report adds up however the source feed is batched. A repeat in a later batch is written again and counted as created or updated instead; duplicateKeys is the signal for a feed that is not unique on its key.

Example: 12
embeddedintegerOptional

Child records an EMBED composite child handed to its parent, which the parent then wrote inside its own instance. One write of the parent covers them all, so they are never counted as created or updated (that would count each line as an instance) and never as skipped (which means "already up to date"). If the parent turned out to be unchanged, failed, or absent, these are settled onto skipped, failed, or unresolvedParents once the parent's pass completes.

Example: 430
messagestringOptional

A terminal status message, typically set on failure.

Example: Import completed with 5 record failures.
streamIdsstring · uuid[]Optional

The streams the run was asked to execute, as sent in streamIds when it was triggered. Absent when the run executes every stream of the configuration.

Example: ["3fa85f64-5717-4562-b3fc-2c963f66afa6"]
retryOfRunIdstring · uuidOptional

When the run retries another run's failed records, the identifier of that original run.

Example: 7c9e6679-7425-40de-944b-e07fc1f90ae7
forcebooleanOptional

Whether the run rewrote every record, bypassing the skip-if-unchanged check.

Example: false
dryRunbooleanOptional

Whether the run only extracted, mapped, and validated, writing nothing to the target. A dry run legitimately reports zero for every counter, so this distinguishes it from a run that wrote nothing because it failed.

Example: false
cancelRequestedbooleanOptional

Whether cancellation has been requested for a run that is still finishing.

Example: false
dryRunSampleSizeintegerOptional

For a dry run, how many mapped records were kept as a sample.

Example: 10
dryRunPublishedbooleanOptional

Dry-run only. Whether the dry run used the published mappings (true) or the draft mappings (false).

Example: true
post/importtool/{tenant}/runs/{runId}/retry
POST /importtool/{tenant}/runs/{runId}/retry HTTP/1.1
Host: api.emporix.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
{
  "id": "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d",
  "configId": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
  "tenant": "mytenant",
  "trigger": "MANUAL",
  "origin": "Dashboard",
  "status": "QUEUED",
  "mode": "FULL",
  "startedAt": "2026-07-27T02:00:00.000Z",
  "recordsRead": 0,
  "created": 0,
  "updated": 0,
  "skipped": 0,
  "failed": 0,
  "deleted": 0,
  "supersededRequests": 0
}

Last updated

Was this helpful?