Send an Email to the Specified Address

Request Address: http://{url}/platform/api/v1/mail/create Request Method: POST


  • sender: String, the sender's project-bound nft domain

  • recv_group: String, the recipient's group name

  • receivers: List of strings, the list of recipients

  • type: Integer, the type of message, using 1 for email type

  • subject: String, the subject of the email

  • content: String, the content of the email

  • belongs_to_id: Integer, the project ID of the sender

Request Example

--header 'client_id: 10425'
--header 'client_secret: xxxxxxxxxxxx' \
--header 'Content-Type: application/json' \
--data-raw '{
    "sender": "xxxx",
    "recv_group": "xxx", // Recipient's group name
    "receivers": ["0x0011111...", "0x0011122...", ...], // Custom list of recipients
    "subject": "xxx", // Subject
    "content": "xxxxxxx", // Content
    "belongs_to_id": 10010 // Project ID

Successful Response:
    "code": 1,
    "data": {},
    "msg": "Process success",
    "success": true

Failed Response:
    "code": 0,
    "data": {},
    "msg": "Process failed",
    "success": false

Last updated