Skip to main content

@wildix/wim-voicebots-client > ListTracesCommand

ListTracesCommand class

Signature:

export declare class ListTracesCommand extends ListTracesCommand_base 

Extends: ListTracesCommand_base

Example

Use a bare-bones client and the command you need to make an API call.

import { VoiceBotsClient, ListTracesCommand } from "@wildix/wim-voicebots-client"; // ES Modules import
// const { VoiceBotsClient, ListTracesCommand } = require("@wildix/wim-voicebots-client"); // CommonJS import
const client = new VoiceBotsClient(config);
const input = { // ListTracesInput
company: "STRING_VALUE",
};
const command = new ListTracesCommand(input);
const response = await client.send(command);
// { // ListTracesOutput
// traces: [ // TraceSessionsList // required
// { // TraceSession
// sessionId: "STRING_VALUE", // required
// connectionId: "STRING_VALUE", // required
// company: "STRING_VALUE", // required
// botId: "STRING_VALUE", // required
// botName: "STRING_VALUE", // required
// callId: "STRING_VALUE", // required
// flowIndex: Number("int"), // required
// language: "STRING_VALUE",
// callerName: "STRING_VALUE",
// callerNumber: "STRING_VALUE",
// status: "complete" || "complete_with_error" || "pending", // required
// start: Number("double"), // required
// duration: Number("int"),
// },
// ],
// };