Skip to main content
POST
/
memory
/
{id}
/
user
/
update
Update the metadata and summary information for a specific user within a memory
curl --request POST \
  --url https://api.cleartalk.ai/memory/{id}/user/update \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "phone_number": "+1234567890",
  "metadata": "25 year old customer from New York, interested in AI solutions",
  "summary": "The user had previously discussed their startup and had a follow-up conversation about AI.",
  "external_memory_key": "external_key_123"
}
'

Authorizations

x-api-key
string
header
required

API Key for authentication

Path Parameters

id
string
required

Body

application/json
phone_number
string
required

The phone number of the user to update within the memory.

Example:

"+1234567890"

metadata
string

Updated metadata to associate with this user. Can include any key-value pairs relevant to your use case.

Example:

"25 year old customer from New York, interested in AI solutions"

summary
string

Updated summary text for this user's interactions.

Example:

"The user had previously discussed their startup and had a follow-up conversation about AI."

external_memory_key
string

Optional external key for additional memory validation or cross-referencing.

Example:

"external_key_123"

Response

User memory data updated successfully