Create a collection
curl --request POST \
--url https://api.memories.ai/serve/datalake/v1/collections \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "demo",
"enabled_detectors": [
"safety_detector"
]
}
'import requests
url = "https://api.memories.ai/serve/datalake/v1/collections"
payload = {
"name": "demo",
"enabled_detectors": ["safety_detector"]
}
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({name: 'demo', enabled_detectors: ['safety_detector']})
};
fetch('https://api.memories.ai/serve/datalake/v1/collections', 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.memories.ai/serve/datalake/v1/collections",
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([
'name' => 'demo',
'enabled_detectors' => [
'safety_detector'
]
]),
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;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.memories.ai/serve/datalake/v1/collections"
payload := strings.NewReader("{\n \"name\": \"demo\",\n \"enabled_detectors\": [\n \"safety_detector\"\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))
}HttpResponse<String> response = Unirest.post("https://api.memories.ai/serve/datalake/v1/collections")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"demo\",\n \"enabled_detectors\": [\n \"safety_detector\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.memories.ai/serve/datalake/v1/collections")
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 \"name\": \"demo\",\n \"enabled_detectors\": [\n \"safety_detector\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"id": "col_xxx",
"name": "my-set",
"embedding_model": "omni_retriever",
"enabled_detectors": [],
"face_recognition_enabled": false,
"video_count": 0,
"metadata": {},
"reid_threshold": null,
"person_threshold": null,
"created_at": "2026-07-18T02:00:00Z"
}Collections
Create Collection
Create a collection
POST
/
datalake
/
v1
/
collections
Create a collection
curl --request POST \
--url https://api.memories.ai/serve/datalake/v1/collections \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "demo",
"enabled_detectors": [
"safety_detector"
]
}
'import requests
url = "https://api.memories.ai/serve/datalake/v1/collections"
payload = {
"name": "demo",
"enabled_detectors": ["safety_detector"]
}
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({name: 'demo', enabled_detectors: ['safety_detector']})
};
fetch('https://api.memories.ai/serve/datalake/v1/collections', 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.memories.ai/serve/datalake/v1/collections",
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([
'name' => 'demo',
'enabled_detectors' => [
'safety_detector'
]
]),
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;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.memories.ai/serve/datalake/v1/collections"
payload := strings.NewReader("{\n \"name\": \"demo\",\n \"enabled_detectors\": [\n \"safety_detector\"\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))
}HttpResponse<String> response = Unirest.post("https://api.memories.ai/serve/datalake/v1/collections")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"demo\",\n \"enabled_detectors\": [\n \"safety_detector\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.memories.ai/serve/datalake/v1/collections")
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 \"name\": \"demo\",\n \"enabled_detectors\": [\n \"safety_detector\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"id": "col_xxx",
"name": "my-set",
"embedding_model": "omni_retriever",
"enabled_detectors": [],
"face_recognition_enabled": false,
"video_count": 0,
"metadata": {},
"reid_threshold": null,
"person_threshold": null,
"created_at": "2026-07-18T02:00:00Z"
}Product: Video Datalake
Host:
https://api.memories.ai/serve/datalake/v1
Auth: Authorization: sk-mai-...embedding_model is optional and defaults to omni_retriever, currently the only accepted value.
Pricing: Free — management / read (no charge). · See Pricing for the full model.
Response Fields
string
Collection ID (
col_ prefix).string
The embedding model used to index this collection —
omni_retriever (OmniRetriever, 3072-dim). Immutable after creation.integer
Live count of videos in the collection.
boolean
Whether persons/entities are enabled.
Authorizations
Send Authorization: sk-mai-...
Body
application/json
Display name, ≤255 chars
Vector model for this collection, immutable after creation. Optional — defaults to omni_retriever (OmniRetriever, 3072-dim), currently the only accepted value.
Available options:
omni_retriever Detector allow-list. Currently only safety_detector.
Available options:
safety_detector Master switch for persons/entities. Default false.
Free-form. Face-compliance docs can go under consent_document.
Response
200 - application/json
Success
