Chat Threads

Version: 1.0.0
chat/threads
superface

Retrieve chat threads in the workspace.

Get Threads

Retrieve list of threads from the whole workspace.

Workspace
Threads
Rate Limit

1. Install

npx @superfaceai/cli install chat/threads

2. Use in your code

const { SuperfaceClient } = require('@superfaceai/one-sdk');

const sdk = new SuperfaceClient();

async function run() {
  // Load the installed profile
  const profile = await sdk.getProfile('chat/threads');

  // Use the profile
  const result = await profile
    .getUseCase('GetThreads')
    .perform({
      workspace: 'workspace_id'
    });

  return result.unwrap();
}

run();

3. Add providers