GET
/
{workspaceId}
/
projects
/
{projectName}
/
jobs
/
{jobId}
/
runs
Get Job Runs
curl --request GET \
  --url https://app.intuned.io/api/v1/workspace/{workspaceId}/projects/{projectName}/jobs/{jobId}/runs \
  --header 'x-api-key: <api-key>'
{
  "jobRuns": [
    {
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "start_time": "2024-01-01T00:00:00Z",
      "end_time": "2024-01-01T00:30:00Z",
      "workspace_id": "123e4567-e89b-12d3-a456-426614174000",
      "project_id": "123e4567-e89b-12d3-a456-426614174000",
      "job_id": "job-123e4567-e89b-12d3",
      "created_at": "2024-01-01T00:00:00Z",
      "updated_at": "2024-01-01T00:00:00Z",
      "type": "SCHEDULED",
      "status": "SUCCESS",
      "payloads": 100,
      "successful_runs": 95,
      "failed_runs": 5,
      "error": {
        "message": "An error occurred while executing the job",
        "code": "internal-server-error",
        "details": "<any>",
        "category": "billing",
        "correlationId": "123e4567-e89b-12d3-a456-426614174000",
        "retirable": false,
        "doc_url": "https://docs.intunedhq.com/docs/support/errors"
      },
      "reason": {
        "type": "terminated",
        "message": "<string>",
        "details": "<any>",
        "doc_url": "https://docs.intunedhq.com/docs/support/reasons#no-valid-output-received"
      }
    }
  ],
  "totalCount": 150
}

Authorizations

x-api-key
string
header
required

API Key used to authenticate your requests. How to create one.

Path Parameters

workspaceId
string<uuid>
required

Your workspace ID. How to find it?

projectName
string
required

Your project name. It is the name you provide when creating a project.

jobId
string
required

Your job ID. It is the ID of the job you provide when creating it.

Query Parameters

pageSize
string

Number of items per page (defaults to 10)

Example:

"10"

pageNumber
string

Page number for pagination (defaults to 0)

Example:

"0"

sortBy
string

Sorting parameter in format 'column,order/column2,order2'. Order can be 'asc' or 'desc'

Example:

"start_time,desc/status,asc"

Response

Array of job runs with pagination info

jobRuns
object[]
required
totalCount
integer
required

Total number of job runs available

Example:

150