v1

latestOpenAPI 3.1.02026-07-14159142161.9 KB
emailService

Retrieve all email folders

Retrieves a list of email folders associated with the user.

get/email/v1/folders

Response

OK

Example response

{
  "data": [
    [
      {
        "id": 61,
        "email_id": 10,
        "parent_id": null,
        "folder_name": "INBOX",
        "path": "INBOX",
        "delimitter": "/",
        "is_trash": false,
        "is_spam": false,
        "is_draft": false,
        "is_junk": false,
        "is_sent": false,
        "is_inbox": true,
        "is_pending": false,
        "has_children": false,
        "is_root": true,
        "is_deleted": false,
        "message_count": 4998,
        "unread_message_count": 43
      },
      {
        "id": 64,
        "email_id": 10,
        "parent_id": null,
        "folder_name": "Sent Mail",
        "path": "[Gmail]/Sent Mail",
        "delimitter": "/",
        "is_trash": false,
        "is_spam": false,
        "is_draft": false,
        "is_junk": false,
        "is_sent": true,
        "is_inbox": false,
        "is_pending": false,
        "has_children": false,
        "is_root": false,
        "is_deleted": false,
        "message_count": 248,
        "unread_message_count": 0
      },
      {
        "id": 63,
        "email_id": 10,
        "parent_id": null,
        "folder_name": "Drafts",
        "path": "[Gmail]/Drafts",
        "delimitter": "/",
        "is_trash": false,
        "is_spam": false,
        "is_draft": true,
        "is_junk": false,
        "is_sent": false,
        "is_inbox": false,
        "is_pending": false,
        "has_children": false,
        "is_root": false,
        "is_deleted": false,
        "message_count": 73,
        "unread_message_count": 0
      },
      {
        "id": 66,
        "email_id": 10,
        "parent_id": null,
        "folder_name": "Trash",
        "path": "[Gmail]/Trash",
        "delimitter": "/",
        "is_trash": true,
        "is_spam": false,
        "is_draft": false,
        "is_junk": false,
        "is_sent": false,
        "is_inbox": false,
        "is_pending": false,
        "has_children": false,
        "is_root": false,
        "is_deleted": false,
        "message_count": 7612,
        "unread_message_count": 0
      }
    ]
  ],
  "meta": {
    "currentPage": 1,
    "from": 1,
    "lastPage": 1,
    "links": [
      {
        "label": "Previous"
      }
    ],
    "path": "https://domain.uspacy.ua/groups/v1/groups",
    "perPage": 20,
    "to": 2,
    "total": 2
  }
}