GetMX-API
  1. Message Notice
GetMX-API
  • Domain
    • Get Domains
      POST
    • Add Domain
      POST
    • Delete Domain
      POST
    • Get Domain Detail
      POST
    • Bind Domain to Group-Pay
      POST
    • Unbind Domain from Group-Pay
      POST
    • Update Domain
      POST
  • Group Pay
    • Get Group-Pays
      POST
    • Add Group-Pay
      POST
    • Update Group-Pay
      POST
  • Email
    • Get Emails
      POST
    • Add Email
      POST
    • Delete Email
      POST
    • Update Email
      POST
    • Clean up Email
      POST
  • Message
    • Get Messages
      POST
    • Get Message Detail
      POST
    • Delete Message
      POST
    • Flagged Message
      POST
    • Seen Message
      POST
    • Answered Message
      POST
    • Get Folders
      POST
    • Move Message Folder
      POST
  • Alias
    • Get Aliases
    • Add Alias
    • Delete Alias
    • Update Alias
  • Message Notice
    • Get Message Notices
      POST
    • Add Message Notice
      POST
    • Delete Message Notice
      POST
    • Check Message Notice
      POST
    • Update Message Notice
      POST
  • SMTP Rule
    • Get Smtp Rules
    • Add Smtp Rule
    • Update Smtp Rule
    • Delete Smtp Rule
  • Scale
    • Query Remaining Space
    • Server Cleanup
  1. Message Notice

Add Message Notice

POST
/v1/message-notice/create

Request

Body Params multipart/form-data
token
string 
required
Token generated by the management backend
Example:
{{token}}
domain_id
string 
optional
Domain ID (can be obtained from the GetMX management backend or through the /v1/domain/list endpoint; the 'id' field is the 'domain_id')
Example:
12345678
group_pay_id
string 
optional
Group pay ID (group_pay_id can be obtained from the GetMX backend or through the /v1/group-pay/list endpoint, with the 'id' field corresponding to 'group_pay_id').
Example:
1
platform
integer 
optional
Platform: 1 for WebHook, 2 for Lark, 3 for WeCom, 4 for DingTalk
Example:
1
notice_url
string 
optional
WebHook notification URL
Example:
http://api.com/notice
mark
string 
optional
Mark
Example:
mark

Request 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 'https://domain-open-api.getmx.com/v1/message-notice/create' \
--form 'token="token"' \
--form 'domain_id="12345678"' \
--form 'group_pay_id="1"' \
--form 'platform="1"' \
--form 'notice_url="http://api.com/notice"' \
--form 'mark="mark"'

Responses

🟢200成功
application/json
Body
code
integer 
required
msg
string 
required
data
null 
required
Example
{
  "code": 0,
  "msg": "string",
  "data": null
}
Previous
Get Message Notices
Next
Delete Message Notice
Built with