> For the complete documentation index, see [llms.txt](https://developer.emporix.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.emporix.io/api-references/readme/api-reference-33/index-jobs.md). Agents can also search and read this documentation through its [MCP server](https://developer.emporix.io/~gitbook/mcp).

# Index Jobs

## Retrieving index jobs

> !\[Preview]\(<https://res.cloudinary.com/saas-ag/image/upload/v1752824268/emporix/icons/preview\\_api1.png)\\>
> \
> {% hint style="danger" %}\
> This functionality is in preview mode - some of the features may not be fully operational yet.\
> {% endhint %}\
> \
> Retrieves index jobs for the tenant.

```json
{"openapi":"3.0.0","info":{"title":"Search Service","version":"0.0.1"},"servers":[{"url":"https://api.emporix.io"}],"security":[{"OAuth2":["search.search_read"]}],"components":{"securitySchemes":{"OAuth2":{"type":"oauth2","flows":{"clientCredentials":{"tokenUrl":"https://api.emporix.io/oauth/token","scopes":{"search.search_read":"Needed to search documents, to read saved searches, and to read search indexes and index jobs.","search.search_manage":"Needed to create, update, and delete saved searches and search indexes.","schema.custominstance_read":"Needed to read every custom entity instance. When this scope is absent, `custom.{type}_read` or `custom.{type}_read_own` can still allow the search.","customer.customer_read":"Needed to search every customer. A restricted form such as `customer.customer_read--DE#AT` returns only customers whose `restriction` matches one of the listed values.","customer.customer_read_own":"Needed to search only the caller's own customer.","customermanagement.legalentity_read":"Needed to search every legal entity. A restricted form such as `customermanagement.legalentity_read--DE#AT` returns only legal entities whose `restrictions` contain one of the listed values.","customermanagement.legalentity_read_own":"Needed to search only the caller's own legal entity."}}}}},"parameters":{"query_pageNumber":{"name":"pageNumber","in":"query","description":"Page number to be retrieved. The number of the first page is 1.\n","schema":{"default":1,"minimum":1,"type":"integer"}},"query_pageSize":{"name":"pageSize","in":"query","description":"Number of items to be retrieved per page.","schema":{"default":60,"minimum":1,"maximum":2000,"type":"integer"}},"query_sort_createdAt":{"name":"sort","in":"query","description":"Comma-separated list of properties used to sort the results. The order of properties indicates their priority.\n\nPossible values:\n\n* `{fieldName}`\n* `{fieldName}:ASC`\n* `{fieldName}:DESC`\n\nWhen the direction is omitted, the field is sorted in ascending order. When `sort` is omitted, results are ordered by `metadata.createdAt` descending.","schema":{"type":"string"}},"query_q":{"name":"q","in":"query","description":"A standard query parameter is used to search for specific values.\n\nSee: [Standard practises - Query parameter](https://developer.emporix.io/api-documentation/standard-practices/q-param)","schema":{"type":"string"}},"query_fields_job":{"name":"fields","in":"query","description":"Comma-separated list of job properties to return. When the parameter is omitted, the job is returned in full.","schema":{"type":"string"}},"header_X-Total-Count":{"name":"X-Total-Count","in":"header","required":false,"description":"Flag indicating whether the total count of retrieved items should be returned.","schema":{"default":false,"type":"boolean"}}},"schemas":{"IndexJob":{"type":"object","description":"One index build or deletion job.","properties":{"id":{"type":"string","description":"Job id."},"status":{"type":"string","description":"Current state of the job.","enum":["in_progress","success","failure"]},"type":{"type":"string","description":"Kind of index change.","enum":["create_index","update_index","delete_index"]},"indexId":{"type":"string","description":"Index id."},"message":{"type":"string","description":"Text recorded when the job started."},"response":{"type":"string","description":"Result text recorded when the job finishes."},"metadata":{"$ref":"#/components/schemas/ResourceMetadata"}}},"ResourceMetadata":{"type":"object","description":"Version and timestamps for a stored resource.","properties":{"version":{"type":"integer","description":"Stored version. The first version is 1."},"createdAt":{"type":"string","format":"date-time","description":"Time when the resource was created."},"modifiedAt":{"type":"string","format":"date-time","description":"Time when the resource was last modified."}}},"ErrorMessageFault":{"type":"object","description":"Authorization error returned by the API gateway.","properties":{"fault":{"type":"object","properties":{"faultstring":{"type":"string","description":"Authorization failure."},"detail":{"type":"object","properties":{"errorcode":{"type":"string","description":"Gateway error code."}}}}}}},"ErrorMessage":{"type":"object","description":"Error returned for a failed request.","properties":{"code":{"type":"integer","description":"HTTP status code."},"status":{"type":"string","description":"HTTP status code as text."},"message":{"type":"string","description":"Explanation of the failure."},"details":{"type":"array","description":"Field-level or scope-level messages, when the failure has more than one part.","items":{"type":"object","properties":{"message":{"type":"string","description":"One part of the failure."}}}}}}},"responses":{"401_resp_common":{"description":"The authorization token is invalid or has expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessageFault"}}}},"403_search_read":{"description":"The access token does not include `search.search_read`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"500_resp_common":{"description":"A server-side error occurred.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}}}},"paths":{"/search/{tenant}/jobs":{"get":{"summary":"Retrieving index jobs","operationId":"GET-search-tenant-jobs","tags":["Index Jobs"],"description":"![Preview](https://res.cloudinary.com/saas-ag/image/upload/v1752824268/emporix/icons/preview_api1.png)\n\n{% hint style=\"danger\" %}\nThis functionality is in preview mode - some of the features may not be fully operational yet.\n{% endhint %}\n\nRetrieves index jobs for the tenant.","parameters":[{"$ref":"#/components/parameters/query_pageNumber"},{"$ref":"#/components/parameters/query_pageSize"},{"$ref":"#/components/parameters/query_sort_createdAt"},{"$ref":"#/components/parameters/query_q"},{"$ref":"#/components/parameters/query_fields_job"},{"$ref":"#/components/parameters/header_X-Total-Count"}],"responses":{"200":{"description":"The request succeeded. The body is the current page of jobs.","headers":{"X-Total-Count":{"description":"Number of jobs. Present only when the request `X-Total-Count` header is `true`.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/IndexJob"}}}}},"401":{"$ref":"#/components/responses/401_resp_common"},"403":{"$ref":"#/components/responses/403_search_read"},"500":{"$ref":"#/components/responses/500_resp_common"}}}}}}
```

## Retrieving an index job

> !\[Preview]\(<https://res.cloudinary.com/saas-ag/image/upload/v1752824268/emporix/icons/preview\\_api1.png)\\>
> \
> {% hint style="danger" %}\
> This functionality is in preview mode - some of the features may not be fully operational yet.\
> {% endhint %}\
> \
> Retrieves one index job.

```json
{"openapi":"3.0.0","info":{"title":"Search Service","version":"0.0.1"},"servers":[{"url":"https://api.emporix.io"}],"security":[{"OAuth2":["search.search_read"]}],"components":{"securitySchemes":{"OAuth2":{"type":"oauth2","flows":{"clientCredentials":{"tokenUrl":"https://api.emporix.io/oauth/token","scopes":{"search.search_read":"Needed to search documents, to read saved searches, and to read search indexes and index jobs.","search.search_manage":"Needed to create, update, and delete saved searches and search indexes.","schema.custominstance_read":"Needed to read every custom entity instance. When this scope is absent, `custom.{type}_read` or `custom.{type}_read_own` can still allow the search.","customer.customer_read":"Needed to search every customer. A restricted form such as `customer.customer_read--DE#AT` returns only customers whose `restriction` matches one of the listed values.","customer.customer_read_own":"Needed to search only the caller's own customer.","customermanagement.legalentity_read":"Needed to search every legal entity. A restricted form such as `customermanagement.legalentity_read--DE#AT` returns only legal entities whose `restrictions` contain one of the listed values.","customermanagement.legalentity_read_own":"Needed to search only the caller's own legal entity."}}}}},"parameters":{"query_fields_job":{"name":"fields","in":"query","description":"Comma-separated list of job properties to return. When the parameter is omitted, the job is returned in full.","schema":{"type":"string"}}},"schemas":{"IndexJob":{"type":"object","description":"One index build or deletion job.","properties":{"id":{"type":"string","description":"Job id."},"status":{"type":"string","description":"Current state of the job.","enum":["in_progress","success","failure"]},"type":{"type":"string","description":"Kind of index change.","enum":["create_index","update_index","delete_index"]},"indexId":{"type":"string","description":"Index id."},"message":{"type":"string","description":"Text recorded when the job started."},"response":{"type":"string","description":"Result text recorded when the job finishes."},"metadata":{"$ref":"#/components/schemas/ResourceMetadata"}}},"ResourceMetadata":{"type":"object","description":"Version and timestamps for a stored resource.","properties":{"version":{"type":"integer","description":"Stored version. The first version is 1."},"createdAt":{"type":"string","format":"date-time","description":"Time when the resource was created."},"modifiedAt":{"type":"string","format":"date-time","description":"Time when the resource was last modified."}}},"ErrorMessageFault":{"type":"object","description":"Authorization error returned by the API gateway.","properties":{"fault":{"type":"object","properties":{"faultstring":{"type":"string","description":"Authorization failure."},"detail":{"type":"object","properties":{"errorcode":{"type":"string","description":"Gateway error code."}}}}}}},"ErrorMessage":{"type":"object","description":"Error returned for a failed request.","properties":{"code":{"type":"integer","description":"HTTP status code."},"status":{"type":"string","description":"HTTP status code as text."},"message":{"type":"string","description":"Explanation of the failure."},"details":{"type":"array","description":"Field-level or scope-level messages, when the failure has more than one part.","items":{"type":"object","properties":{"message":{"type":"string","description":"One part of the failure."}}}}}}},"responses":{"401_resp_common":{"description":"The authorization token is invalid or has expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessageFault"}}}},"403_search_read":{"description":"The access token does not include `search.search_read`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"500_resp_common":{"description":"A server-side error occurred.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}}}},"paths":{"/search/{tenant}/jobs/{id}":{"get":{"summary":"Retrieving an index job","operationId":"GET-search-tenant-jobs-id","tags":["Index Jobs"],"description":"![Preview](https://res.cloudinary.com/saas-ag/image/upload/v1752824268/emporix/icons/preview_api1.png)\n\n{% hint style=\"danger\" %}\nThis functionality is in preview mode - some of the features may not be fully operational yet.\n{% endhint %}\n\nRetrieves one index job.","parameters":[{"$ref":"#/components/parameters/query_fields_job"}],"responses":{"200":{"description":"The job exists.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IndexJob"}}}},"401":{"$ref":"#/components/responses/401_resp_common"},"403":{"$ref":"#/components/responses/403_search_read"},"404":{"description":"No job with this id exists.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"500":{"$ref":"#/components/responses/500_resp_common"}}}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://developer.emporix.io/api-references/readme/api-reference-33/index-jobs.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
