Skip to main content
POST
/
{workspaceId}
/
projects
/
{projectName}
/
jobs
createJob
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.jobs.create("my-project", {
    id: "my-awesome-job",
    payload: [
      {
        parameters: {
          "param1": "value1",
          "param2": 42,
          "param3": true,
        },
        apiName: "my-awesome-api",
      },
    ],
    configuration: {
      retry: {},
    },
  });

  console.log(result);
}

run();
{
  "id": "<string>",
  "message": "created"
}

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

Job creation input schema

id
string
required

The ID of the job. Has to be a valid URL slug.

Minimum string length: 7
Example:

"123e4567-e89b-12d3-a456-426614174000"

payload
object[]
required

Array of API calls to be executed

configuration
object
required

Job configuration settings

schedule
object

Schedule configurations for the job. If set, the job will periodically run according to this configuration. The configurations are used to calculate the closest next run time.

sink
Webhook Sink Configuration · object

Optional sink configuration for the job. Can be a webhook or S3 Compatible sink.

proxy
string | null

Proxy configuration for the job

Example:

"http://username:[email protected]:8080"

auth_session
object

Response

Job created successfully.

id
string
required

The ID of the created job.

message
enum<string>
required
Available options:
created