Job

Manage Jobs

Listing available jobs

get

Retrieves agent jobs.

chevron-right
lockRequired scopes
This endpoint requires the following scopes:
  • : Needed to read AI agents.
Authorizations
OAuth2clientCredentialsRequired
Token URL:
Path parameters
tenantstringRequired

Your Emporix tenant name.

Note: The tenant name should always be provided in lowercase.

Query parameters
qstringOptional

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

See: Standard Practices - Query parameter

pageSizestringOptional

The number of documents to be retrieved per page.

pageNumberstringOptional

The page number to be retrieved. The size of the pages should be specified by the pageSize parameter.

sortstringOptional

List of properties used to sort the results, separated by colons.

fieldsstringOptional

Fields to be returned in the response.

Header parameters
X-Total-CountbooleanOptional

Flag indicating whether the total number of retrieved results should be returned.

Responses
chevron-right
200

List of available jobs.

application/json

Contains information about the job result - whether it was successful or not, what was the agent output etc.

idstringOptional

Unique identifier of the job.

agentTypestring · enumOptional

Type of the agent handling the request.

Possible values:
statusstring · enumOptional

Status of the job.

Possible values:
typestring · enumOptional

Type of the job.

Possible values:
sessionIdstringOptional

Unique identifier of the session.

agentIdstringOptional

Unique identifier of the agent.

messagestringOptional

Agent message.

commerceEventstringOptional

Commerce event which triggered the job.

get
/ai-service/{tenant}/jobs

Searching jobs

post

Searches for agent jobs based on the provided query.

chevron-right
lockRequired scopes
This endpoint requires the following scopes:
  • : Needed to read AI agents.
Authorizations
OAuth2clientCredentialsRequired
Token URL:
Path parameters
tenantstringRequired

Your Emporix tenant name.

Note: The tenant name should always be provided in lowercase.

Query parameters
pageSizestringOptional

The number of documents to be retrieved per page.

pageNumberstringOptional

The page number to be retrieved. The size of the pages should be specified by the pageSize parameter.

sortstringOptional

List of properties used to sort the results, separated by colons.

fieldsstringOptional

Fields to be returned in the response.

Header parameters
X-Total-CountbooleanOptional

Flag indicating whether the total number of retrieved results should be returned.

Body
qstringOptional

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

See: Standard Practices - Query parameter

Responses
chevron-right
200

List of available jobs.

application/json

Contains information about the job result - whether it was successful or not, what was the agent output etc.

idstringOptional

Unique identifier of the job.

agentTypestring · enumOptional

Type of the agent handling the request.

Possible values:
statusstring · enumOptional

Status of the job.

Possible values:
typestring · enumOptional

Type of the job.

Possible values:
sessionIdstringOptional

Unique identifier of the session.

agentIdstringOptional

Unique identifier of the agent.

messagestringOptional

Agent message.

commerceEventstringOptional

Commerce event which triggered the job.

post
/ai-service/{tenant}/jobs/search

Retrieving available job

get

Retrieves agent job by its ID.

chevron-right
lockRequired scopes
This endpoint requires the following scopes:
  • : Needed to read AI agents.
Authorizations
OAuth2clientCredentialsRequired
Token URL:
Path parameters
tenantstringRequired

Your Emporix tenant name.

Note: The tenant name should always be provided in lowercase.

jobIdstringRequired
Query parameters
fieldsstringOptional

Fields to be returned in the response.

Responses
chevron-right
200

A job details.

application/json

Contains information about the job result - whether it was successful or not, what was the agent output etc.

idstringOptional

Unique identifier of the job.

agentTypestring · enumOptional

Type of the agent handling the request.

Possible values:
statusstring · enumOptional

Status of the job.

Possible values:
typestring · enumOptional

Type of the job.

Possible values:
sessionIdstringOptional

Unique identifier of the session.

agentIdstringOptional

Unique identifier of the agent.

messagestringOptional

Agent message.

commerceEventstringOptional

Commerce event which triggered the job.

get
/ai-service/{tenant}/jobs/{jobId}

Deleting a job

delete

Deletes job by given ID.

chevron-right
lockRequired scopes
This endpoint requires the following scopes:
  • : Needed to manage AI agents.
Authorizations
OAuth2clientCredentialsRequired
Token URL:
Path parameters
tenantstringRequired

Your Emporix tenant name.

Note: The tenant name should always be provided in lowercase.

jobIdstringRequired
Responses
delete
/ai-service/{tenant}/jobs/{jobId}

No content

Last updated

Was this helpful?