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

string
required
Your Personal AI API key

Headers

string
required
Must be set to application/json

Body

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

Exmaple Responses

string
Success or error message
Example Success Response
Example Error Response

Example cURL

cURL

Error Codes