GET
/
retrieve_user_memory
curl --request GET \
  --url https://api.usecortex.ai/retrieve_user_memory \
  --header 'Authorization: Bearer <token>'
[
  {}
]

Searches and retrieves relevant AI memories based on a query.

Sample Request

curl --location 'https://api.usecortex.ai/retrieve_user_memory?query={QUERY}&max_count={MAX_COUNT}' \
  --header 'Authorization: Bearer {API_KEY}' \
  --header 'accept: application/json'

🔐 Headers

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

🧾 Query Parameters

  • query (string, required): Search query to find relevant memories
  • max_count (integer, optional): Maximum number of memories to return

📋 Functionality

  • Takes a query and max_count from request parameters
  • Performs semantic search through existing echo memories using the query
  • Returns the most relevant memories up to the specified max_count
  • Uses plan-independent querying to find matching memories
  • Returns empty list on errors

📤 Response

Returns an array of relevant echo memory objects matching the search query.

Authorizations

Authorization
string
header
required

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

Query Parameters

query
string
required

Search query to find relevant memories

max_count
integer

Maximum number of memories to return

Response

200 - application/json

Relevant memories returned successfully

The response is of type object[].

GET
/
retrieve_user_memory
curl --request GET \
  --url https://api.usecortex.ai/retrieve_user_memory \
  --header 'Authorization: Bearer <token>'
[
  {}
]

Searches and retrieves relevant AI memories based on a query.

Sample Request

curl --location 'https://api.usecortex.ai/retrieve_user_memory?query={QUERY}&max_count={MAX_COUNT}' \
  --header 'Authorization: Bearer {API_KEY}' \
  --header 'accept: application/json'

🔐 Headers

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

🧾 Query Parameters

  • query (string, required): Search query to find relevant memories
  • max_count (integer, optional): Maximum number of memories to return

📋 Functionality

  • Takes a query and max_count from request parameters
  • Performs semantic search through existing echo memories using the query
  • Returns the most relevant memories up to the specified max_count
  • Uses plan-independent querying to find matching memories
  • Returns empty list on errors

📤 Response

Returns an array of relevant echo memory objects matching the search query.

Authorizations

Authorization
string
header
required

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

Query Parameters

query
string
required

Search query to find relevant memories

max_count
integer

Maximum number of memories to return

Response

200 - application/json

Relevant memories returned successfully

The response is of type object[].