GET
/
user-memories
Python
from datagrid_ai import Datagrid

client = Datagrid(
    api_key="My API Key",
)
users = client.memory.user.list()
print(users.data)
{
  "object": "list",
  "data": [
    {
      "object": "user_memory",
      "id": "<string>",
      "updated_at": "<string>",
      "created_at": "<string>",
      "user_prompt": "<string>",
      "context": [
        "<string>"
      ],
      "agent_id": "<string>",
      "user_id": "<string>",
      "memory": [
        "<string>"
      ]
    }
  ],
  "has_more": true
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

limit
integer
default:20

The limit on the number of objects to return, ranging between 1 and 100.

Required range: 1 <= x <= 100
offset
integer
default:0

A cursor to use in pagination. offset is an integer that defines your place in the list. For example, if you make a list request and receive 100 objects, starting with obj_bar, your subsequent call can include offset=100 to fetch the next page of the list.

Required range: 0 <= x <= 100000

Response

200 - application/json

User memory list

object
enum<string>
required
Available options:
list
data
object[]
required

An array containing the actual response elements, paginated by any request parameters.

has_more
boolean

Whether or not there are more elements available after this set. If false, this set comprises the end of the list.