API - Documentation
Explore the Pinger Man APIs to integrate with your applications
Use the APIs to automate Pinger Man.
REST API
A REST API is available in Pinger Man. Usage instructions are below. REST API Reference
How to use the APIs
The following is an API request that lists the first 10 monitors in your account.
curl -X POST https://api.pingerman.com/monitors/list \ -H 'Content-Type: application/json' \ -H 'Authorization: Bearer YOUR_TOKEN' \ -d '{"pageIndex": 0, "pageSize": 10}'
Generating Access Token
Use your email and password to generate an access token.
curl -X POST https://api.pingerman.com/token \ -H 'Content-Type: application/json' \ -d '{"email": "email@company.com","password": "strong-password"}'
The access token has a validity of 24 hours by default. Use the expiresIn property to configure the token expiry.
curl -X POST https://api.pingerman.com/token \ -H 'Content-Type: application/json' \ -d '{"email": "email@company.com","password": "strong-password", "expiresIn": 2592000000}'
The above example specifies generates a token valid for 30 days. expiresIn is in milliseconds.
API calls consume your credits.
< Reports
>