Skip to main content
GET
/
v2
/
workspaces
/
{workspace_id}
/
peers
/
{peer_id}
/
card
JavaScript
import Honcho from '@honcho-ai/core';

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

const response = await client.workspaces.peers.card('workspace_id', 'peer_id');

console.log(response.peer_card);
{
  "peer_card": [
    "<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 observer peer

Query Parameters

target
string | null

The peer whose card to retrieve. If not provided, returns the observer's own card

Response

Successful Response

peer_card
string[] | null

The peer card content, or None if not found