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

Data

Read imported records.

Retrieving imported data types

get

Retrieves the distinct target types that currently hold imported records.

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
Responses
200

The request was successful. The types are returned.

application/json
string[]OptionalExample: product
get/importtool/{tenant}/data/types
GET /importtool/{tenant}/data/types HTTP/1.1
Host: api.emporix.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
[
  "product",
  "category"
]

Searching imported records

get

Searches imported records of a given type with an optional search filter on the natural key or Emporix identifier, 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
Query parameters
typestringRequired

The target type to search.

Example: product
searchstringOptional

Optional filter. Returns the records whose natural key or Emporix identifier starts with the given text. The natural key can be given with its key name (ID:SKU-1001) or as the source value alone (SKU-1001). The match is case-sensitive and matches from the start only: text from the middle of a key matches nothing. Emporix identifiers are lower case, so the identifier is also matched with the text converted to lower case: 3FA85F64 finds 3fa85f64-…. This is not the Emporix query language, so field selectors and operators are not supported.

Default: ""Example: SKU-1001
outcomestring · enumOptional

Optional filter by import outcome. Omit to return records of all outcomes. The value must match exactly, in upper case. Any other value returns no records. Possible values:

  • UPSERTED – created or updated.
  • DELETED – removed at the source.
  • FAILED – the record could not be imported.
  • DRY_RUN – produced by a dry run.
Possible values:
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 records 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}/data/records
GET /importtool/{tenant}/data/records?type=product HTTP/1.1
Host: api.emporix.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
{
  "totalElements": 1250,
  "totalPages": 50,
  "number": 0,
  "size": 25,
  "content": [
    {
      "id": "1b9d6bcd-bbfd-4b2d-9b5d-ab8dfbbd4bed",
      "configId": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
      "streamId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "runId": "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d",
      "targetEntity": "emporix.customEntity",
      "targetType": "product",
      "naturalKey": "SKU-1001",
      "fields": {
        "name": "Pipe cutter",
        "sku": "SKU-1001",
        "active": true
      },
      "outcome": "UPSERTED",
      "importedAt": "2026-07-27T02:03:55.000Z"
    }
  ]
}

Searching a stream's imported records

get

Searches the imported records produced by a specific stream with an optional search filter on the natural key or Emporix identifier, 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
streamIdstring · uuidRequired

The stream identifier.

Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6
Query parameters
searchstringOptional

Optional filter. Returns the records whose natural key or Emporix identifier starts with the given text. The natural key can be given with its key name (ID:SKU-1001) or as the source value alone (SKU-1001). The match is case-sensitive and matches from the start only: text from the middle of a key matches nothing. Emporix identifiers are lower case, so the identifier is also matched with the text converted to lower case: 3FA85F64 finds 3fa85f64-…. This is not the Emporix query language, so field selectors and operators are not supported.

Default: ""Example: SKU-1001
outcomestring · enumOptional

Optional filter by import outcome. Omit to return records of all outcomes. The value must match exactly, in upper case. Any other value returns no records. Possible values:

  • UPSERTED – created or updated.
  • DELETED – removed at the source.
  • FAILED – the record could not be imported.
  • DRY_RUN – produced by a dry run.
Possible values:
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 records 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}/data/streams/{streamId}/records
GET /importtool/{tenant}/data/streams/{streamId}/records HTTP/1.1
Host: api.emporix.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
{
  "totalElements": 1250,
  "totalPages": 50,
  "number": 0,
  "size": 25,
  "content": [
    {
      "id": "1b9d6bcd-bbfd-4b2d-9b5d-ab8dfbbd4bed",
      "configId": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
      "streamId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "runId": "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d",
      "targetEntity": "emporix.customEntity",
      "targetType": "product",
      "naturalKey": "SKU-1001",
      "fields": {
        "name": "Pipe cutter",
        "sku": "SKU-1001",
        "active": true
      },
      "outcome": "UPSERTED",
      "importedAt": "2026-07-27T02:03:55.000Z"
    }
  ]
}

Last updated

Was this helpful?