Skip to main content
POST
Upload File

Overview

API endpoint for uploading files (PDF, DOCX, etc.) to your Personal AI memory.

Authorization

x-api-key
string
required
Your Personal AI API key

Headers

Content-Type
string
required
Must be set to application/json

Query Params

DomainName
string
required
The hyphenated text below the AI’s name when clicked into a Persona.DomainName

File

file
File
required
The file to be uploaded
message_request
JSON
required
A JSON-encoded string containing additional request parameters
Example message_request

Body

Title
string
Title of the uploaded document
Example Request
Starttime
string
ISO timestamp string indicating start time (UTC). Defaults to current time.
Example Request
EndTime
string
ISO timestamp string indicating end time (UTC). Defaults to current time.
Example Request
Tags
string
Comma delimited list of tags for context and reference
Example Request
is_stack
boolean
Boolean to specify whether to add the document to memory. If false, upload shows up as draft in Documents. Defaults to true.
Example Request

Example Responses

message
string
Success or error message
Example Success Response
Example Error Response

Example cURL

cURL

Error Codes