1. Message APIs
ELink Open API
  • Mail APIs
    • Get Mail List
      POST
    • Get Mail Detail
      POST
    • Sync Mail Config To Local
      POST
    • Create Mail Config
      POST
    • Update Mail Config
      POST
    • Delete Mail Config
      POST
  • Proxy APIs
    • Get Proxy List
      POST
    • Get Proxy Detail
      POST
    • Create Proxy
      POST
    • Update Proxy
      POST
    • Delete Proxy
      POST
  • Message APIs
    • Get Message Folder List
      POST
    • Get Message List
      POST
    • Get Message Detail
      POST
    • Send Message
      POST
    • Mark Read Or Unread
      POST
    • Move Message To Target Folder
      POST
    • Mark Starred Or Unstarred
      POST
  1. Message APIs

Get Message Folder List

POST
http://localhost:18321/v1/message/folder/list
Read the folder list from the remote mail server in real time. For subsequent message APIs, prefer using the returned path value as folder_path.

Request

Body Params multipart/form-dataRequired

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://localhost:18321/v1/message/folder/list' \
--form 'token="{{token}}"' \
--form 'mail_id="mail_demo_001"'

Responses

🟢200
application/json
Success
Body

Example
{
    "code": 200,
    "msg": "ok",
    "data": {
        "list": [
            {
                "folder_id": "user_demo_001_mail_demo_001_INBOX",
                "mail_id": "mail_demo_001",
                "user_id": "user_demo_001",
                "name": "INBOX",
                "path": "INBOX",
                "type": "inbox",
                "is_system": 1,
                "is_aggregate": -1,
                "unread_count": 12,
                "total_count": 200,
                "remote_folder_id": "INBOX",
                "folder_kind": "inbox"
            },
            {
                "folder_id": "user_demo_001_mail_demo_001_ttt",
                "mail_id": "mail_demo_001",
                "user_id": "user_demo_001",
                "name": "ttt",
                "path": "ttt",
                "type": "folder",
                "is_system": -1,
                "is_aggregate": -1,
                "unread_count": 0,
                "total_count": 0,
                "remote_folder_id": "ttt",
                "folder_kind": "custom"
            }
        ]
    }
}
Modified at 2026-04-10 06:29:30
Previous
Delete Proxy
Next
Get Message List
Built with