Skip to main content
POST
Create a folder

Authorizations

X-API-KEY
string
header
required

Your access token, from your dashboard under API keys.

Path Parameters

account_id
string
required

The account's acc_… id.

Body

application/json
name
string
required
parent_id
string

The fld_… id of the folder to create it in.

Response

The new folder.

object
string
Allowed value: "Folder"
id
string

fld_…

account_id
string
name
string
role
enum<string>
Available options:
INBOX,
SENT,
DRAFTS,
TRASH,
SPAM,
ARCHIVE,
ALL,
IMPORTANT,
STARRED,
UNKNOWN
parent_id
string | null
total_count
integer