POST
/
v2
/
workspaces
/
{workspace_id}
/
peers
/
{peer_id}
/
chat
JavaScript
import Honcho from '@honcho-ai/core';

const client = new Honcho({
  apiKey: 'My API Key',
});

const response = await client.workspaces.peers.chat('workspace_id', 'peer_id', { query: 'x' });

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

query
string
required

Dialectic API Prompt

Required string length: 1 - 10000
session_id
string | null

ID of the session to scope the representation to

target
string | null

Optional peer to get the representation for, from the perspective of this peer

stream
boolean
default:false

Response

Response to a question informed by Honcho's User Representation

content
string
required