Overview
The Memory API enables you to create text memories programmatically in your memory stack.
Authorization
Must be set to application/json
Body
Plain text memories to upload to your stack"My first memory with Personal AI"
Time (including timezone) of the memory. Defaults to current time if not specified."Wed, 28 Jul 2021 13:30:00 PDT"
The source or application of memory to help you recall where it is from
The formatted text that can be stored as it is"My <b>first</b> memory with Personal AI"
The hyphenated text below the AI’s name when clicked into a Persona.
Comma delimited list of tags for the memory
Example Responses
Type of response (memory)
Array containing the memory data
curl --location 'https://api.personal.ai/v1/memory' \
--header 'Content-Type: application/json' \
--header 'x-api-key: {{user_api_key}}' \
--data '{
"Text": "my cat is born in #2000",
"DomainName": "product-demo-jebzrhw",
"RawFeedText": "My <b>cat</b> is born in <b>2000</b>",
"CreatedTime": "Wed, 19 Sep 2023 13:31:00 PDT",
"SourceName": "Twitter",
"Tags": "pet,cat,meow two"
}'
{
"type": "memory",
"payload": [
{
"data": [
{
"type": "MEMORY",
"memlevel": "MEMBLOCK",
"memlabel": "my cat is born in #2000",
"start_time_utc": "2023-09-19T20:31:00.000+00:00",
"source": {
"type": "text",
"name": "Twitter"
},
"topics": [
{
"value": "pet"
},
{
"value": "cat"
},
{
"value": "meow two"
}
]
}
]
}
]
}