cURL
curl --request POST \ --url https://api.personal.ai/v1/upload-file \ --header 'Content-Type: <content-type>' \ --header 'x-api-key: <x-api-key>' \ --data '{ "message_request": "<any>" }'
{ "Title": "<string>", "Starttime": "<string>", "EndTime": "<string>", "Tags": "<string>", "is_stack": true, "message": "<string>" }
Upload a file to your memory
{"DomainName": "product-demo-jebzrhw", "Title": "Uploaded Files"}
"Title": "My Document"
"Starttime": "2024-10-09T10:00:00.000Z"
"EndTime": "2024-10-10T10:00:00.000Z"
"Tags": "documents,developers,coding"
"is_stack": true
{ "message": "file accepted and processing" }
{ "detail": "AI memory api unauthorized." }
curl --location 'https://api.personal.ai/v1/upload-file?DomainName={DomainName}' \ --header 'x-api-key: <your-api-key>' \ --form 'file=@"/path/to/file.pdf"' \ --form 'message_request="{\"DomainName\": \"product-demo-jebzrhw\", \"Title\": \"My Document\"}"'