Folders

Create folder

Create a new folder in the managed mailbox.

post/api/v1/mailboxes/{mailboxResourceId}/folders

Request

  • Base URL: https://api.mail.hostinger.com
  • URL: https://api.mail.hostinger.com/api/v1/mailboxes/{mailboxResourceId}/folders
  • Auth: HTTP bearer

Path parameters

mailboxResourceIdstring required

Resource ID of the managed mailbox the bearer token is authorized for.

Request body

namestring required

Folder name. Length 1-100 after trimming.

Example request

{
  "name": "Projects"
}

Response

Folder created.

Example response

{
  "data": {
    "path": "INBOX.Sent",
    "name": "Sent",
    "delimiter": ".",
    "specialUse": "\\Sent",
    "messageCount": 42,
    "unreadCount": 5
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.