v1

latestOpenAPI 3.0.3MIT2026-07-17241338.5 KB
Agents

Query agent memory

Queries the agent memory graph or grep index. Supports graph traversal, grep-style pattern matching, and semantic search strategies.

post/api/orgs/{org}/agents/memory/query

Path parameters

orgstring required
Example:default

Organization slug

Request body

querystring required

Natural language or pattern query

strategy'graph' | 'grep' | 'semantic' | 'auto'

Query strategy to use

topKinteger

Maximum number of results to return

Example request

{
  "query": "deployment failures in the auth module",
  "context": {
    "organizationRef": "default"
  }
}

Response

Memory query results

totalinteger
strategystring