curl --request POST \
--url https://versuno.ai/api/public/memory/sync \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"source": "claude-code",
"memories": [
{
"location": {
"path": "~/.claude/projects/app/memory/stack-db.md",
"section_anchor": null
},
"content": "The project database is Postgres (Supabase).",
"content_hash": "sha256:0f2b1c9d4e",
"canonical": "stack-db",
"summary": null,
"type_hint": "fact",
"wikilinks": []
}
]
}
'import requests
url = "https://versuno.ai/api/public/memory/sync"
payload = {
"source": "claude-code",
"memories": [
{
"location": {
"path": "~/.claude/projects/app/memory/stack-db.md",
"section_anchor": None
},
"content": "The project database is Postgres (Supabase).",
"content_hash": "sha256:0f2b1c9d4e",
"canonical": "stack-db",
"summary": None,
"type_hint": "fact",
"wikilinks": []
}
]
}
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({
source: 'claude-code',
memories: [
{
location: {path: '~/.claude/projects/app/memory/stack-db.md', section_anchor: null},
content: 'The project database is Postgres (Supabase).',
content_hash: 'sha256:0f2b1c9d4e',
canonical: 'stack-db',
summary: null,
type_hint: 'fact',
wikilinks: []
}
]
})
};
fetch('https://versuno.ai/api/public/memory/sync', 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/sync"
payload := strings.NewReader("{\n \"source\": \"claude-code\",\n \"memories\": [\n {\n \"location\": {\n \"path\": \"~/.claude/projects/app/memory/stack-db.md\",\n \"section_anchor\": null\n },\n \"content\": \"The project database is Postgres (Supabase).\",\n \"content_hash\": \"sha256:0f2b1c9d4e\",\n \"canonical\": \"stack-db\",\n \"summary\": null,\n \"type_hint\": \"fact\",\n \"wikilinks\": []\n }\n ]\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/sync",
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([
'source' => 'claude-code',
'memories' => [
[
'location' => [
'path' => '~/.claude/projects/app/memory/stack-db.md',
'section_anchor' => null
],
'content' => 'The project database is Postgres (Supabase).',
'content_hash' => 'sha256:0f2b1c9d4e',
'canonical' => 'stack-db',
'summary' => null,
'type_hint' => 'fact',
'wikilinks' => [
]
]
]
]),
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/sync")
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 \"source\": \"claude-code\",\n \"memories\": [\n {\n \"location\": {\n \"path\": \"~/.claude/projects/app/memory/stack-db.md\",\n \"section_anchor\": null\n },\n \"content\": \"The project database is Postgres (Supabase).\",\n \"content_hash\": \"sha256:0f2b1c9d4e\",\n \"canonical\": \"stack-db\",\n \"summary\": null,\n \"type_hint\": \"fact\",\n \"wikilinks\": []\n }\n ]\n}"
response = http.request(request)
puts response.read_bodyHttpResponse<String> response = Unirest.post("https://versuno.ai/api/public/memory/sync")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"source\": \"claude-code\",\n \"memories\": [\n {\n \"location\": {\n \"path\": \"~/.claude/projects/app/memory/stack-db.md\",\n \"section_anchor\": null\n },\n \"content\": \"The project database is Postgres (Supabase).\",\n \"content_hash\": \"sha256:0f2b1c9d4e\",\n \"canonical\": \"stack-db\",\n \"summary\": null,\n \"type_hint\": \"fact\",\n \"wikilinks\": []\n }\n ]\n}")
.asString();using RestSharp;
var options = new RestClientOptions("https://versuno.ai/api/public/memory/sync");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("Authorization", "<api-key>");
request.AddJsonBody("{\n \"source\": \"claude-code\",\n \"memories\": [\n {\n \"location\": {\n \"path\": \"~/.claude/projects/app/memory/stack-db.md\",\n \"section_anchor\": null\n },\n \"content\": \"The project database is Postgres (Supabase).\",\n \"content_hash\": \"sha256:0f2b1c9d4e\",\n \"canonical\": \"stack-db\",\n \"summary\": null,\n \"type_hint\": \"fact\",\n \"wikilinks\": []\n }\n ]\n}", false);
var response = await client.PostAsync(request);
Console.WriteLine("{0}", response.Content);{
"new": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"content_hash": "<string>"
}
],
"updated": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"content_hash": "<string>"
}
],
"unchanged": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"content_hash": "<string>"
}
],
"conflicts": [
{}
]
}{
"error": "Wrong data: assetType is required"
}{
"error": "Invalid API key"
}Sync captured agent memory
Capture-only upload of an agent’s parsed memory. The server DIFFs each memory against prior captures by content_hash, embeds the new/changed ones, upserts them, then runs the dedup + contradiction funnel. Identical memories merge onto the existing belief; contradictions (and low-confidence matches) are returned in conflicts for resolution via /memory/resolve. Scoped to your API key’s account.
curl --request POST \
--url https://versuno.ai/api/public/memory/sync \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"source": "claude-code",
"memories": [
{
"location": {
"path": "~/.claude/projects/app/memory/stack-db.md",
"section_anchor": null
},
"content": "The project database is Postgres (Supabase).",
"content_hash": "sha256:0f2b1c9d4e",
"canonical": "stack-db",
"summary": null,
"type_hint": "fact",
"wikilinks": []
}
]
}
'import requests
url = "https://versuno.ai/api/public/memory/sync"
payload = {
"source": "claude-code",
"memories": [
{
"location": {
"path": "~/.claude/projects/app/memory/stack-db.md",
"section_anchor": None
},
"content": "The project database is Postgres (Supabase).",
"content_hash": "sha256:0f2b1c9d4e",
"canonical": "stack-db",
"summary": None,
"type_hint": "fact",
"wikilinks": []
}
]
}
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({
source: 'claude-code',
memories: [
{
location: {path: '~/.claude/projects/app/memory/stack-db.md', section_anchor: null},
content: 'The project database is Postgres (Supabase).',
content_hash: 'sha256:0f2b1c9d4e',
canonical: 'stack-db',
summary: null,
type_hint: 'fact',
wikilinks: []
}
]
})
};
fetch('https://versuno.ai/api/public/memory/sync', 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/sync"
payload := strings.NewReader("{\n \"source\": \"claude-code\",\n \"memories\": [\n {\n \"location\": {\n \"path\": \"~/.claude/projects/app/memory/stack-db.md\",\n \"section_anchor\": null\n },\n \"content\": \"The project database is Postgres (Supabase).\",\n \"content_hash\": \"sha256:0f2b1c9d4e\",\n \"canonical\": \"stack-db\",\n \"summary\": null,\n \"type_hint\": \"fact\",\n \"wikilinks\": []\n }\n ]\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/sync",
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([
'source' => 'claude-code',
'memories' => [
[
'location' => [
'path' => '~/.claude/projects/app/memory/stack-db.md',
'section_anchor' => null
],
'content' => 'The project database is Postgres (Supabase).',
'content_hash' => 'sha256:0f2b1c9d4e',
'canonical' => 'stack-db',
'summary' => null,
'type_hint' => 'fact',
'wikilinks' => [
]
]
]
]),
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/sync")
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 \"source\": \"claude-code\",\n \"memories\": [\n {\n \"location\": {\n \"path\": \"~/.claude/projects/app/memory/stack-db.md\",\n \"section_anchor\": null\n },\n \"content\": \"The project database is Postgres (Supabase).\",\n \"content_hash\": \"sha256:0f2b1c9d4e\",\n \"canonical\": \"stack-db\",\n \"summary\": null,\n \"type_hint\": \"fact\",\n \"wikilinks\": []\n }\n ]\n}"
response = http.request(request)
puts response.read_bodyHttpResponse<String> response = Unirest.post("https://versuno.ai/api/public/memory/sync")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"source\": \"claude-code\",\n \"memories\": [\n {\n \"location\": {\n \"path\": \"~/.claude/projects/app/memory/stack-db.md\",\n \"section_anchor\": null\n },\n \"content\": \"The project database is Postgres (Supabase).\",\n \"content_hash\": \"sha256:0f2b1c9d4e\",\n \"canonical\": \"stack-db\",\n \"summary\": null,\n \"type_hint\": \"fact\",\n \"wikilinks\": []\n }\n ]\n}")
.asString();using RestSharp;
var options = new RestClientOptions("https://versuno.ai/api/public/memory/sync");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("Authorization", "<api-key>");
request.AddJsonBody("{\n \"source\": \"claude-code\",\n \"memories\": [\n {\n \"location\": {\n \"path\": \"~/.claude/projects/app/memory/stack-db.md\",\n \"section_anchor\": null\n },\n \"content\": \"The project database is Postgres (Supabase).\",\n \"content_hash\": \"sha256:0f2b1c9d4e\",\n \"canonical\": \"stack-db\",\n \"summary\": null,\n \"type_hint\": \"fact\",\n \"wikilinks\": []\n }\n ]\n}", false);
var response = await client.PostAsync(request);
Console.WriteLine("{0}", response.Content);{
"new": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"content_hash": "<string>"
}
],
"updated": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"content_hash": "<string>"
}
],
"unchanged": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"content_hash": "<string>"
}
],
"conflicts": [
{}
]
}{
"error": "Wrong data: assetType is required"
}{
"error": "Invalid API key"
}Authorizations
Versuno API key. Must be prefixed with Bearer. Format: Bearer uk_live_...
Body
Channel the memory came through, e.g. claude-code, github-copilot, or codex.
"claude-code"
1000Hide child attributes
Hide child attributes
Hide child attributes
Hide child attributes
1"The project database is Postgres (Supabase)."
Caller-computed hash of the parsed memory; drives the idempotent DIFF.
"sha256:0f2b1c9d4e"
The memory's name / header / name frontmatter.
"stack-db"
null
fact, preference, episode, procedure "fact"
Claude wikilink targets (canonical names); materialized into edges.
[]Response
Per-memory sync outcome.
Contradictions / low-confidence matches surfaced for human resolution.
Was this page helpful?

