---
title: "Search memories via Dify"
method: POST
path: "/api/v1/dify/search"
tags: ["dify"]
---

# Search memories via Dify

`POST /api/v1/dify/search`

Search memories in the space bound to this Dify integration

## Headers

- `authorization` string

## Request body

- DifySearchRequest — Search request model for Dify usage.
  - `query` string, required — Search query
  - `limit` integer, nullable — Maximum results
  - `filters` object, nullable — Optional filters
  - `workflow_id` string, nullable — Filter by workflow ID

## Response `200`

Successful Response

- DifySearchResponse — Search response model for Dify usage.
  - `memories` DifyMemoryResponse[], required
    - `id` string, required
    - `content` string, required
    - `tags` string[], nullable
    - `category` string, nullable
    - `importance` integer, nullable
    - `created_at` string, required
    - `space_name` string, required
    - `metadata` object, nullable
    - `relevance_score` number, nullable — Relevance score for search results
    - `workflow_id` string, nullable
    - `execution_id` string, nullable
  - `total_found` integer, required
  - `query` string, required
  - `filters_applied` object, nullable

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/memara/apis/memara-api.md) · [All operations](https://skmtc.net/memara/apis/memara-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/memara/memara-api/revisions/4dc7c4418845/schema)
