curl --request POST \
--url https://api.thrindex.com/v1/memories/search \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"query": "How often does the user want emails?",
"agent_id": "support-agent",
"user_id": "user-42",
"k": 10,
"task_context": "Composing a notification preferences summary"
}
'{
"results": [
{
"id": "<string>",
"content": "<string>",
"agent_id": "<string>",
"user_id": "<string>",
"level": 123,
"status": "<string>",
"importance": 123,
"confidence": 123,
"score": 123,
"created_at": "2023-11-07T05:31:56Z"
}
],
"latency_ms": 123,
"cache_hit": true
}Return the most relevant memories for a natural-language query.
curl --request POST \
--url https://api.thrindex.com/v1/memories/search \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"query": "How often does the user want emails?",
"agent_id": "support-agent",
"user_id": "user-42",
"k": 10,
"task_context": "Composing a notification preferences summary"
}
'{
"results": [
{
"id": "<string>",
"content": "<string>",
"agent_id": "<string>",
"user_id": "<string>",
"level": 123,
"status": "<string>",
"importance": 123,
"confidence": 123,
"score": 123,
"created_at": "2023-11-07T05:31:56Z"
}
],
"latency_ms": 123,
"cache_hit": true
}ReturnsDocumentation Index
Fetch the complete documentation index at: https://docs.thrindex.com/llms.txt
Use this file to discover all available pages before exploring further.
200 with ranked results. Scope: memory:read.API key (mk_live_...) from the Thrindex dashboard.
20481 <= x <= 100Optional context to improve ranking for the current task.
Filter by memory level. Omit to search all levels.
0, 1, 2