A AuthMS API Wiki API Reference iam.tianv.com →

POST /communication/callback/{provider}

接收并处理各短信、邮件、推送服务商(阿里云、腾讯云、AWS SNS/SES、SendGrid、Mailgun、FCM、APNs、JPush等)的投递状态回调通知,自动更新对应消息的发送状态。回调为公开端点,由各服务商直接调用。参考:ePrivacy Directive 2002/58/EC、CAN-SPAM Act。

通信服务 None application/json

Request Parameters

NameInTypeRequiredDefaultExampleConstraintsDescription
provider path string Yes 服务商名称:aliyun/tencentcloud/aws/sendgrid/ses/mailgun/fcm/apns/jpush

Request Body

Accepts an empty JSON object {}

Responses

StatusDescriptionSchema
200回调已接收确认dto.CallbackResultDetailResponse
400请求数据格式错误dto.SimpleResponse
500回调处理内部错误dto.SimpleResponse

Referenced Schemas

dto.CallbackResultDetailResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
data dto.CallbackResultResponse No
message string No
timestamp string No

dto.CallbackResultResponse

提供商回调结果

FieldTypeRequiredExampleConstraintsDescription
provider string No aliyun
received boolean No True

dto.SimpleResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
message string No
timestamp string No