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.sessions.peers.getConfig('workspace_id', 'session_id', 'peer_id');console.log(response.observe_me);
Copy
{ "observe_others": false, "observe_me": true}
sessions
Get Peer Config
Get the configuration for a peer in a session
GET
/
v2
/
workspaces
/
{workspace_id}
/
sessions
/
{session_id}
/
peers
/
{peer_id}
/
config
JavaScript
Copy
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.sessions.peers.getConfig('workspace_id', 'session_id', 'peer_id');console.log(response.observe_me);