---
title: "Create an export job with schema"
method: POST
path: "/v1/exports/"
tags: ["exports"]
---

# Create an export job with schema

`POST /v1/exports/`

Create a structured export of memories based on a provided schema.

## Request body

- object
  - `schema` object, required — Schema definition for the export
  - `filters` object — Filters to apply while exporting memories, using the structured AND/OR filter format (see `/v2/memories/search/`), e.g. `{"AND": [{"user_id": "<user_id>"}]}`. Available fields are: user_id, agent_id, app_id, run_id. Flat filter objects (e.g. `{"user_id": "<user_id>"}`) are rejected with a 400 error.
  - `org_id` string — Filter exports by organization ID.
  - `project_id` string — Filter exports by project ID.

## Response `201`

Export created successfully.

- object
  - `message` string, required
  - `id` string, uuid, required

## Other responses

- `400` — Bad Request.

---

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