Skip to main content
POST
/
{workspaceId}
/
projects
/
{projectName}
/
run
/
start
runApiStart
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.run.start("my-project", {
    parameters: {
      "param1": "value1",
      "param2": 42,
      "param3": true,
    },
    retry: {},
    api: "my-awesome-api",
  });

  console.log(result);
}

run();
{
  "runId": "<string>",
  "status": "pending"
}

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.

Body

application/json

Run API input schema

parameters
object
required

The parameters to be passed to the API.

Example:
{
"param1": "value1",
"param2": 42,
"param3": true
}
api
string
required

The name of the API to be executed. This is the file path relative to the api folder inside your project.

proxy
string<uri> | null

Proxy URL to be used for the API call. This is optional and can be used to route the API call through a proxy server.

Example:

"http://username:password@domain:port"

saveTrace
boolean
default:true
requestTimeout
integer
default:600

Timeout for the API request in seconds. Default is 10 minutes (600 seconds).

Example:

600

retry
object

Retry policy configurations in case of failure.

Example:
{ "maximumAttempts": 3 }
authSession
object

Auth session config to be used with the run. This is a required field if the auth session is enabled on the project. Runtime based auth session config to be used with the run. This is a required field if the auth session is enabled on the project and uses runtime input.

  • Runtime Based Auth Session Input
  • Credentials Based Auth Session Input
sink
object

Optional sink configuration for the run. Can be a webhook or S3 sink. Configuration for the webhook sink.

  • Webhook Sink Configuration
  • S3 Sink Configuration

Response

200 - application/json

Object with user data.

runId
string
required

Unique identifier for the run, nanoId of 21 characters

status
enum<string>
required
Available options:
pending