list agent analytics sites.md
List Agent Analytics Sites
Returns every site with tracked visits. Use a site_id from this list to read that site's agent traffic.
OpenAPI
openapi: 3.1.0
info:
title: Lightsage Public API
description: Public API for Lightsage CLI and external integrations.
version: 1.0.0
servers:
- url: https://api.lightsage.com
description: Production
security: []
tags:
- name: Status
description: Check API availability and validate the calling API key.
- name: Visibility
description: >-
Measure visibility, citations, competitors, and prompt performance across
answer platforms.
- name: Prompts
description: Manage tracked prompts and topics, and inspect their stored runs.
- name: Opportunities
description: Review ranked opportunities computed from prompt visibility results.
- name: Tasks
description: Manage the persisted action queue and task lifecycle.
- name: Site Audits
description: Review website audit results and page-level findings.
- name: Agent Analytics
description: >-
See which coding agents, AI bots, and people visit your tracked sites,
which pages they read, which pages return errors, and where the visits
come from.
- name: Evals
description: Define eval tasks, judges, subjects, and saved configurations.
- name: Eval Templates
description: >-
Select reusable judges, targets, schedules, metadata, and runtime settings
with `POST /v2/eval-templates`, then copy only those settings into
prompt-specific evals with `POST /v2/evals/batch`. Templates never contain
prompts and remain independent from evals created from them.
- name: Eval Runs
description: Start eval runs and inspect their lifecycle state.
- name: Eval Results
description: Review completed eval outcomes and diagnostic details.
- name: Agent Preference
description: >-
Compare your company head-to-head with a tracked competitor. Create a
comparison with `POST /v2/agent-preference/evals`, run it with `POST
/v2/eval-runs`, then read which company agents recommended.
- name: Agents
description: List runnable coding-agent harness and model combinations.
- name: Repositories
description: Manage reusable Git repository workspaces.
- name: Environments
description: List reusable runtime environments without exposing secret values.
- name: MCP Servers
description: List reusable MCP server integrations without exposing credentials.
- name: CLIs
description: List reusable command-line interfaces without exposing setup commands.
- name: Skills
description: List reusable skills available to workflows and evals.
paths:
/v2/agent-analytics/sites:
get:
tags:
- Agent Analytics
summary: List Agent Analytics Sites
description: >-
Returns every site with tracked visits. Use a `site_id` from this list
to read that site's agent traffic.
operationId: v2_agent_analytics_sites_list
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/PublicAgentAnalyticsSiteListResponse'
security:
- LightsageApiKeyAuth: []
components:
schemas:
PublicAgentAnalyticsSiteListResponse:
properties:
sites:
items:
$ref: '#/components/schemas/PublicAgentAnalyticsSite'
type: array
title: Sites
type: object
title: PublicAgentAnalyticsSiteListResponse
PublicAgentAnalyticsSite:
properties:
site_id:
type: string
title: Site Id
domain:
type: string
title: Domain
source:
anyOf:
- type: string
- type: 'null'
title: Source
description: 'Kind of site: `website`, `docs`, `app`, or `blog`.'
created_at:
anyOf:
- type: string
- type: 'null'
title: Created At
description: When the first tracked visit created the site.
type: object
required:
- site_id
- domain
title: PublicAgentAnalyticsSite
securitySchemes:
LightsageApiKeyAuth:
type: apiKey
in: header
name: X-Lightsage-Api-Key