Skip to content

Create Folder Storage ​

POSThttps://api.repliz.com/public/storage/folder

Create 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.

Endpoint Details ​

  • Authentication: Basic Auth (Authorization: Basic Base64(AccessKey:SecretKey)) or Bearer token from Login with Repliz
  • Scope (Bearer only): storage:write
  • Access Tier: Addon Storage

Request Body ​

FieldTypeRequiredDescription
namestringYesName 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.

Example Request ​

bash
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"
  }'
javascript
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);
javascript
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);

Response ​

json
{
  "_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"
}
json
{
  "code": 400,
  "message": "folder name already exists"
}
json
{
  "code": 401,
  "message": "unauthorized"
}

Other 400 messages are folder name is empty and maximum 100 folders.