curl --request POST \
--url https://api.cleartalk.ai/memory/{id}/add-user \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"phone_number": "+1234567890",
"metadata": "25 year old customer from New York",
"summary": "The user described their age and location",
"external_memory_key": "external_key_123"
}
'curl --request POST \
--url https://api.cleartalk.ai/memory/{id}/add-user \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"phone_number": "+1234567890",
"metadata": "25 year old customer from New York",
"summary": "The user described their age and location",
"external_memory_key": "external_key_123"
}
'API Key for authentication
The phone number of the user to add to the memory.
"+1234567890"
Custom metadata text to associate with this user in the memory.
"25 year old customer from New York"
Initial summary text for this user's interactions.
"The user described their age and location"
Optional external key for additional memory validation or cross-referencing.
"external_key_123"
User added to memory successfully