Javascript
import Honcho from '@honcho-ai/core'; const client = new Honcho({ apiKey: 'My API Key', }); const session = await client.workspaces.sessions.peers.add('workspace_id', 'session_id', { foo: {} }); console.log(session.id);
{ "id": "<string>", "is_active": true, "workspace_id": "<string>", "metadata": {}, "configuration": {}, "created_at": "2023-11-07T05:31:56Z" }
Add peers to a session
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
ID of the workspace
ID of the session
List of peer IDs to add to the session
Successful Response
The response is of type object.
object