Javascript
import Honcho from '@honcho-ai/core'; const client = new Honcho({ apiKey: 'My API Key', }); const message = await client.workspaces.sessions.messages.retrieve( 'workspace_id', 'session_id', 'message_id', ); console.log(message.id);
{ "id": "<string>", "content": "<string>", "peer_id": "<string>", "session_id": "<string>", "metadata": {}, "created_at": "2023-11-07T05:31:56Z", "workspace_id": "<string>", "token_count": 123 }
Get a Message by ID
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
ID of the message to retrieve
Successful Response
The response is of type object.
object