# REST API - Send SMS

**URL:** <https://forum.mikrotik.com/t/rest-api-send-sms/156178>\
**Category:** Scripting\
**Created:** [February 27, 2022, 1:57pm UTC](https://forum.mikrotik.com/t/rest-api-send-sms/156178 "2022-02-27T13:57:34Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![skocdopolet](https://forum.mikrotik.com/letter_avatar/skocdopolet/32/6_449c533f586939b6e5f246632a46421f.png) [@skocdopolet](https://forum.mikrotik.com/u/skocdopolet)\
**Post date:** [February 27, 2022, 1:57pm UTC](https://forum.mikrotik.com/t/rest-api-send-sms/156178/1 "2022-02-27T13:57:34Z")

</div>

Hello,

I have a mikrotik router with LTE interface. I want to send SMS via REST API, but I’m not able to be success.

This command runs OK:

```plaintext
curl -k -u admin: 'https://192.168.8.95/rest/tool/sms'

```

With this result:

```plaintext
{"allowed-number":"","auto-erase":"false","channel":"0","last-ussd":"","port":"lte1","receive-enabled":"true","secret":"","sim-pin":"","status":"running"}

```

I am trying to send SMS with this command:

```plaintext
curl -k -u admin: 'https://192.168.8.95/rest/tool/sms/send?phone-number:+420123123123&message=OK'

```

I got this error

```plaintext
{"error":500,"message":"Internal Server Error"}

```

Could anyone help me please?

Thank you  
Tomas

---

_[View the full topic](https://forum.mikrotik.com/t/rest-api-send-sms/156178)._
