Skip to main content
POST
Needs folders:create, and a role in the workspace that can add media. See Permissions.
Makes a folder at the top of the library, or in another folder of the same workspace with parent_id. color is a hex color; left out, it is #4F46E5. Send the answer’s id as folder_id on Upload a file or Import media from links to put files in it.

Errors

Authorizations

Authorization
string
header
required

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

Body

application/json
workspace_id
integer
required

The workspace. It must be one the key can reach.

name
string
required
Maximum string length: 255
color
string | null
default:#4F46E5

A hex color, like #0EA5E9.

parent_id
integer | null

A folder of the same workspace to put it in. Left out: the top of the library.

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.