cURL
curl --request POST \ --url http://localhost:8000/v2/workspaces/{workspace_id}/peers/{peer_id}/search \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "query": "<string>", "filters": {}, "limit": 10 } '
[ { "id": "<string>", "content": "<string>", "peer_id": "<string>", "session_id": "<string>", "created_at": "2023-11-07T05:31:56Z", "workspace_id": "<string>", "token_count": 123, "metadata": {} } ]
Search a Peer
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
ID of the workspace
ID of the peer
Message search parameters
Search query
Filters to scope the search
Number of results to return
1 <= x <= 100
Successful Response