GET
/
v2
/
workspaces
/
{workspace_id}
/
sessions
/
{session_id}
/
clone
import Honcho from '@honcho-ai/core';

const client = new Honcho({
  apiKey: process.env['HONCHO_API_KEY'], // This is the default and can be omitted
});

const session = await client.workspaces.sessions.clone('workspace_id', 'session_id');

console.log(session.id);
{
  "id": "<string>",
  "is_active": true,
  "workspace_id": "<string>",
  "metadata": {},
  "configuration": {},
  "created_at": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

workspace_id
string
required

ID of the workspace

session_id
string
required

ID of the session to clone

Query Parameters

message_id
string | null

Message ID to cut off the clone at

Response

200
application/json

Successful Response

The response is of type object.