Vision-2
For instructions on how to authenticate to use this endpoint, see API overview.
Endpoints
GET | |
PATCH | |
DELETE | |
POST | |
GET | |
GET | |
GET | |
GET | |
POST | |
GET |
Retrieve vision scanners
CRUD for Replay Vision scanners.
Required API key scopes
replay_scanner:readPath parameters
- idstring
Response
Example request
GET /api /projects /:project_id /vision /scanners /:idExample response
Status 200
Update vision scanners
CRUD for Replay Vision scanners.
Required API key scopes
replay_scanner:writesession_recording:readPath parameters
- idstring
Request parameters
- namestring
- descriptionstring
- scanner_type
- scanner_config
- query
- sampling_ratenumber
- provider
- model
- enabledboolean
- emits_signalsboolean
Response
Example request
PATCH /api /projects /:project_id /vision /scanners /:idExample response
Status 200
Delete vision scanners
CRUD for Replay Vision scanners.
Required API key scopes
replay_scanner:writePath parameters
- idstring
Example request
DELETE /api /projects /:project_id /vision /scanners /:idExample response
Status 204 No response body
Create vision scanners observe
Apply this scanner to one specific session, on demand. Returns 202 with the workflow handle.
Required API key scopes
replay_scanner:writesession_recording:readPath parameters
- idstring
Request parameters
- session_idstring
Response
Example request
POST /api /projects /:project_id /vision /scanners /:id /observeExample response
Status 202
List all vision scanners observations
Read-only access to observations produced by a scanner.
Required API key scopes
replay_scanner:readsession_recording:readPath parameters
- scanner_idstring
Query parameters
- limitinteger
- offsetinteger
- order_bystringOne of:
"-completed_at""-created_at""-result_score""-result_verdict""-scanner_version""-started_at""-status""completed_at""created_at""result_score""result_verdict""scanner_version""started_at""status" - session_idstring
- statusstring
- tagsstring
- triggered_bystring
- verdictstring
Response
Example request
GET /api /projects /:project_id /vision /scanners /:scanner_id /observationsExample response
Status 200
Retrieve vision scanners observations
Read-only access to observations produced by a scanner.
Required API key scopes
replay_scanner:readsession_recording:readPath parameters
- idstring
- scanner_idstring
Response
Example request
GET /api /projects /:project_id /vision /scanners /:scanner_id /observations /:idExample response
Status 200
Retrieve vision scanners observations stats
Aggregate counts and per-scanner-type distributions over the filtered observation set. Same filters as the list endpoint apply.
Required API key scopes
replay_scanner:readsession_recording:readPath parameters
- scanner_idstring
Query parameters
- recent_daysinteger
- session_idstring
- statusstring
- tagsstring
- triggered_bystring
- verdictstring
Response
Example request
GET /api /projects /:project_id /vision /scanners /:scanner_id /observations /statsExample response
Status 200
Retrieve vision scanners creators
Distinct creators across the team's scanners — feeds the Created by filter dropdown.
Required API key scopes
replay_scanner:readResponse
Example request
GET /api /projects /:project_id /vision /scanners /creatorsExample response
Status 200
Create vision scanners estimate
Estimate the observation volume a proposed scanner would generate, for the pre-save cost preview.
Required API key scopes
replay_scanner:readsession_recording:readRequest parameters
- query
- sampling_ratenumberDefault:
1
Response
Example request
POST /api /projects /:project_id /vision /scanners /estimateExample response
Status 200
Retrieve vision scanners stats
Team-wide scanner counts — independent of list filters, so the overview stays stable.
Required API key scopes
replay_scanner:readResponse
Example request
GET /api /projects /:project_id /vision /scanners /stats