Skip to content

Commit fec5cc5

Browse files
Add message/send-sms endpoint
1 parent 4272f91 commit fec5cc5

File tree

1 file changed

+94
-0
lines changed

1 file changed

+94
-0
lines changed

spec/transactional.json

Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@
5757
"description": "Send, schedule, or get information on your emails.",
5858
"paths": [
5959
"/messages/send",
60+
"/messages/send-sms",
6061
"/messages/send-template",
6162
"/messages/search",
6263
"/messages/search-time-series",
@@ -2805,6 +2806,99 @@
28052806
"deprecated": false
28062807
}
28072808
},
2809+
"/messages/send-sms": {
2810+
"post": {
2811+
"x-custom-config": {
2812+
"methodNameCamel": "sendSms",
2813+
"methodNameSnake": "send_sms"
2814+
},
2815+
"summary": "Send SMS message",
2816+
"description": "Send a new SMS message through Mandrill",
2817+
"operationId": "postMessagesSendSms",
2818+
"tags": ["messages"],
2819+
"parameters": [
2820+
{
2821+
"name": "body",
2822+
"in": "body",
2823+
"description": "",
2824+
"required": true,
2825+
"schema": {
2826+
"type": "object",
2827+
"required": ["key", "message"],
2828+
"properties": {
2829+
"key": {
2830+
"type": "string",
2831+
"description": "a valid api key"
2832+
},
2833+
"message": {
2834+
"type": "object",
2835+
"properties": {
2836+
"sms": {
2837+
"type": "object",
2838+
"properties": {
2839+
"text": {
2840+
"type": "string",
2841+
"description": "the full SMS content to be sent"
2842+
},
2843+
"to": {
2844+
"type": "string",
2845+
"description": "the phone number to send the SMS message to"
2846+
},
2847+
"consent": {
2848+
"type": "string",
2849+
"description": "The consent type for the message",
2850+
"enum": ["onetime", "recurring", "recurring-no-confirm"]
2851+
},
2852+
"track_clicks": {
2853+
"type": "boolean",
2854+
"description": "whether or not to turn on click tracking for the message"
2855+
}
2856+
}
2857+
}
2858+
}
2859+
}
2860+
}
2861+
}
2862+
}
2863+
],
2864+
"responses": {
2865+
"200": {
2866+
"description": "",
2867+
"schema": {
2868+
"type": "array",
2869+
"description": "SMS sending results",
2870+
"items": {
2871+
"type": "object",
2872+
"description": "The sending results for a single SMS recipient",
2873+
"properties": {
2874+
"to": {
2875+
"type": "string",
2876+
"description": "the phone number of the recipient",
2877+
"example": "+10000000000"
2878+
},
2879+
"status": {
2880+
"type": "string",
2881+
"description": "the sending status of the message",
2882+
"enum": ["sent", "queued", "scheduled", "rejected", "invalid"],
2883+
"example": "sent"
2884+
},
2885+
"reject_reason": {
2886+
"type": "string",
2887+
"description": "The reason for the rejection if the recipient status is rejected",
2888+
"example": null
2889+
},
2890+
"_id": {
2891+
"type": "string",
2892+
"description": "The message's unique id",
2893+
"example": "abc123abc123abc123abc123abc123"
2894+
}
2895+
}
2896+
}
2897+
}
2898+
}
2899+
}
2900+
}
2901+
},
28082902
"/messages/send": {
28092903
"post": {
28102904
"x-custom-config": {

0 commit comments

Comments
 (0)