Recall memory
curl --request POST \
--url https://versuno.ai/api/public/memory/query \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"query": "what database does the project use?"
}
'import requests
url = "https://versuno.ai/api/public/memory/query"
payload = { "query": "what database does the project use?" }
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({query: 'what database does the project use?'})
};
fetch('https://versuno.ai/api/public/memory/query', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://versuno.ai/api/public/memory/query"
payload := strings.NewReader("{\n \"query\": \"what database does the project use?\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://versuno.ai/api/public/memory/query",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'query' => 'what database does the project use?'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}require 'uri'
require 'net/http'
url = URI("https://versuno.ai/api/public/memory/query")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"query\": \"what database does the project use?\"\n}"
response = http.request(request)
puts response.read_bodyHttpResponse<String> response = Unirest.post("https://versuno.ai/api/public/memory/query")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"query\": \"what database does the project use?\"\n}")
.asString();using RestSharp;
var options = new RestClientOptions("https://versuno.ai/api/public/memory/query");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("Authorization", "<api-key>");
request.AddJsonBody("{\n \"query\": \"what database does the project use?\"\n}", false);
var response = await client.PostAsync(request);
Console.WriteLine("{0}", response.Content);{
"memories": [
{}
],
"edges": [
{
"from_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"to_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"relation": "wikilink"
}
]
}{
"error": "Wrong data: assetType is required"
}{
"error": "Invalid API key"
}Memory
Recall memory
Semantic (RAG) search over your active memory, scoped to your API key. Returns the most relevant memories ranked by similarity, plus the structural edges between them. Stale (superseded, or no longer in any source) memories are excluded.
POST
/
memory
/
query
Recall memory
curl --request POST \
--url https://versuno.ai/api/public/memory/query \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"query": "what database does the project use?"
}
'import requests
url = "https://versuno.ai/api/public/memory/query"
payload = { "query": "what database does the project use?" }
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({query: 'what database does the project use?'})
};
fetch('https://versuno.ai/api/public/memory/query', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://versuno.ai/api/public/memory/query"
payload := strings.NewReader("{\n \"query\": \"what database does the project use?\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://versuno.ai/api/public/memory/query",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'query' => 'what database does the project use?'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}require 'uri'
require 'net/http'
url = URI("https://versuno.ai/api/public/memory/query")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"query\": \"what database does the project use?\"\n}"
response = http.request(request)
puts response.read_bodyHttpResponse<String> response = Unirest.post("https://versuno.ai/api/public/memory/query")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"query\": \"what database does the project use?\"\n}")
.asString();using RestSharp;
var options = new RestClientOptions("https://versuno.ai/api/public/memory/query");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("Authorization", "<api-key>");
request.AddJsonBody("{\n \"query\": \"what database does the project use?\"\n}", false);
var response = await client.PostAsync(request);
Console.WriteLine("{0}", response.Content);{
"memories": [
{}
],
"edges": [
{
"from_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"to_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"relation": "wikilink"
}
]
}{
"error": "Wrong data: assetType is required"
}{
"error": "Invalid API key"
}Authorizations
Versuno API key. Must be prefixed with Bearer. Format: Bearer uk_live_...
Body
application/json
Was this page helpful?
⌘I

