Skip to main content
POST
/
v2
/
workspaces
/
{workspace_id}
/
peers
/
{peer_id}
/
search
Search Peer
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": {}
  }
]

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 peer

Body

application/json

Message search parameters

query
string
required

Search query

filters
Filters · object

Filters to scope the search

limit
integer
default:10

Number of results to return

Required range: 1 <= x <= 100

Response

Successful Response

id
string
required
content
string
required
peer_id
string
required
session_id
string
required
created_at
string<date-time>
required
workspace_id
string
required
token_count
integer
required
metadata
Metadata · object