Skip to main content
POST
/
api
/
v1
/
memories
/
group
Python
from everos_cloud import EverOS

client = EverOS()
group_mem = client.v1.memories.group

response = group_mem.add(
    group_id="<string>",
    messages=[
        {
            "role": "<string>",
            "sender_id": "<string>",
            "sender_name": "<string>",
            "timestamp": "<integer>",
            "content": "<string>"
        }
    ]
)
print(response)
curl --request POST \
--url 'https://api.evermind.ai/api/v1/memories/group' \
--header 'Authorization: Bearer <api_key>' \
--header 'Content-Type: application/json' \
--data '{}'
const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
group_id: '<string>',
messages: [
{
sender_id: '<string>',
timestamp: 123,
content: '<string>',
message_id: '<string>',
sender_name: '<string>'
}
],
group_meta: {},
async_mode: true
})
};

fetch('https://api.evermind.ai/api/v1/memories/group', 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.evermind.ai/api/v1/memories/group",
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([
'group_id' => '<string>',
'messages' => [
[
'sender_id' => '<string>',
'timestamp' => 123,
'content' => '<string>',
'message_id' => '<string>',
'sender_name' => '<string>'
]
],
'group_meta' => [

],
'async_mode' => true
]),
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.evermind.ai/api/v1/memories/group"

payload := strings.NewReader("{\n \"group_id\": \"<string>\",\n \"messages\": [\n {\n \"sender_id\": \"<string>\",\n \"timestamp\": 123,\n \"content\": \"<string>\",\n \"message_id\": \"<string>\",\n \"sender_name\": \"<string>\"\n }\n ],\n \"group_meta\": {},\n \"async_mode\": true\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.evermind.ai/api/v1/memories/group")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"group_id\": \"<string>\",\n \"messages\": [\n {\n \"sender_id\": \"<string>\",\n \"timestamp\": 123,\n \"content\": \"<string>\",\n \"message_id\": \"<string>\",\n \"sender_name\": \"<string>\"\n }\n ],\n \"group_meta\": {},\n \"async_mode\": true\n}")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.evermind.ai/api/v1/memories/group")

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 \"group_id\": \"<string>\",\n \"messages\": [\n {\n \"sender_id\": \"<string>\",\n \"timestamp\": 123,\n \"content\": \"<string>\",\n \"message_id\": \"<string>\",\n \"sender_name\": \"<string>\"\n }\n ],\n \"group_meta\": {},\n \"async_mode\": true\n}"

response = http.request(request)
puts response.read_body
{
  "data": {
    "task_id": "",
    "message_count": 0,
    "status": "accumulated",
    "message": "Messages accepted"
  }
}
{
"data": {
"task_id": "<string>",
"status": "queued",
"message_count": 0,
"message": "Message accepted and queued for processing"
}
}
{
"code": "InvalidParameter",
"message": "messages[0].sender_id is required for group add",
"request_id": "unknown",
"timestamp": "2026-03-24T00:00:00+00:00",
"path": "/api/v1/memories/group"
}
{
"code": "<string>",
"message": "<string>",
"timestamp": "<string>",
"path": "<string>",
"request_id": "unknown"
}
{
"code": "<string>",
"message": "<string>",
"timestamp": "<string>",
"path": "<string>",
"request_id": "unknown"
}

Authorizations

Authorization
string
header
default:Bearer <api_key>
required

Bearer authentication header of the form Bearer 'api_key', obtain your API key from everos.evermind.ai.

Body

application/json
group_id
string
required

Group identifier

messages
object[]
required

Batch message array (1-500 items). sender_id is required per message.

Required array length: 1 - 500 elements
group_meta
object | null

Group metadata

async_mode
boolean
default:true

Enable async processing. When true, returns 202 with task_id; when false, processes synchronously and returns 200.

Response

Messages accepted successfully (sync mode: async_mode=false)

data
object