🚀 Alchemyst is now the Pareto Frontier for AI Context! Learn more
cURL
curl --request POST \ --url https://platform-backend.getalchemystai.com/api/v1/context/memory/add \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "memoryId": "support-thread-TCK-1234", "contents": [ { "content": "Customer asked about pricing for the Scale plan.", "metadata": { "messageId": "msg-1" }, "role": "user", "id": "msg-1", "createdAt": "2025-01-10T12:34:56.000Z" }, { "content": "Explained the Scale plan pricing and shared the pricing page link.", "metadata": { "messageId": "msg-2" }, "role": "assistant", "id": "msg-2", "createdAt": "2025-01-10T12:35:30.000Z" } ] } '
This endpoint adds memory (chat history) as context.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
The ID of the memory
Array of content objects with additional properties allowed
Show child attributes
Memory context added successfully