Zum Hauptinhalt springen

JavaScript Agent API Reference

This page is sample reference content. It exists to make the API Reference tab feel like a real destination instead of a starter placeholder.

Authentication

All server-side API requests should use environment-specific bearer tokens. Client-side collection should never expose secrets meant for backend use.

Example response lookup

GET /v1/visitors/{visitorId}
Authorization: Bearer sk_live_example
{
  "visitorId": "vis_01JQ9FKV5R7S2M4N9G6H2K8P1A",
  "requestId": "req_01JQ9FMM1W8NQ7W6BK4VX7J2ET",
  "confidence": {
    "score": 0.98
  },
  "browser": {
    "name": "Chrome",
    "version": "137"
  },
  "device": {
    "type": "desktop"
  }
}

Notes

  • keep client and server credentials separate
  • document field semantics alongside implementation caveats
  • track shape changes in the changelog