Before using the API, you’ll need to enable API access on your SMSEagle device by following these steps:
- Navigate to the Web-GUI and select the System > Users menu.
- Create a new user in SMSEagle, user access level: “User”.
- Go to Settings > Global settings > API and open the API v2 page.
- Click Create API key, fill in Key name and select that user as Owner.
- Set up the appropriate permissions in the Permissions section, then click Create key – the access token is shown only once, right after saving:
- For purpose of this example configuration, add access permissions in section Messages for: Send SMS.