cURL
curl --request POST \ --url https://api.example.com/api/profiles/{id}/memories \ --header 'Content-Type: application/json' \ --data ' { "content": "<string>", "type": "<string>", "importance": 123 } '
{ "memory": { "id": "mem-125", "content": "Customer has enterprise support contract", "type": "fact", "importance": 0.9, "decayFactor": 1.0, "createdAt": "2024-01-15T00:00:00Z", "lastAccessedAt": null } }
Manually add a memory to a profile
fact
preference
event
context
curl -X POST https://api.yourserver.com/api/profiles/user-123/memories \ -H "Authorization: Bearer gp_your_key" \ -H "Content-Type: application/json" \ -d '{ "content": "Customer has enterprise support contract", "type": "fact", "importance": 0.9 }'