POST
/
user_memory
/
add_user_memory
cURL
curl --request POST \
  --url https://api.usecortex.ai/user_memory/add_user_memory \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: <content-type>' \
  --header 'accept: <accept>'
{
  "success": true,
  "user_memory_added": true
}

Sample Request

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

📋 Functionality

  • Takes user memory content from request body
  • Extracts user context from Firebase token
  • Inserts the new user memory into the vector store
  • Returns confirmation of successful insertion
  • Handles errors and returns false on failure

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

user_memory
string
required

User memory to be added to their vector store

Response

200
application/json

Memory insertion result

The response is of type object.