---
title: "Export a signed Memory Interchange Format (MIF) bundle"
method: POST
path: "/api/interchange/export"
tags: ["Interchange"]
---

# Export a signed Memory Interchange Format (MIF) bundle

`POST /api/interchange/export`

## Request

- Base URL: `http://localhost:38200`
- URL: `http://localhost:38200/api/interchange/export`
- Auth: one of:
  - HTTP bearer
  - API key in cookie `token`

Streams the caller's tenant contexts + context_links + context_chunks (optionally scoped to one workspace, optionally incremental via `since`) as a signed `.tar.gz` MIF bundle. Wire format: `docs/interchange/mif-spec.md`.

## Request body

- object
  - `workspace` string
  - `since` string, date-time

## Response `200`

The signed `.tar.gz` bundle. `X-Mif-Version` and `X-Mif-Cursor-Until` headers are also set on the response.

## Other responses

- `400`: Request body/query failed Zod validation.
- `401`: Missing/invalid credentials, or no resolvable tenant context.
- `404`: Requested workspace not found.

---

[API](https://skmtc.dev/contextq/apis/contextq-api.md) · [All operations](https://skmtc.dev/contextq/apis/contextq-api/llms.txt) · [OpenAPI document](https://skmtc.dev/contextq/apis/contextq-api/revisions/7afc44056a22?raw)
