Skip to main content
GET
Get a folder
Needs folders:read. See Permissions.
Gives the folder when it is in a workspace the key can reach. parent is the folder it is in, or null at the top of the library. The files in it are listed by List media with folder_id, and its subfolders by List folders with parent_id.

Errors

Authorizations

Authorization
string
header
required

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

Path Parameters

folder_id
integer
required

The folder's id.

Response

The folder.

A folder of the media library.

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.