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

Index Jobs

Retrieving index jobs

get
Preview

Retrieves index jobs for the tenant.

Required scopes
This endpoint requires the following scopes:
  • : Needed to search documents, to read saved searches, and to read search indexes and index jobs.
Authorizations
OAuth2clientCredentialsRequired
Token URL:
Path parameters
tenantstring · min: 3 · max: 16Required

Your Emporix tenant's name. Note: The tenant should always be written in lowercase.

Pattern: ^[a-z][a-z0-9]+$
Query parameters
pageNumberinteger · min: 1Optional

Page number to be retrieved. The number of the first page is 1.

Default: 1
pageSizeinteger · min: 1 · max: 2000Optional

Number of items to be retrieved per page.

Default: 60
sortstringOptional

Comma-separated list of properties used to sort the results. The order of properties indicates their priority.

Possible values:

  • {fieldName}
  • {fieldName}:ASC
  • {fieldName}:DESC

When the direction is omitted, the field is sorted in ascending order. When sort is omitted, results are ordered by metadata.createdAt descending.

Example: name:ASC
qstringOptional

A standard query parameter is used to search for specific values.

See: Standard practises - Query parameter

fieldsstringOptional

Comma-separated list of job properties to return. When the parameter is omitted, the job is returned in full.

Example: id,status,type,indexId
Header parameters
X-Total-CountbooleanOptional

Flag indicating whether the total count of retrieved items should be returned.

Default: false
Responses
200

The request succeeded. The body is the current page of jobs.

application/json
get/search/{tenant}/jobs
GET /search/{tenant}/jobs HTTP/1.1
Host: api.emporix.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
[
  {
    "id": "66f1a2b3c4d5e6f708192a3b",
    "status": "in_progress",
    "type": "create_index",
    "indexId": "vehicles",
    "message": "Creating index vehicles--VEHICLE for type VEHICLE",
    "metadata": {
      "version": 1,
      "createdAt": "2026-03-12T10:00:00.000Z",
      "modifiedAt": "2026-03-12T10:00:00.000Z"
    }
  }
]

Retrieving an index job

get
Preview

Retrieves one index job.

Required scopes
This endpoint requires the following scopes:
  • : Needed to search documents, to read saved searches, and to read search indexes and index jobs.
Authorizations
OAuth2clientCredentialsRequired
Token URL:
Path parameters
tenantstring · min: 3 · max: 16Required

Your Emporix tenant's name. Note: The tenant should always be written in lowercase.

Pattern: ^[a-z][a-z0-9]+$
idstringRequired

Identifier of the index job.

Example: 66f1a2b3c4d5e6f708192a3b
Query parameters
fieldsstringOptional

Comma-separated list of job properties to return. When the parameter is omitted, the job is returned in full.

Example: id,status,type,indexId
Responses
200

The job exists.

application/json

One index build or deletion job.

idstringOptional

Job id.

Example: 66f1a2b3c4d5e6f708192a3b
statusstring · enumOptional

Current state of the job.

Example: in_progressPossible values:
typestring · enumOptional

Kind of index change.

Example: create_indexPossible values:
indexIdstringOptional

Index id.

Example: vehicles
messagestringOptional

Text recorded when the job started.

Example: Creating index vehicles--VEHICLE for type VEHICLE
responsestringOptional

Result text recorded when the job finishes.

Example: Index created.
get/search/{tenant}/jobs/{id}
GET /search/{tenant}/jobs/{id} HTTP/1.1
Host: api.emporix.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
{
  "id": "66f1a2b3c4d5e6f708192a3b",
  "status": "success",
  "type": "create_index",
  "indexId": "vehicles",
  "message": "Creating index vehicles--VEHICLE for type VEHICLE",
  "response": "Index created.",
  "metadata": {
    "version": 1,
    "createdAt": "2026-03-12T10:00:00.000Z",
    "modifiedAt": "2026-03-12T10:04:00.000Z"
  }
}

Last updated

Was this helpful?