Skip to main content
POST
/
memory
/
save
Save a memory
curl --request POST \
  --url https://versuno.ai/api/public/memory/save \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "content": "The project uses pnpm, not npm."
}
'
import requests

url = "https://versuno.ai/api/public/memory/save"

payload = { "content": "The project uses pnpm, not npm." }
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({content: 'The project uses pnpm, not npm.'})
};

fetch('https://versuno.ai/api/public/memory/save', 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/save"

payload := strings.NewReader("{\n \"content\": \"The project uses pnpm, not npm.\"\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/save",
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([
'content' => 'The project uses pnpm, not npm.'
]),
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/save")

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 \"content\": \"The project uses pnpm, not npm.\"\n}"

response = http.request(request)
puts response.read_body
HttpResponse<String> response = Unirest.post("https://versuno.ai/api/public/memory/save")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"content\": \"The project uses pnpm, not npm.\"\n}")
.asString();
using RestSharp;


var options = new RestClientOptions("https://versuno.ai/api/public/memory/save");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("Authorization", "<api-key>");
request.AddJsonBody("{\n \"content\": \"The project uses pnpm, not npm.\"\n}", false);
var response = await client.PostAsync(request);

Console.WriteLine("{0}", response.Content);
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "conflict": {}
}
{
"error": "Wrong data: assetType is required"
}
{
"error": "Invalid API key"
}

Authorizations

Authorization
string
header
default:Bearer uk_live_your_api_key_here
required

Versuno API key. Must be prefixed with Bearer. Format: Bearer uk_live_...

Body

application/json
content
string
required
Minimum string length: 1
Example:

"The project uses pnpm, not npm."

canonical
string | null

Optional short title for the memory.

Example:

"package-manager"

summary
string | null
type_hint
enum<string> | null
Available options:
fact,
preference,
episode,
procedure
Example:

"fact"

source
string

Optional channel/app the agent is writing from. Defaults to mcp.

Example:

"claude-desktop"

location
string | null

Optional conversation/context id. No file backs an agent write.

Response

The write outcome.

id
string<uuid>
action
enum<string>

add = stored new; dedup = merged into an existing memory; conflict = stored but contradicts existing memory (resolve via /memory/resolve).

Available options:
add,
dedup,
conflict
conflict
object | null

Present only when action is conflict; the incoming memory plus the conflicting candidates.