Skip to content
Judgment Labs
Esc
↑↓navigate↵open⌘Jpreview

Search memory files

Search project memory files by path and body. Returns file references and snippets; fetch files by result ID or path for full bodies.

POST/v1/projects/{projectId}/memory/search
Authorization
AuthorizationPersonal API key · headerrequired

Your personal API key from Settings > Personal API Keys, sent as Bearer <key>.

X-Organization-IdOrganization ID · headerrequired

The organization to act in. Copy it with Copy organization ID in the organization menu or the settings sidebar.

Path parameters
projectIdstringrequired
Request body
requiredapplication/json
querystringrequired

Search keywords or a memory file path to look up

min length 1
limitinteger

Maximum number of memory search results to return

max 20
Responses
200

Response for status 200

resultsobject[]required
Show properties
Array of object
idstringrequired
namestringrequired
created_atstringrequired
updated_atstringrequired
matchstringrequired
Allowed:namebody
snippetstringrequired
Try it
Server
Authorization
Parameters
Bodyapplication/json
Request
curl -X POST 'https://api.judgmentlabs.ai/v1/projects/YOUR_PROJECT_ID/memory/search' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'X-Organization-Id: YOUR_ORGANIZATION_ID' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "query": "string",
  "limit": 1
}'
Response
{
  "results": [
    {
      "id": "string",
      "name": "string",
      "created_at": "string",
      "updated_at": "string",
      "match": "name",
      "snippet": "string"
    }
  ]
}

Was this page helpful?