Create a New Folder

This method is used to create a custom folder in a user’s account. Once a folder is created, messages can be moved into it using the Move Message function. A session key must be submitted via the X-Session-Key header. A successful transaction will receive a 200 status code.

Body Params

The create folder request data

string
required

The name of the folder

int32
enum

Type of folder: [0(Inbox), 1(Outbox)] The default is 0(Inbox)

Allowed:
Headers
string
Responses

400

The CreateFolderRequestData model is required in the request body. || The FolderName field is required.

401

The X-Session-Key header is missing. || Bad session key. || Session key expired. || The Folder Name already exists. || The Folder Name is too long. || Folder type [FolderType] is not supported. || The Folder Type or Folder Name is invalid. || Unknown error while creating folder.

Language
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json