Skip to main content
POST
/
api
/
Knowledge
/
recall
Retrieve Live Data and Document information
curl --request POST \
  --url https://app.recallio.ai/api/Knowledge/recall \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "query": "What is the listing with the highest taxe rate?",
  "userId": {
    "recallio_anon_id": "<string>",
    "user_id": "<string>",
    "user_hash": "<string>",
    "user_metadata": "<unknown>"
  },
  "projectId": "project_abc",
  "type": "listing,document",
  "chatHistory": [
    {
      "role": "<string>",
      "content": "<string>",
      "tool_calls": [
        {
          "id": "<string>",
          "type": "<string>",
          "function": {
            "name": "<string>",
            "arguments": "<string>"
          }
        }
      ],
      "tool_call_id": "<string>"
    }
  ]
}
'
[
  {
    "content": "<string>",
    "type": "<string>",
    "tags": [
      "<string>"
    ],
    "metadata": "<string>",
    "createdAt": "2023-11-07T05:31:56Z"
  }
]

Authorizations

Authorization
string
header
required

JWT Authorization header using the Bearer scheme. Example: "Authorization: Bearer {token}"

Body

query
string
required

Search query

Minimum string length: 1
Example:

"What is the listing with the highest taxe rate?"

userId
object
projectId
string | null

Project identifier to search knowledge within

Example:

"project_abc"

type
string | null

Type of knowledge to search for

Example:

"listing,document"

chatHistory
object[] | null

Response

OK

content
string | null
type
string | null
tags
string[] | null
metadata
string | null
createdAt
string<date-time>