Skip to main content
Called automatically by script.js on every page load. Updates the last_ping_at timestamp on the website, which drives the installation badge in the dashboard.

Request

POST https://openhermit.com/api/ping
Content-Type: application/json
{
  "api_key": "YOUR_API_KEY",
  "page_url": "https://yoursite.com/contact",
  "script_version": "1.0.0"
}
FieldTypeRequiredDescription
api_keystringYesYour website’s API key
page_urlstringNoThe URL of the page the script loaded on
script_versionstringNoVersion of the script running

Response

{
  "ok": true,
  "page_url": "https://yoursite.com/contact"
}

CORS

This endpoint accepts cross-origin requests (Access-Control-Allow-Origin: *). It is designed to be called from any domain by the client script.