Update memory context data
curl --request POST \
--url https://platform-backend.getalchemystai.com/api/v1/context/memory/update \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"sessionId": "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": "Updated answer about the Scale plan pricing after discounts.",
"metadata": {
"messageId": "msg-2"
},
"role": "assistant",
"id": "msg-2",
"createdAt": "2025-01-10T12:36:00.000Z"
}
]
}
'{
"success": true,
"memory_id": "support-thread-TCK-1234",
"updated_entries": 2
}Endpoint examples
Update memory context data
This endpoint updates memory context data.
POST
/
api
/
v1
/
context
/
memory
/
update
Update memory context data
curl --request POST \
--url https://platform-backend.getalchemystai.com/api/v1/context/memory/update \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"sessionId": "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": "Updated answer about the Scale plan pricing after discounts.",
"metadata": {
"messageId": "msg-2"
},
"role": "assistant",
"id": "msg-2",
"createdAt": "2025-01-10T12:36:00.000Z"
}
]
}
'{
"success": true,
"memory_id": "support-thread-TCK-1234",
"updated_entries": 2
}Documentation Index
Fetch the complete documentation index at: https://getalchemystai.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
⌘I

