# SMSAgent Readme
## Readme
SMSAgent is a RESTful api.
endpoint IP address:
**60.250.52.107 port 5146**
http://60.250.52.107:5146/swagger/index.html
usage:
### post method
sendMessage(key, phone, messageContent)
**parameters:**
* key:encrption key for AES, 16 bytes long string type
* phone: phone number encrypted by AES+Base64 hybrid(AES with key first, then Base64)
* messageContent: message
After agency, i.e send text to specific phone number with encryption via CHT) will return code for SMS send status.
**Return Code**
200 success
201:POST method success (post成功但簡訊發送失敗)
400:伺服器無法處理的錯誤請求
404:找不到資源(請與我們確認server是否開啟)
*2023/2/9 created*
*2023/2/14 updated*