Retrieve an HTTP uptime check
UPTIME_CHECKS:READ permission.curl -X GET "https://api.onlineornot.com/v1/checks/uptime/{check_id}" \
-H "Authorization: Bearer YOUR_API_TOKEN"website·Indexed 34 days ago
https://onlineornot.com/docs/Monitor websites, APIs, browser flows, and scheduled jobs. Features include a Public Site API (v1.0.0) with OpenAPI 3.1.0 specification, status page publishing, and alert configurations for Slack, Microsoft Teams, and Telegram.
UPTIME_CHECKS:READ permission.curl -X GET "https://api.onlineornot.com/v1/checks/uptime/{check_id}" \
-H "Authorization: Bearer YOUR_API_TOKEN"Retrieve detailed information about a specific API token using its ID. This operation requires the API_TOKENS:READ permission (or EDIT).
Request Details:
GET/v1/tokens/{token_id}token_id (string, e.g., a1b2c3d4)X-OnlineOrNot-Organisation (Public organization ID, required for grants authorizing multiple organizations).Response Fields:
id: Token IDname: Token nameexpiresAfter: Expiration date (ISO 8601) or null if it never expirescreatedAt: Creation dategrants: List of assigned scopes (e.g., UPTIME_CHECKS, API_TOKENS) and permissions (READ or EDIT).# GET /v1/status_pages/{status_page_subdomain}/summary
curl "https://api.onlineornot.com/v1/status_pages/hackernews/summary"WEBHOOKS:READ permission. If using an OAuth grant that authorizes multiple organizations, provide the X-OnlineOrNot-Organisation header.curl -H "Authorization: Bearer YOUR_TOKEN" "https://api.onlineornot.com/v1/webhooks/a1b2c3d4"The OnlineOrNot Client API is hosted at https://api.onlineornot.com. The API provides programmatic access to the following functional areas:
GET request. This operation requires the UPTIME_CHECKS:READ permission.curl -X GET "https://api.onlineornot.com/v1/checks/browser/{check_id}" \
-H "Authorization: Bearer YOUR_API_TOKEN"UPTIME_CHECKS:READ permission (or UPTIME_CHECKS:EDIT). If using an OAuth grant for multiple organizations, include the X-OnlineOrNot-Organisation header.# GET /v1/checks/{check_id}
curl https://api.onlineornot.com/v1/checks/a1b2c3d4
-H "Authorization: Bearer YOUR_TOKEN"HEARTBEAT_CHECKS:READ permission. If using an OAuth grant that authorizes multiple organizations, the X-OnlineOrNot-Organisation header must be provided to specify the organization ID.curl -X GET "https://api.onlineornot.com/v1/heartbeats/{heartbeat_id}"
-H "Authorization: Bearer YOUR_API_TOKEN"
-H "X-OnlineOrNot-Organisation: YOUR_ORG_ID"UPTIME_CHECKS:READ permission. Note that a successful HTTP 200 response may still contain a failure envelope where success is false.curl -X GET "https://api.onlineornot.com/v1/checks/tcp/{check_id}" \
-H "Authorization: Bearer YOUR_API_TOKEN"Look up detailed information about a specific DNS check. This operation requires the UPTIME_CHECKS:READ permission (or EDIT).
Request Details:
GET/v1/checks/dns/{check_id}check_id (string, minimum length 8, e.g., a1b2c3d4)X-OnlineOrNot-Organisation (Public organization ID).Delete an environment variable using the DELETE /v1/environment_variables/{environment_variable_id} endpoint. Deletion is blocked if the variable is referenced by a saved check (including paused checks).
Requirements:
ENVIRONMENT_VARIABLES:EDIT (which also grants READ).X-OnlineOrNot-Organisation is required for grants authorizing multiple organizations; omit for single-organization grants or API tokens.curl -X DELETE "https://api.onlineornot.com/v1/environment_variables/a1b2c3d4e5f6g7h8" \
-H "Authorization: Bearer YOUR_API_TOKEN"npx. Authentication is handled by running the onlineornot login command or by setting the ONLINEORNOT_API_TOKEN environment variable.# Run via npx
npx onlineornot <command>
# Authenticate via CLI
onlineornot login
# Or use environment variable
export ONLINEORNOT_API_TOKEN=your_token_here