1. Mail 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. Mail APIs

Sync Mail Config To Local

POST
http://localhost:18321/v1/mail/sync
Pull mail configuration from the remote side and save it to the local database.

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/mail/sync' \
--form 'token="{{token}}"' \
--form 'mail_id="mail_demo_001"' \
--form 'mail="de***@example.com"'

Responses

🟢200
application/json
Success
Body

Example
{
    "code": 200,
    "msg": "ok",
    "data": {
        "synced": 1,
        "mail": {
            "mail_id": "mail_demo_001",
            "mail": "de***@example.com",
            "raw_mail": "de***@example.com",
            "user_id": "user_demo_001",
            "provider_id": "cuiqiu",
            "receive_protocol_type": "imap",
            "send_protocol_type": "smtp",
            "backend_type": "imap_smtp",
            "auth_type": "manual",
            "proxy_id": ""
        }
    }
}
Modified at 2026-04-10 06:29:30
Previous
Get Mail Detail
Next
Create Mail Config
Built with