Personal AI APIs
Upload Document
Upload a text document to your memory
POST
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.
Headers
Must be set to application/json
Your Personal AI API key
Body
Body of text to upload to the memory. This should be as clean as possible.
Example Request
Title of the uploaded document
Example Request
Domain name of AI Persona to upload to
Example Request
ISO timestamp string indicating start time (UTC)
Example Request
ISO timestamp string indicating end time (UTC)
Example Request
Comma delimited list of tags for context and reference
Example Request
Boolean to specify whether to add the document to memory. Defaults to true.
Example Request
Example
Exmaple Responses
Success or error message
Example Success Response
Example Error Response
Example cURL
cURL
Error Codes
Code | Description |
---|---|
503 | Authorization Failure - API key is invalid |
400 | Invalid Request - Missing required fields or invalid format |