English
English
Appearance
English
English
Appearance
https://api.repliz.com/public/storage/folderCreate a storage folder, for example one per brand or per social media account. Put files in it with folderId in Init File or with Move Files.
Authorization: Basic Base64(AccessKey:SecretKey)) or Bearer token from Login with Replizstorage:write| Field | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Name of the folder, up to 50 characters. Spaces at the ends are removed, and the name has to be unique, case-insensitive. A user can have up to 100 folders. |
curl -X POST "https://api.repliz.com/public/storage/folder" \
-H "Authorization: Basic $(echo -n 'YOUR_ACCESS_KEY:YOUR_SECRET_KEY' | base64)" \
-H "Content-Type: application/json" \
-d '{
"name": "Brand A"
}'import axios from 'axios';
const response = await axios.post(
'https://api.repliz.com/public/storage/folder',
{ name: 'Brand A' },
{
auth: {
username: 'YOUR_ACCESS_KEY',
password: 'YOUR_SECRET_KEY',
},
},
);
console.log(response.data);const credentials = btoa('YOUR_ACCESS_KEY:YOUR_SECRET_KEY');
const response = await fetch('https://api.repliz.com/public/storage/folder', {
method: 'POST',
headers: {
Authorization: `Basic ${credentials}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({ name: 'Brand A' }),
});
const data = await response.json();
console.log(data);{
"_id": "6a4c3b580afd72bb342c3886",
"name": "Brand A",
"userId": "6879b98097fc8c8a78d1d4c1",
"createdAt": "2026-11-23T03:10:00.000Z",
"updatedAt": "2026-11-23T03:10:00.000Z",
"__v": 0,
"id": "6a4c3b580afd72bb342c3886"
}{
"code": 400,
"message": "folder name already exists"
}{
"code": 401,
"message": "unauthorized"
}Other 400 messages are folder name is empty and maximum 100 folders.