GET
/
{workspaceId}
/
projects
/
{projectName}
/
queues
/
{queueId}
/
repeatItems
/
{itemId}
getRepeatQueueItem
import { IntunedClient } from "@intuned/client";

const intunedClient = new IntunedClient({
  apiKey: "<YOUR_API_KEY_HERE>",
  workspaceId: "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee",
});

async function run() {
  const result = await intunedClient.project.queues.repeatItems.one("my-project", "my-sample-queue", "22222222-2222-2222-2222-222222222222");

  // Handle the result
  console.log(result);
}

run();
{
  "id": "22222222-2222-2222-2222-222222222222",
  "lastRunId": "11111111-1111-1111-1111-111111111111",
  "repeat": "10m",
  "payload": {
    "apiName": "get-contracts",
    "parameters": {
      "page": 1,
      "isLastPage": false
    }
  }
}

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.

queueId
string
required

Your queue ID. It is the ID of the queue you provided when creating it.

itemId
string<uuid>
required

Repeat Item ID

Response

Queue repeatable item

Details of a repeatable item. An item that will be repeatably appended to the queue. An item to be appended once to the queue. A payload to be executed by the job

id
string
required

The ID of the repeatable item.

repeat
string<ms>
required

Repeat period, minimum of 10 minutes. On every period, this item will be appended to the queue.

apiName
string
required

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

lastRunId
string

The run ID of the last time this repeatable item executed.

parameters

The parameters to be passed to the API.

retry
object

Retry policy configurations