POST
/
v2
/
workspaces
/
{workspace_id}
/
peers
/
{peer_id}
/
chat
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 response = await client.workspaces.peers.chat('workspace_id', 'peer_id', { queries: 'string' });

console.log(response.content);
{
  "content": "<string>"
}

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

peer_id
string
required

ID of the peer

Body

application/json

Dialectic Endpoint Parameters

Response

200
application/json

Response to a question informed by Honcho's User Representation

The response is of type object.