Skip to main content
POST
Upload Document

Overview

API endpoint for uploading text documents to your memory. This allows you to add longer form content directly to your AI’s knowledge base.

Authorization

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

Headers

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

Body

Text
string
required
Body of text to upload to the memory. This should be as clean as possible.
Example Request
Title
string
Title of the uploaded document
Example Request
DomainName
string
required
The hyphenated text below the AI’s name when clicked into a Persona.DomainName
Example Request
Starttime
string
ISO timestamp string indicating start time (UTC)
Example Request
EndTime
string
ISO timestamp string indicating end time (UTC)
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. Defaults to true.
Example Request
Example

Exmaple Responses

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

Example cURL

cURL

Error Codes