Skip to main content
POST
/
memory
Create a new memory
curl --request POST \
  --url https://api.cleartalk.ai/memory \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "name": "Customer Support Memory"
}
'
{
  "id": "1",
  "name": "Customer Support Memory",
  "created_at": "2024-01-01T00:00:00.000Z",
  "user_id": "1",
  "memory_duration": null,
  "uuid": "550e8400-e29b-41d4-a716-446655440000",
  "memory_cleartalk_id": "cleartalk_memory_123",
  "cleartalk_user_id": "cleartalk_user_123"
}

Authorizations

x-api-key
string
header
required

API Key for authentication

Body

application/json
name
string
required

The name for the new memory. Used to identify and organize your memories.

Example:

"Customer Support Memory"

Response

Memory created successfully

id
string
required

Unique identifier for the memory

Example:

"1"

name
string
required

Name of the memory

Example:

"Customer Support Memory"

created_at
string
required

ISO timestamp when the memory was created

Example:

"2024-01-01T00:00:00.000Z"

user_id
string
required

Unique identifier for the user who owns the memory

Example:

"1"

memory_duration
object
required

Duration setting for the memory (null indicates no duration limit)

Example:

null

uuid
string
required

UUID of the memory

Example:

"550e8400-e29b-41d4-a716-446655440000"

memory_cleartalk_id
string
required

cleartalk memory ID

Example:

"cleartalk_memory_123"

cleartalk_user_id
string
required

cleartalk user ID

Example:

"cleartalk_user_123"