---
search:
  tags:
    - V1
    - POST
seo:
  description: >-
    Search project memory files by path and body. Returns file… Reference for
    the POST /v1/projects/{projectId}/memory/search endpoint in the Judgeval
    API.
sidebar:
  label: Search memory files
  badge: POST
title: Search memory files
type: openapi-operation
---
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`

**Request body** (`application/json`, required)

- `query` (string, required) — Search keywords or a memory file path to look up
- `limit` (integer) — Maximum number of memory search results to return

Request body example:

```json
{
  "query": "string",
  "limit": 1
}
```

**Responses**

- `200` — Response for status 200

Response example, 200:

```json
{
  "results": [
    {
      "id": "string",
      "name": "string",
      "created_at": "string",
      "updated_at": "string",
      "match": "name",
      "snippet": "string"
    }
  ]
}
```
