- Create a new user for this script in the SMSEagle web interface: menu System > Users.
- Create an API key for that user in Settings > Global settings > API, page API v1:
- a) click Create API key, fill in Key name and select that user as Owner
- b) set the APIv1 permissions listed below, then click Create key
The access token is shown only once, right after saving. This API token will be referenced below as
SMSEAGLEAPITOKEN. Replace
SMSEAGLEAPITOKEN in script below with your value.
- In the key form, add the permissions for APIv1 methods you want to use:
- Send SMS => sms
- Ring call => ring
- Text-to-speech call => tts
- Advanced text-to-speech call => tts_adv