UtilitiesWi-Fi

testSiteWlanTwilioSetup

POST
/api/v1/utils/test_twilio

Allows validation of twilio setup In case of success, a text message confirming successful setup should be received. In case of error, twilio error code and message are returned.

Authorization

Authorization<token>

Preferred authentication method for automation and integrations. Send the API token in the HTTP Authorization header.

Format: Authorization: Token {apitoken}

Notes:

  • An API token generated for a specific admin has the same privileges as that admin
  • An API token is automatically removed if it is not used for more than 90 days
  • SSO admins cannot generate admin API tokens. Use organization API tokens when scoped Org/Site privileges are needed.

In: header

Request Body

application/json

Request Body

Request body for validating Twilio SMS gateway credentials

from*string

One of the numbers you have in your Twilio account

to*string

Phone number of the recipient of SMS

twilio_auth_token*string

Twilio Auth Token used to send the test SMS

twilio_sid*string

Twilio account SID used to send the test SMS

Response Body

curl -X POST "https://example.com/api/v1/utils/test_twilio" \  -H "Content-Type: application/json" \  -d '{    "from": "+185051234567",    "to": "+19999999999",    "twilio_auth_token": "2135be04736a1a0a314bce432d61721a",    "twilio_sid": "AC5f4366878d193fb4865ab151739999eb"  }'
Empty