curl --request POST \
--url https://api.conare.ai/api/v1/memories \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"endUserId": "u_123",
"content": "User prefers smaller islands, wants to avoid crowds. ASA 104 certified.",
"containerTag": "profile",
"metadata": {
"source": "chat"
}
}
'import requests
url = "https://api.conare.ai/api/v1/memories"
payload = {
"endUserId": "u_123",
"content": "User prefers smaller islands, wants to avoid crowds. ASA 104 certified.",
"containerTag": "profile",
"metadata": { "source": "chat" }
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
endUserId: 'u_123',
content: 'User prefers smaller islands, wants to avoid crowds. ASA 104 certified.',
containerTag: 'profile',
metadata: {source: 'chat'}
})
};
fetch('https://api.conare.ai/api/v1/memories', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.conare.ai/api/v1/memories",
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([
'endUserId' => 'u_123',
'content' => 'User prefers smaller islands, wants to avoid crowds. ASA 104 certified.',
'containerTag' => 'profile',
'metadata' => [
'source' => 'chat'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.conare.ai/api/v1/memories"
payload := strings.NewReader("{\n \"endUserId\": \"u_123\",\n \"content\": \"User prefers smaller islands, wants to avoid crowds. ASA 104 certified.\",\n \"containerTag\": \"profile\",\n \"metadata\": {\n \"source\": \"chat\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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))
}HttpResponse<String> response = Unirest.post("https://api.conare.ai/api/v1/memories")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"endUserId\": \"u_123\",\n \"content\": \"User prefers smaller islands, wants to avoid crowds. ASA 104 certified.\",\n \"containerTag\": \"profile\",\n \"metadata\": {\n \"source\": \"chat\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.conare.ai/api/v1/memories")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"endUserId\": \"u_123\",\n \"content\": \"User prefers smaller islands, wants to avoid crowds. ASA 104 certified.\",\n \"containerTag\": \"profile\",\n \"metadata\": {\n \"source\": \"chat\"\n }\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"memory": {
"id": "<string>",
"content": "<string>",
"container_tag": "<string>",
"created_at": 123,
"updated_at": 123,
"metadata": {}
},
"deduped": true,
"created": true
}{
"statusCode": 123,
"code": "<string>",
"message": "<string>",
"requestId": "<string>",
"details": {}
}{
"statusCode": 123,
"code": "<string>",
"message": "<string>",
"requestId": "<string>",
"details": {}
}{
"statusCode": 123,
"code": "<string>",
"message": "<string>",
"requestId": "<string>",
"details": {}
}{
"statusCode": 123,
"code": "<string>",
"message": "<string>",
"requestId": "<string>",
"details": {}
}{
"statusCode": 123,
"code": "<string>",
"message": "<string>",
"requestId": "<string>",
"details": {}
}Save a memory
Save one distilled observation — a sentence or a paragraph, not raw event logs — to the end user’s memory.
Good save triggers: the user states a preference, goal, or constraint;
completes or abandons something meaningful; a conversation ends.
Saving identical content twice is a no-op (deduped: true).
curl --request POST \
--url https://api.conare.ai/api/v1/memories \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"endUserId": "u_123",
"content": "User prefers smaller islands, wants to avoid crowds. ASA 104 certified.",
"containerTag": "profile",
"metadata": {
"source": "chat"
}
}
'import requests
url = "https://api.conare.ai/api/v1/memories"
payload = {
"endUserId": "u_123",
"content": "User prefers smaller islands, wants to avoid crowds. ASA 104 certified.",
"containerTag": "profile",
"metadata": { "source": "chat" }
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
endUserId: 'u_123',
content: 'User prefers smaller islands, wants to avoid crowds. ASA 104 certified.',
containerTag: 'profile',
metadata: {source: 'chat'}
})
};
fetch('https://api.conare.ai/api/v1/memories', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.conare.ai/api/v1/memories",
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([
'endUserId' => 'u_123',
'content' => 'User prefers smaller islands, wants to avoid crowds. ASA 104 certified.',
'containerTag' => 'profile',
'metadata' => [
'source' => 'chat'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.conare.ai/api/v1/memories"
payload := strings.NewReader("{\n \"endUserId\": \"u_123\",\n \"content\": \"User prefers smaller islands, wants to avoid crowds. ASA 104 certified.\",\n \"containerTag\": \"profile\",\n \"metadata\": {\n \"source\": \"chat\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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))
}HttpResponse<String> response = Unirest.post("https://api.conare.ai/api/v1/memories")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"endUserId\": \"u_123\",\n \"content\": \"User prefers smaller islands, wants to avoid crowds. ASA 104 certified.\",\n \"containerTag\": \"profile\",\n \"metadata\": {\n \"source\": \"chat\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.conare.ai/api/v1/memories")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"endUserId\": \"u_123\",\n \"content\": \"User prefers smaller islands, wants to avoid crowds. ASA 104 certified.\",\n \"containerTag\": \"profile\",\n \"metadata\": {\n \"source\": \"chat\"\n }\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"memory": {
"id": "<string>",
"content": "<string>",
"container_tag": "<string>",
"created_at": 123,
"updated_at": 123,
"metadata": {}
},
"deduped": true,
"created": true
}{
"statusCode": 123,
"code": "<string>",
"message": "<string>",
"requestId": "<string>",
"details": {}
}{
"statusCode": 123,
"code": "<string>",
"message": "<string>",
"requestId": "<string>",
"details": {}
}{
"statusCode": 123,
"code": "<string>",
"message": "<string>",
"requestId": "<string>",
"details": {}
}{
"statusCode": 123,
"code": "<string>",
"message": "<string>",
"requestId": "<string>",
"details": {}
}{
"statusCode": 123,
"code": "<string>",
"message": "<string>",
"requestId": "<string>",
"details": {}
}Authorizations
A scoped Integration key, prefixed cint_. Send as
Authorization: Bearer cint_... on every request. Server-side only.
Legacy personal cmem_... keys remain accepted during migration;
team/org-scoped cmem_... keys are not valid on this API.
Body
Your stable internal user ID. No colon allowed.
1 - 128^[A-Za-z0-9@._-]{1,128}$"u_123"
The distilled observation to remember.
1"User prefers smaller islands, wants to avoid crowds."
Optional free-form grouping label (e.g. "profile", "sessions").
Omit and everything goes to "default".
"profile"
Optional arbitrary JSON stored alongside the memory.
{ "source": "chat" }