Skip to content

Latest commit

 

History

History
84 lines (57 loc) · 6.49 KB

README.md

File metadata and controls

84 lines (57 loc) · 6.49 KB

ExecutionDetails

(executionDetails)

Overview

Execution details are used to track the execution of a workflow. They provided detailed information on the execution of a workflow, including the status of each step, the input and output of each step, and the overall status of the execution. https://docs.novu.co/activity-feed

Available Operations

retrieve

Get execution details

Example Usage

import { Novu } from "@novu/api";

const novu = new Novu({
  apiKey: "<YOUR_API_KEY_HERE>",
});

async function run() {
  const result = await novu.executionDetails.retrieve("<value>", "<value>");
  
  // Handle the result
  console.log(result)
}

run();

Standalone function

The standalone function version of this method:

import { NovuCore } from "@novu/api/core.js";
import { executionDetailsRetrieve } from "@novu/api/funcs/executionDetailsRetrieve.js";

// Use `NovuCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const novu = new NovuCore({
  apiKey: "<YOUR_API_KEY_HERE>",
});

async function run() {
  const res = await executionDetailsRetrieve(novu, "<value>", "<value>");

  if (!res.ok) {
    throw res.error;
  }

  const { value: result } = res;

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

run();

Parameters

Parameter Type Required Description
notificationId string ✔️ N/A
subscriberId string ✔️ N/A
options RequestOptions Used to set various options for making HTTP requests.
options.fetchOptions RequestInit Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed.
options.retries RetryConfig Enables retrying HTTP requests under certain failure conditions.

Response

Promise<components.ExecutionDetailsResponseDto[]>

Errors

Error Object Status Code Content Type
errors.SDKError 4xx-5xx /