Skip to main content
GET
/
{workspaceId}
/
projects
/
{projectName}
/
jobs
/
{jobId}
/
runs
/
{jobRunId}
getJobRun
import { IntunedClient } from "@intuned/client";

const intunedClient = new IntunedClient({
  workspaceId: "123e4567-e89b-12d3-a456-426614174000",
  apiKey: "<YOUR_API_KEY_HERE>",
});

async function run() {
  const result = await intunedClient.project.jobs.runs.one("my-project", "my-sample-job", "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee");

  console.log(result);
}

run();
{
  "jobRun": {
    "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"
    },
    "job_configuration_snapshot": {
      "configuration": {
        "retry": {
          "maximumAttempts": 3
        },
        "maxConcurrentRequests": 13,
        "requestTimeout": 600
      },
      "sink": {
        "type": "webhook",
        "url": "https://example.com/webhook",
        "headers": {
          "Content-Type": "application/json",
          "Authorization": "Bearer token"
        },
        "skipOnFail": false,
        "apisToSend": [
          "api1",
          "api2"
        ]
      },
      "auth_session": {
        "id": "auth-session-123"
      },
      "proxy": {
        "version": "v1",
        "url": "<string>"
      }
    }
  },
  "results": {
    "signed_url": "<string>",
    "signed_url_expiration": "<string>",
    "size": 123,
    "key": "<string>",
    "format": "<string>"
  }
}

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.

jobRunId
string<uuid>
required

The job run ID. This can be obtained from the get job runs endpoint or from the result of the trigger endpoint for a job.

Response

Job run information and results

jobRun
object
required
results
object