Skip to content

Get Folder Storage ​

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

Retrieve every storage folder, sorted by name. Folders group files, for example one folder per brand or per social media account. Folders only live in Repliz: moving a file into or out of a folder never changes its URL or its place in the storage bucket, so posts that already use it keep working.

Endpoint Details ​

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

Response Fields ​

FieldTypeDescription
docsarrayThe folders, sorted by name.
docs[].namestringName of the folder.
docs[].fileobjecttotal files in the folder and the bytes they used.
unfiledobjecttotal files outside any folder and the bytes they used.

Example Request ​

bash
curl -X GET "https://api.repliz.com/public/storage/folder" \
  -H "Authorization: Basic $(echo -n 'YOUR_ACCESS_KEY:YOUR_SECRET_KEY' | base64)"
javascript
import axios from 'axios';

const response = await axios.get('https://api.repliz.com/public/storage/folder', {
  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', {
  headers: {
    Authorization: `Basic ${credentials}`,
  },
});

const data = await response.json();
console.log(data);

Response ​

json
{
  "docs": [
    {
      "_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",
      "file": {
        "total": 12,
        "used": 48234496
      }
    }
  ],
  "unfiled": {
    "total": 3,
    "used": 1055736
  }
}
json
{
  "code": 401,
  "message": "unauthorized"
}