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

# Store memory via Dify

`POST /api/v1/dify/memories`

Create a new memory in the space bound to this Dify integration

## Headers

- `authorization` string

## Request body

- DifyMemoryCreate — Memory creation model optimized for Dify workflows.
  - `content` string, required — Memory content
  - `tags` string[], nullable — Memory tags
  - `category` string, nullable — Memory category
  - `importance` integer, nullable — Importance (1-10)
  - `source` string, nullable — Source identifier
  - `metadata` object, nullable — Additional metadata
  - `workflow_id` string, nullable — Dify workflow ID
  - `execution_id` string, nullable — Dify workflow run / execution identifier

## Response `201`

Successful Response

- DifyMemoryResponse — Response model for Dify memory operations.
  - `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

## 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)
