Skip to main content
Credit usage alerts send an email when daily sending credit usage passes a configured percentage.

Authentication

Base URL: https://pro.api.serversmtp.com/api/v2 Send consumerKey and consumerSecret headers. The key needs Statistics & Management APIs (APIS) permission, and its IP restrictions must allow your server. See authentication.

Create an alert

POST /tools/alerts requires an email and an integer percentage from 0 to 100.
Terminal
A successful creation returns 201 with the alert:

List and retrieve alerts

GET /tools/alerts returns count and results:
Terminal
GET /tools/alerts/{Id} returns one alert object.

Update an alert

Use PATCH /tools/alerts/{Id} with the destination email and percentage. The response is the updated alert object.
Terminal

Delete an alert

Terminal
DELETE /tools/alerts/{Id} returns {"message":"success"}. Get, update, and delete requests return 404 with message: "alert_not_found" when the ID does not exist. Invalid percentages return 400. Values above 100 produce percentage_should_not_be_higher_than_100.