Integration Guide

Send telemetry from any application to AnalyticsHub using simple HTTP POST calls. Works with any language — curl, JavaScript, C#, Python, and more.

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

POST
/api/collect/session

Start a user session

POST
/api/collect/pageview

Record a page view

POST
/api/collect/event

Record a custom event

POST
/api/collect/exception

Record an application exception

POST
/api/collect/request

Record an HTTP request metric

Quick-Start Snippets
curl
JavaScript
C#
Python
# 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:

GET https://bizeyes.securitasmachina.org/docs/llms.txt Download

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

build 2026-06-23 18:59 ET