Send message
Changed onMessageBird's Programmable SMS API enables you to programmatically send SMS messages from your web application.
First, you need to create a new message object. MessageBird returns the created message object with each request. A maximum of 50 recipients can be entered per request.
Request
- Base URL: https://rest.messagebird.com/messages
- URL: https://rest.messagebird.com/messages/messages
- Auth: API key in header Authorization
Headers
Request body
Example request
{
"recipients": "+380999999999",
"originator": "MessageBird",
"body": "Lorem ipsum dolor sit amet.",
"type": "binary",
"reference": "test",
"reportUrl": "https://example.com/callback",
"validity": 30,
"gateway": 11,
"typeDetails": {
"udh": "050003340201"
},
"datacoding": "unicode",
"mclass": 1,
"shortenUrls": true,
"scheduledDatetime": null
}Response
SMS successfully created
Changes
- warning
the optional response header
Alt-Svcremoved for the status201 - warning
the optional response header
Alt-Svcremoved for the status401 - warning
the optional response header
Alt-Svcremoved for the status422 - warning
the optional response header
Serverremoved for the status201 - warning
the optional response header
Serverremoved for the status401 - warning
the optional response header
Serverremoved for the status422 - warning
the optional response header
Viaremoved for the status201 - warning
the optional response header
Viaremoved for the status401 - warning
the optional response header
Viaremoved for the status422 - warning
the optional response header
X-CLOUD-TRACE-CONTEXTremoved for the status201 - warning
the optional response header
X-CLOUD-TRACE-CONTEXTremoved for the status401 - warning
the optional response header
X-CLOUD-TRACE-CONTEXTremoved for the status422
- warning