Unify and manage your data

Get job status and result

Learn more about get job status and result.

Use the Get job status and result to get the status and result of a job. This lets you retrieve a job's full status and result in one call.

HTTP method and endpoint

Use the following HTTP method and endpoint path to get job status and result.

GET {TenantURL}/ai/agentflow/api/v202605/{tenant_id}/lrt/jobs/{job_id}

The following table describes the endpoint path parameters.

ParameterTypeRequiredDescription
TenantURLStringYesThe base URL for your tenant.
job_idStringYesThe unique identifier of the LRT job.
tenant_idStringYesThe tenant identifier.

Request headers

The following request headers must be included.

HeaderValueRequired
Authorization<access_token>Yes

Request body

This operation does not require a request body.

Example request

Use the following example to see how a complete request is structured, with headers.

GET {TenantURL}/ai/agentflow/api/v202605/tenant-xyz/lrt/jobs/example-id
Authorization: <access_token>

Response body

The following table describes the fields returned in the response body.

ParameterTypeDescription
job_idStringThe unique identifier of the LRT job.
tenant_idStringThe unique identifier of the tenant.
agent_idStringThe unique identifier of the agent that the job or schedule runs.
nameStringThe display name.
titleStringThe title of the conversation.
queryStringThe prompt or query that was submitted for execution.
statusStringThe status of the job.
next_run_atStringThe date and time when the job is next queued to run.
last_run_atStringThe date and time when the last run finished.
conversation_idStringThe unique identifier of the conversation that the job created.
bulk_uploadBooleanWhether the job runs as a bulk file-upload job.
file_idsArrayThe unique identifiers of the files attached to this job.
filesArrayThe details of each attached file (ID, name, extension, size, record count, and upload time).
resultObjectThe execution result details, when available.
last_errorStringThe most recent error for the job, if any.
created_atStringThe date and time when the job or schedule was created.
updated_atStringThe date and time when the record was last updated.

Example response

The following example shows a response with successful response.

{
  "job_id": "0b4720e4-0b1c-41f7-9b53-0ebc907f45f8",
  "tenant_id": "tenant-xyz",
  "agent_id": "MRA",
  "name": "Manual LRT entity processing",
  "title": "Process pending entities",
  "query": "<string>",
  "status": "running",
  "next_run_at": "<string>",
  "last_run_at": "<string>",
  "conversation_id": "<string>",
  "bulk_upload": false,
  "file_ids": "<value>",
  "files": "<value>",
  "result": "<value>",
  "last_error": "<string>",
  "created_at": "<string>",
  "updated_at": "<string>"
}

The following table lists the possible error responses returned by this API.

HTTP statusDescriptionRecommended action
422 Unprocessable EntityValidation ErrorReview the request parameters or body, correct the invalid values, and resend the request.