POST
/
add_user_memory
curl --request POST \
  --url https://api.usecortex.ai/add_user_memory \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "content": "Remember to follow up on the Q1 budget proposal",
  "metadata": {
    "title": "Q1 Budget Follow-up",
    "type": "task"
  }
}'
true

Lets you add new AI memories for your users.

Sample Request

curl --location 'https://api.usecortex.ai/add_user_memory' \
  --header 'Authorization: Bearer {API_KEY}' \
  --header 'accept: application/json' \
  --header 'Content-Type: application/json' \
  --data '{
    "content": "{MEMORY_CONTENT}",
    "metadata": {
      "title": "{MEMORY_TITLE}",
      "type": "{MEMORY_TYPE}"
    }
  }'

🔐 Headers

  • Authorization: Bearer token (Firebase token)
  • accept: application/json
  • Content-Type: application/json

🧾 Body Parameters

  • content (string, required): The echo memory content to add
  • metadata (object, optional): Additional metadata for the memory
    • title (string, optional): Title for the memory
    • type (string, optional): Type classification for the memory

📋 Functionality

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

📤 Response

Returns a boolean indicating success (true) or failure (false) of the memory insertion.

Authorizations

Authorization
string
header
required

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

Body

application/json

Response

200 - application/json

Memory insertion result

Success (true) or failure (false) of the memory insertion

POST
/
add_user_memory
curl --request POST \
  --url https://api.usecortex.ai/add_user_memory \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "content": "Remember to follow up on the Q1 budget proposal",
  "metadata": {
    "title": "Q1 Budget Follow-up",
    "type": "task"
  }
}'
true

Lets you add new AI memories for your users.

Sample Request

curl --location 'https://api.usecortex.ai/add_user_memory' \
  --header 'Authorization: Bearer {API_KEY}' \
  --header 'accept: application/json' \
  --header 'Content-Type: application/json' \
  --data '{
    "content": "{MEMORY_CONTENT}",
    "metadata": {
      "title": "{MEMORY_TITLE}",
      "type": "{MEMORY_TYPE}"
    }
  }'

🔐 Headers

  • Authorization: Bearer token (Firebase token)
  • accept: application/json
  • Content-Type: application/json

🧾 Body Parameters

  • content (string, required): The echo memory content to add
  • metadata (object, optional): Additional metadata for the memory
    • title (string, optional): Title for the memory
    • type (string, optional): Type classification for the memory

📋 Functionality

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

📤 Response

Returns a boolean indicating success (true) or failure (false) of the memory insertion.

Authorizations

Authorization
string
header
required

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

Body

application/json

Response

200 - application/json

Memory insertion result

Success (true) or failure (false) of the memory insertion