Skip to main content
GET
List folders
Needs folders:read. See Permissions.
Gives every folder of every workspace the key can reach, by name, as a list (not wrapped in data, and not paged).
  • workspace_id keeps one workspace’s folders.
  • root=1 keeps only the top-level folders (parent_id is null). Send 1 or 0: true and false are refused with 422.
  • parent_id keeps the folders directly in one folder. It is ignored with root=1.
type is read from the folder’s name, which must match exactly: “Product Demos” is DEMO, “UGC Videos” UGC, “Hooks Videos” HOOK, “Sounds” SOUND, “AI Generated” AI_GENERATED and “References” AI_GENERATED_REFERENCE. PostSyncer makes folders with these names for its own work. Every other folder is DEFAULT.

Errors

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

workspace_id
integer

Only this workspace's folders. It must be one the key can reach.

parent_id
integer

Only the folders directly in this one. Ignored with root=1.

root
enum<integer>
default:0

1 for only the top-level folders; 0, or left out, for every folder. true and false are refused with 422: send 1 or 0.

Available options:
0,
1

Response

The folders.

id
integer
required

The folder's id. Uploads and List media take it as folder_id.

uuid
string<uuid>
required
workspace_id
integer
required
name
string
required
color
string | null
required

A hex color, like #4F46E5.

parent_id
integer | null
required

The folder it is in; null at the top of the library.

type
enum<string>
required

Read from the name: the folders PostSyncer makes for its own work are DEMO ("Product Demos"), UGC ("UGC Videos"), HOOK ("Hooks Videos"), SOUND ("Sounds"), AI_GENERATED ("AI Generated") and AI_GENERATED_REFERENCE ("References"). Every other folder is DEFAULT.

Available options:
DEFAULT,
DEMO,
UGC,
HOOK,
SOUND,
AI_GENERATED,
AI_GENERATED_REFERENCE
parent
object | null

Get folder and Update folder only: the folder it is in (without its own parent), or null at the top of the library.