List Folders
curl --request GET \
--url https://api.memories.ai/serve/api/v1/folders \
--header 'Authorization: <api-key>'import requests
url = "https://api.memories.ai/serve/api/v1/folders"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.memories.ai/serve/api/v1/folders', 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/api/v1/folders",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.memories.ai/serve/api/v1/folders"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.memories.ai/serve/api/v1/folders")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.memories.ai/serve/api/v1/folders")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"code": "0000",
"msg": "success",
"data": {
"folders": [
{
"folder_id": 671631448308117500,
"folder_name": "my-project"
}
]
}
}Folder Management
List Folders
List all folders in your account, used to organize your Private Video Library.
GET
/
serve
/
api
/
v1
/
folders
List Folders
curl --request GET \
--url https://api.memories.ai/serve/api/v1/folders \
--header 'Authorization: <api-key>'import requests
url = "https://api.memories.ai/serve/api/v1/folders"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.memories.ai/serve/api/v1/folders', 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/api/v1/folders",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.memories.ai/serve/api/v1/folders"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.memories.ai/serve/api/v1/folders")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.memories.ai/serve/api/v1/folders")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"code": "0000",
"msg": "success",
"data": {
"folders": [
{
"folder_id": 671631448308117500,
"folder_name": "my-project"
}
]
}
}Product: Visual Search
Use case: Organize your indexed videos into folders and scope uploads/searches to a folder
Host:
https://api.memories.ai/serve/api/v1
Auth: Authorization: sk-mavi-... (no Bearer prefix)folder_id, and list/search can be scoped to one.
Your account always has a built-in Default folder (folder_id -1), created automatically on first upload. If any videos were imported through the legacy /api/video endpoint, a read-only API folder (folder_id -2) is also returned.
Prerequisites
- You have created a memories.ai API key.
Request Example
import requests
headers = {"Authorization": "sk-mavi-..."}
response = requests.get(
"https://api.memories.ai/serve/api/v1/folders",
headers=headers,
)
print(response.json())
cURL
curl "https://api.memories.ai/serve/api/v1/folders" \
-H "Authorization: sk-mavi-..."
Response Example
{
"code": "0000",
"msg": "success",
"data": {
"folders": [
{ "folder_id": -1, "folder_name": "Default folder" },
{ "folder_id": 671631448308117504, "folder_name": "my-project" }
]
}
}
Response Fields
string
Business status code.
0000 indicates success.string
Human-readable status message.
array
All folders belonging to the authenticated account.
integer
Folder identifier. Pass it as
folder_id on upload/list/search. -1 is the Default folder; -2 (if present) is the read-only legacy API folder.string
Folder display name.
Notes & Limits
- Rate limiting: Folder endpoints share a per-account rate limit. See Rate limits.
- The Default folder is created on demand — a brand-new account with no uploads may show it only after the first list/upload.
