Skip to main content
GET
/
users
/
{user_id}
/
memories
List memories
curl --request GET \
  --url https://api.spikelabs.com/v1/users/{user_id}/memories \
  --header 'Authorization: Bearer <token>'
{
  "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"
    }
  ],
  "has_more": true,
  "next_cursor": "<string>"
}

Authorizations

Authorization
string
header
required

API key authentication. Use your secret key (starts with sk_) as a Bearer token.

Path Parameters

user_id
string
required

User ID (starts with user_)

Query Parameters

personality_id
string

Filter by personality

category
enum<string>

Filter by category Category of memory

Available options:
personal,
location,
preference,
relationship,
schedule,
context,
custom
limit
integer
default:20

Number of items to return (1-100)

Required range: 1 <= x <= 100
cursor
string

Pagination cursor from previous response

Response

List of memories

data
object[]
required
has_more
boolean
required
next_cursor
string | null