Skip to main content
GET
/
{workspaceId}
/
projects
/
{projectName}
/
run
/
{runId}
/
result
runApiResult
import { IntunedClient } from "@intuned/client";

const intunedClient = new IntunedClient({
  workspaceId: "123e4567-e89b-12d3-a456-426614174000",
  apiKey: process.env["INTUNED_API_KEY"] ?? "",
});

async function run() {
  const result = await intunedClient.project.run.result("my-project", "aabbccddeeffggh");

  console.log(result);
}

run();
{
  "runId": "<string>",
  "status": "completed",
  "result": "<unknown>",
  "extendedPayloads": [
    {
      "api": "<string>",
      "runId": "<string>",
      "parameters": {
        "param1": "value1",
        "param2": 42,
        "param3": true
      }
    }
  ],
  "error": {
    "message": "An error occurred while executing the run",
    "category": "infrastructure",
    "code": "script-process-crashed",
    "retirable": false,
    "doc_url": "https://docs.intunedhq.com/docs/support/errors#run-execution-error",
    "correlation_id": "123e4567-e89b-12d3-a456-426614174000",
    "details": "<unknown>"
  },
  "message": "<string>",
  "reason": {
    "type": "auth-session-validate-dependency-failed",
    "message": "<string>",
    "doc_url": "https://docs.intunedhq.com/docs/support/reasons#terminated",
    "details": "<unknown>"
  }
}

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.

runId
string<nanoid>
required

Run ID

Response

200 - application/json

Run result with status and output data.

runId
string
required

Unique identifier for the run, nanoId of 21 characters

status
enum<string>
required

Status of the run execution

Available options:
pending,
started,
completed,
canceled,
failed
Example:

"completed"

result
any

Output result of the run execution

extendedPayloads
object[]

Extended payloads from the run execution

error
object
message
string

Error or reason message

reason
object