agent-telemetry

Count Agent Telemetry

Changed on

Total agent_telemetry rows matching the given filters (standalone).

The filter set mirrors the purge endpoint's, so this sizes exactly what a "delete all N matching" would remove. Behavioral and metric rows are counted together: neither this nor the purge distinguishes them. Master-key only.

get/api/v1/agent-telemetry/count

Request

  • The document declares no server URL.
  • Auth: one of:
    • API key in header Otari-Key
    • API key in header x-api-key

Query parameters

start_datestring date-time nullable

Return rows with timestamp >= start_date (ISO 8601 or Unix epoch seconds)

end_datestring date-time nullable

Return rows with timestamp < end_date (ISO 8601 or Unix epoch seconds)

user_idstring[] nullable

Filter to one or more users; repeatable (user_id=a&user_id=b). Several values match any of them. At most 50 per call.

api_key_idstring[] nullable

Filter to one or more API key ids; repeatable (api_key_id=a&api_key_id=b). Several values match any of them. At most 50 per call.

namestring nullable

Filter to a single event type or metric name (e.g. 'tool_result', 'claude_code.commit.count')

Response

Successful Response

totalinteger required

Changes

    • info

      added the optional property to the response with the status

    • info

      api operation id count_agent_telemetry_api_v1_agent_telemetry_count_get removed and replaced with agent-telemetry-count_agent_telemetry