AvenPing API health and version endpoints
These endpoints do not require an API token. Use them to confirm routing (
GET /v2/health) and read build info (GET /v2/version).
Also read: HTTP API v2 Overview for conventions and global response shapes.
Prerequisites
- Network access to
https://api.avenping.com - No API token is required for these routes
- A token is required only when you continue to GET /v2/me
Step-by-step
Call GET /v2/health
curl -sS https://api.avenping.com/v2/healthshould return{ "success": true, "data": { "ok": true } }.Call GET /v2/version
GET /v2/versionreturns packagename,version(from the deployed package when available), andnodeEnv.Optionally request JSON from GET /
UseGET /?format=jsonor sendAccept: application/json. Otherwise the root returns a short HTML landing page.Authenticate for protected routes
After health checks pass, send a Bearer orX-API-Tokenand call GET /v2/me. Every other/v2/*route requires a token, an active plan, and Premium or Enterprise.
Root (non-versioned)
GET /
| Variant | Behavior |
|---|---|
| HTML | Default: short landing page with links to /v2/health and /v2/version. |
| JSON | GET /?format=json or Accept: application/json |
Example request (JSON):
bash
curl -sS "https://api.avenping.com/?format=json"Response 200 (JSON):
json
{
"success": true,
"data": {
"name": "avenping-api",
"versions": ["v2"],
"docs": {
"health": "/v2/health",
"version": "/v2/version",
"me": "/v2/me"
}
}
}GET /v2/health
Example request:
bash
curl -sS "https://api.avenping.com/v2/health"Response 200:
json
{
"success": true,
"data": { "ok": true }
}GET /v2/version
Example request:
bash
curl -sS "https://api.avenping.com/v2/version"Response 200 — version comes from the deployed package when available.
json
{
"success": true,
"data": {
"name": "avenping-api",
"version": "1.0.0",
"nodeEnv": "production"
}
}FAQ
Do I need a token for health checks?
No. GET /v2/health, GET /v2/version, and GET / do not require authentication.
How do I get JSON from GET /?
Use GET /?format=json or send Accept: application/json. Otherwise the root returns a short HTML landing page.
Are these the only unauthenticated routes?
Yes for v2. Every other /v2/* route needs a valid token, an active plan, and Premium or Enterprise. See Authentication.