Skip to content

List visibility runs

Lists direct AI Visibility runs for the authenticated user.

This endpoint lists runs created through API or MCP. Saved Console test history is available through saved-test report endpoints.

GET /v1/visibility/runs
HeaderRequiredValue
AuthorizationYesBearer sw_api_live_...

Required scope:

runs:read
ParameterTypeRequiredDescription
statusstringNoFilter by run status.
limitintegerNoNumber of runs to return. Clamped between 1 and 100. Defaults to 20.
starting_afterstringNoCursor run ID from the previous page.

Results are sorted by created_at descending.

Terminal window
curl -s "https://api.sleepwalker.ai/v1/visibility/runs?limit=20" \
-H "Authorization: Bearer sw_api_live_..."

The same request in Python and JavaScript:

Python
import requests
resp = requests.get(
"https://api.sleepwalker.ai/v1/visibility/runs",
headers={"Authorization": "Bearer sw_api_live_..."},
params={"limit": 20},
)
resp.raise_for_status()
print(resp.json())
JavaScript
const resp = await fetch("https://api.sleepwalker.ai/v1/visibility/runs?limit=20", {
headers: { Authorization: "Bearer sw_api_live_..." },
});
const data = await resp.json();
console.log(data);
{
"runs": [
{
"run_id": "6a75b22b-...",
"status": "completed",
"source": "api",
"created_at": "2026-06-10T12:30:00Z",
"started_at": "2026-06-10T12:30:05Z",
"completed_at": "2026-06-10T12:31:10Z",
"url": "https://www.sleepwalker.ai",
"target_entity": "Sleepwalker",
"language": "en",
"country": "US",
"requested_probe_count": 4,
"queued_probe_count": 4,
"running_probe_count": 0,
"succeeded_probe_count": 4,
"errored_probe_count": 0,
"cancelled_probe_count": 0,
"estimated_credits": "4.00",
"settled_credits": "4.00",
"summary": {
"brand_mentions": 2,
"citation_mentions": 1
}
}
],
"limit": 20,
"has_more": false,
"next_starting_after": null
}

See Pagination for cursor behavior.

StatusMeaning
401Missing or invalid API key.
400Invalid cursor.
403API key is missing runs:read, or this action is unavailable.