For the complete documentation index, see llms.txt. This page is also available as Markdown.

List folders

Retrieve a paginated list of folders in the managed mailbox.

List folders

get

Retrieve a paginated list of folders in the managed mailbox.

Authorizations
AuthorizationstringRequired

Bearer authentication using API tokens in the Authorization header.

Path parameters
mailboxResourceIdstringRequired

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

Example: AC1a2b3c4d5e6f7g
Query parameters
pageinteger · min: 1Optional

Page number (1-based).

Default: 1
perPageinteger · min: 1 · max: 100Optional

Items per page (max 100).

Default: 25
Responses
200

Paginated list of folders.

application/json

Paginated list of folders.

get/api/v1/mailboxes/{mailboxResourceId}/folders
GET /api/v1/mailboxes/{mailboxResourceId}/folders HTTP/1.1
Host: api.mail.hostinger.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "data": [
    {
      "path": "INBOX.Sent",
      "name": "Sent",
      "delimiter": ".",
      "specialUse": "\\Sent",
      "messageCount": 42,
      "unreadCount": 5
    }
  ],
  "pagination": {
    "page": 1,
    "perPage": 25,
    "total": 137,
    "totalPages": 6
  }
}

Last updated

Was this helpful?