---
title: "Add File"
method: POST
path: "/v1/add_file"
tags: ["Memory"]
---

# Add File

`POST /v1/add_file`

## Request

- Base URL: `https://mengram.io` (the document declares no server; this is the origin it was published from)
- URL: `https://mengram.io/v1/add_file`
- Auth: none declared. Required headers: `authorization`

Upload a file (PDF, DOCX, TXT, MD) and extract structured memories.

PDF files use premium two-pass GPT-5.4 vision extraction.
Each page/chunk counts as 1 add from your quota.
Returns immediately with job_id; processes in background.

## Headers

- `authorization` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

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