Replay Vision statistics
Agency-only UTC zero-filled completed_at daily activity (default last 30 days, max90); independent current created_at month scan ceilings and flat scanner counts including zero-use scanners. Reported known BYOK spend excludes decision-model cost. scoutStats exposes separate range/current UTC month totals and per-Scout rows for all RUN attempts, including failed/cancelled/repair costs and reported/unreported call coverage, without a 1,000-row aggregate cap. Label Reported spend on scout attempts; never count against scan quota. Covers current scanners only: deleting a scanner removes its scan and Scout spend (including failed attempts) from totals.
curl -X GET "https://mythic-analytics.gulp.workers.dev/client/v1/replay-vision/stats?location_id=example_string&scanner_id=123e4567-e89b-12d3-a456-426614174000&date_from=2024-12-25&date_to=2024-12-25" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_TOKEN"
import requests
import json
url = "https://mythic-analytics.gulp.workers.dev/client/v1/replay-vision/stats?location_id=example_string&scanner_id=123e4567-e89b-12d3-a456-426614174000&date_from=2024-12-25&date_to=2024-12-25"
headers = {
"Content-Type": "application/json",
"Authorization": "Bearer YOUR_API_TOKEN"
}
response = requests.get(url, headers=headers)
print(response.json())
const response = await fetch("https://mythic-analytics.gulp.workers.dev/client/v1/replay-vision/stats?location_id=example_string&scanner_id=123e4567-e89b-12d3-a456-426614174000&date_from=2024-12-25&date_to=2024-12-25", {
method: "GET",
headers: {
"Content-Type": "application/json",
"Authorization": "Bearer YOUR_API_TOKEN"
}
});
const data = await response.json();
console.log(data);
package main
import (
"fmt"
"net/http"
)
func main() {
req, err := http.NewRequest("GET", "https://mythic-analytics.gulp.workers.dev/client/v1/replay-vision/stats?location_id=example_string&scanner_id=123e4567-e89b-12d3-a456-426614174000&date_from=2024-12-25&date_to=2024-12-25", nil)
if err != nil {
panic(err)
}
req.Header.Set("Content-Type", "application/json")
req.Header.Set("Authorization", "Bearer YOUR_API_TOKEN")
client := &http.Client{}
resp, err := client.Do(req)
if err != nil {
panic(err)
}
defer resp.Body.Close()
fmt.Println("Response Status:", resp.Status)
}
require 'net/http'
require 'json'
uri = URI('https://mythic-analytics.gulp.workers.dev/client/v1/replay-vision/stats?location_id=example_string&scanner_id=123e4567-e89b-12d3-a456-426614174000&date_from=2024-12-25&date_to=2024-12-25')
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
request = Net::HTTP::Get.new(uri)
request['Content-Type'] = 'application/json'
request['Authorization'] = 'Bearer YOUR_API_TOKEN'
response = http.request(request)
puts response.body
{
"success": true,
"data": {
"scoutStats": {
"spend_label": "Reported spend on scout attempts",
"range": {
"date_from": "2024-12-25",
"date_to": "2024-12-25",
"totals": {
"runs": 42,
"pending": 42,
"running": 42,
"succeeded": 42,
"failed": 42,
"cancelled": 42,
"provider_calls": 123,
"reported_cost_calls": 42,
"unreported_cost_calls": 42,
"input_tokens": 42,
"output_tokens": 42,
"total_tokens": 42,
"cost_usd": 3.14
},
"scouts": [
{
"runs": 42,
"pending": 42,
"running": 42,
"succeeded": 42,
"failed": 42,
"cancelled": 42,
"provider_calls": 123,
"reported_cost_calls": 42,
"unreported_cost_calls": 42,
"input_tokens": 42,
"output_tokens": 42,
"total_tokens": 42,
"cost_usd": 3.14,
"scout_id": "123e4567-e89b-12d3-a456-426614174000",
"scout_name": "John Doe",
"scanner_id": "123e4567-e89b-12d3-a456-426614174000",
"scanner_name": "John Doe",
"scanner_type": "monitor",
"location_id": "example_string",
"location_name": "John Doe"
}
]
},
"month": {
"start": "2024-12-25T10:00:00Z",
"resets_at": "2024-12-25T10:00:00Z",
"totals": {
"runs": 42,
"pending": 42,
"running": 42,
"succeeded": 42,
"failed": 42,
"cancelled": 42,
"provider_calls": 123,
"reported_cost_calls": 42,
"unreported_cost_calls": 42,
"input_tokens": 42,
"output_tokens": 42,
"total_tokens": 42,
"cost_usd": 3.14
},
"scouts": [
{
"runs": 42,
"pending": 42,
"running": 42,
"succeeded": 42,
"failed": 42,
"cancelled": 42,
"provider_calls": 123,
"reported_cost_calls": 42,
"unreported_cost_calls": 42,
"input_tokens": 42,
"output_tokens": 42,
"total_tokens": 42,
"cost_usd": 3.14,
"scout_id": "123e4567-e89b-12d3-a456-426614174000",
"scout_name": "John Doe",
"scanner_id": "123e4567-e89b-12d3-a456-426614174000",
"scanner_name": "John Doe",
"scanner_type": "monitor",
"location_id": "example_string",
"location_name": "John Doe"
}
]
}
},
"timezone": "UTC",
"date_from": "2024-12-25",
"date_to": "2024-12-25",
"spend_label": "Reported spend on completed scans",
"daily": [
{
"date": "2024-12-25",
"observations": 42,
"pending": 42,
"running": 42,
"queued": 42,
"succeeded": 42,
"failed": 42,
"ineligible": 42,
"counted_against_limit": 10,
"decision_agreed": 42,
"decision_disagreed": 42,
"cost_reported_count": 10,
"cost_unreported_count": 10,
"known_cost_usd": 3.14
}
],
"month": {
"start": "2024-12-25T10:00:00Z",
"resets_at": "2024-12-25T10:00:00Z",
"scan_limit_total": 42,
"observations": 42,
"pending": 42,
"running": 42,
"queued": 42,
"succeeded": 42,
"failed": 42,
"ineligible": 42,
"counted_against_limit": 10,
"decision_agreed": 42,
"decision_disagreed": 42,
"cost_reported_count": 10,
"cost_unreported_count": 10,
"known_cost_usd": 3.14
},
"scanners": [
{
"scanner_id": "123e4567-e89b-12d3-a456-426614174000",
"location_id": "example_string",
"name": "John Doe",
"type": "example_string",
"enabled": true,
"monthly_scan_limit": 42,
"observations": 42,
"pending": 42,
"running": 42,
"queued": 42,
"succeeded": 42,
"failed": 42,
"ineligible": 42,
"counted_against_limit": 10,
"decision_agreed": 42,
"decision_disagreed": 42,
"cost_reported_count": 10,
"cost_unreported_count": 10,
"known_cost_usd": 3.14,
"totals": {},
"this_month": {}
}
],
"totals": {},
"this_month": {},
"scanner_counts": {}
}
}
{
"error": "Bad Request",
"message": "The request contains invalid parameters or malformed data",
"code": 400,
"details": [
{
"field": "email",
"message": "Invalid email format"
}
]
}
{
"error": "Forbidden",
"message": "You don't have permission to access this resource",
"code": 403
}
{
"error": "Not Found",
"message": "The requested resource was not found",
"code": 404
}
/client/v1/replay-vision/stats
Target server for requests. Edit to use your own host.
Agency key (ak_) only; a location secret key (sk_) gets 403 agency_required. Agency-wide scoped keys (mcp_) need replay_vision:read or replay_vision:write.
ak_) only; a location secret key (sk_) gets 403 agency_required. Agency-wide scoped keys (mcp_) need replay_vision:read or replay_vision:write.Optional currently linked client; omit for agency-wide roster.
Inclusive UTC YYYY-MM-DD lower bound. Observations/reports: created_at, either bound allowed without stats cap. Stats: completed_at, max90 inclusive days; omitted from defaults to29 days before to, omitted to defaults today.
Request Preview
Response
Response will appear here after sending the request
Authentication
Bearer token. Agency key (ak_) only; a location secret key (sk_) gets 403 agency_required. Agency-wide scoped keys (mcp_) need replay_vision:read or replay_vision:write.
Query Parameters
Optional currently linked client; omit for agency-wide roster.
Inclusive UTC YYYY-MM-DD lower bound. Observations/reports: created_at, either bound allowed without stats cap. Stats: completed_at, max90 inclusive days; omitted from defaults to29 days before to, omitted to defaults today.