GET
/
user_memory
/
list_user_memories
cURL
curl --request GET \
  --url https://api.usecortex.ai/user_memory/list_user_memories \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: <content-type>' \
  --header 'accept: <accept>'
{
  "success": true,
  "user_memories": [
    {
      "source_id": "<string>",
      "source_content": "<string>"
    }
  ]
}

📋 Functionality

  • Extracts user details from Firebase token (email, user_id, tenant_id, sub_tenant_id)
  • Fetches all user memories from the vector store using the combined tenant ID
  • Returns a simplified list containing source_id and source_content for each memory
  • Handles errors by returning false in the success field

Sample Request

curl --location 'https://api.usecortex.ai/user_memory/list_user_memories?tenant_id={TENANT_ID}&sub_tenant_id={SUB_TENANT_ID}' \
  --header 'Authorization: Bearer {API_KEY}' \
  --header 'accept: application/json' \
  --header 'Content-Type: application/json'

Authorizations

Authorization
string
header
required

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

Headers

Authorization
string
required

Bearer token (Firebase token)

Content-Type
string
default:application/json
required

Request content type

accept
string
default:application/json
required

Response content type

Query Parameters

tenant_id
string
required

Tenant identifier

sub_tenant_id
string
required

Sub-tenant identifier

Response

200
application/json

List of user memories returned successfully

The response is of type object.