> ## Documentation Index
> Fetch the complete documentation index at: https://docs.silo-software.com/llms.txt
> Use this file to discover all available pages before exploring further.

# JavaScript Agent API Reference

> Sample endpoint and payload reference for the browser-side integration.

# 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

```http theme={"system"}
GET /v1/visitors/{visitorId}
Authorization: Bearer sk_live_example
```

```json theme={"system"}
{
  "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](/changelog/javascript-agent)
