Comment on page
Update inbound SMS webhook/URI
This method allows you to update your inbound messaging webhook/URI for a phone number.
If you are an HTTP API Customer and do not utilize SMPP the
posturl
must be a fully qualified URL i.e. http://someapi.somedomain.com/somescript.php
Leaving the posturl
blank or not including it in your API call will convert the number from HTTP POST to SMPP
Please be sure to have SMPP credentials setup and tested before converting numbers to SMPP or message loss could occur (which is bad).Authentication is done by passing your TSG Global API key via the Authorization header in the format "Authorization: Bearer <api_key>"
post
https://api-service.tsgglobal.world/v1/sms/webhook
Update per-did configuration. Currently only sms webhook URL is available using this enpodint.
curl -n https://api-service.tsgglobal.world/v1/sms/webhook -XPOST -H "Authorization: Bearer <api_key>" \
-H "Content-Type: application/json" -d '{
"webhook_url": "https://example.com/webhook",
"did": "12003004000"
}'
Last modified 11mo ago