Getting an API Key
1. Log in and navigate to Applications (/apps).
2. Register your application and create an API key — the full key is shown once at creation time. Copy it immediately.
3. Use the placeholder ah_live_YOUR_KEY in the examples below and replace it with your actual key.
Authentication
Every collect request authenticates via an apiKey field in the JSON request body.
No HTTP headers or query-string parameters required.
{
"apiKey": "ah_live_YOUR_KEY",
...
}Environments
Include the optional environment field to tag telemetry by deployment environment.
Accepted values: Production,
Staging,
QA,
Dev.
Default: Production.
{
"apiKey": "ah_live_YOUR_KEY",
"environment": "Staging"
}Endpoints
Base URL: https://bizeyes.securitasmachina.org
Quick-Start Snippets
# 1. Create a session
SESSION=$(curl -s -X POST https://bizeyes.securitasmachina.org/api/collect/session \
-H 'Content-Type: application/json' \
-d '{"apiKey":"ah_live_YOUR_KEY","browser":"curl","environment":"Dev"}' \
| python3 -c "import sys,json; print(json.load(sys.stdin)['sessionToken'])")
# 2. Send a page view
curl -s -X POST https://bizeyes.securitasmachina.org/api/collect/pageview \
-H 'Content-Type: application/json' \
-d '{"apiKey":"ah_live_YOUR_KEY","path":"/home","sessionToken":"'$SESSION'","environment":"Dev"}'
For AI Agents (Claude)
A plain-Markdown version of this guide optimised for AI consumption is available at:
Terse integration recipe:
Obtain an API key at /apps — shown once, starts with ah_
POST /api/collect/session → extract sessionToken
POST /api/collect/pageview and /api/collect/event with the token
Optional: /api/collect/exception and /api/collect/request