Skip to main content
POST
Upload File

Overview

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

Authorization

string
required
Your Personal AI API key

Headers

string
required
Must be set to application/json

Query Params

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

File

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

Body

string
Title of the uploaded document
Example Request
string
ISO timestamp string indicating start time (UTC). Defaults to current time.
Example Request
string
ISO timestamp string indicating end time (UTC). Defaults to current time.
Example Request
string
Comma delimited list of tags for context and reference
Example Request
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

string
Success or error message
Example Success Response
Example Error Response

Example cURL

cURL

Error Codes