| Server IP : 138.197.107.151 / Your IP : 216.73.216.170 Web Server : Apache/2.4.58 (Ubuntu) System : Linux BloxBy-Builder 6.8.0-71-generic #71-Ubuntu SMP PREEMPT_DYNAMIC Tue Jul 22 16:52:38 UTC 2025 x86_64 User : wpbetasites_mrakzqskir ( 1022) PHP Version : 8.3.6 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/bsd-crawler-parser/aws/dist/awscli/examples/pinpoint/ |
Upload File : |
**To send SMS message using the endpoint of an application**
The following ``send-messages`` example sends a direct message for an application with an endpoint. ::
aws pinpoint send-messages \
--application-id 611e3e3cdd47474c9c1399a505665b91 \
--message-request file://myfile.json \
--region us-west-2
Contents of ``myfile.json``::
{
"MessageConfiguration": {
"SMSMessage": {
"Body": "hello, how are you?"
}
},
"Endpoints": {
"testendpoint": {}
}
}
Output::
{
"MessageResponse": {
"ApplicationId": "611e3e3cdd47474c9c1399a505665b91",
"EndpointResult": {
"testendpoint": {
"Address": "+12345678900",
"DeliveryStatus": "SUCCESSFUL",
"MessageId": "itnuqhai5alf1n6ahv3udc05n7hhddr6gb3lq6g0",
"StatusCode": 200,
"StatusMessage": "MessageId: itnuqhai5alf1n6ahv3udc05n7hhddr6gb3lq6g0"
}
},
"RequestId": "c7e23264-04b2-4a46-b800-d24923f74753"
}
}
For more information, see `Amazon Pinpoint SMS channel <https://docs.aws.amazon.com/pinpoint/latest/userguide/channels-sms.html>`__ in the *Amazon Pinpoint User Guide*.