Skip to main content
POST
Upload documents to automatically extract and store memories from their content.

Request Parameters

file
required
Document file to process. Supported formats: PDF, DOCX, TXT, MD, HTML
string
Default category for extracted memories. One of: identity, career, interests, relationships, health, finance, learning, travel, productivity, private
string
default:"smart"
Extraction strategy. Options: comprehensive, smart, highlights, summary
number
default:"1000"
Maximum size of text chunks for processing (characters)
number
default:"200"
Overlap between chunks to maintain context
boolean
default:"true"
Whether to automatically categorize extracted memories
object
Additional metadata for the document

Response

string
Unique identifier for the file integration
string
Name of the uploaded file
number
Size of the uploaded file in bytes
string
Processing status: uploaded, processing, completed, error
object
Statistics about the extraction process
array
List of extracted memories (if processing is complete)
string
ISO 8601 timestamp when upload was initiated
string
ISO 8601 timestamp when processing completed

Extraction Modes

Extracts memories from all significant text passages, creating detailed memories for each section.
Uses AI to identify the most important passages and concepts, creating focused memories.
Extracts only key insights, findings, and actionable information.
Creates a single comprehensive memory summarizing the entire document.

Supported File Types

  • Text extraction from standard PDFs
  • OCR for scanned documents
  • Preserves page structure and formatting
  • Full text extraction
  • Maintains document structure
  • Extracts embedded content
  • Direct text processing
  • Markdown formatting recognition
  • Fast processing
  • Content extraction from HTML
  • Removes navigation and ads
  • Focuses on main content

Error Responses

object
Invalid file or parameters
object
File too large