curl --request POST \
--url https://api.spikelabs.com/v1/users/{user_id}/memories/bulk \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"personality_id": "<string>",
"memories": [
{
"content": "<string>",
"category": "personal"
}
]
}
'{
"created_count": 123,
"data": [
{
"id": "mem_abc123",
"object": "memory",
"user_id": "<string>",
"personality_id": "<string>",
"content": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"category": "personal",
"confidence": 0.5,
"source": {
"type": "conversation",
"conversation_id": "<string>",
"extracted_from": "<string>"
},
"last_used_at": "2023-11-07T05:31:56Z"
}
]
}Create multiple memories at once.
curl --request POST \
--url https://api.spikelabs.com/v1/users/{user_id}/memories/bulk \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"personality_id": "<string>",
"memories": [
{
"content": "<string>",
"category": "personal"
}
]
}
'{
"created_count": 123,
"data": [
{
"id": "mem_abc123",
"object": "memory",
"user_id": "<string>",
"personality_id": "<string>",
"content": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"category": "personal",
"confidence": 0.5,
"source": {
"type": "conversation",
"conversation_id": "<string>",
"extracted_from": "<string>"
},
"last_used_at": "2023-11-07T05:31:56Z"
}
]
}API key authentication. Use your secret key (starts with sk_) as a Bearer token.
User ID (starts with user_)
Personality to associate memories with
Memories created
Show child attributes
Unique identifier
"mem_abc123"
memory User this memory belongs to
Personality this memory is scoped to
The memory content
Category of memory
personal, location, preference, relationship, schedule, context, custom Confidence score (1.0 for manually created)
0 <= x <= 1Last time this memory was retrieved in a conversation