Vision
For instructions on how to authenticate to use this endpoint, see API overview.
Endpoints
GET | |
GET | |
GET | |
GET | |
POST | |
GET | |
PATCH | |
DELETE | |
POST | |
GET | |
GET | |
GET | |
GET | |
POST | |
GET | |
GET | |
POST | |
GET | |
PATCH | |
DELETE |
List all environments vision observations
Read-only access to a session's observations across every scanner the caller can read, for the replay-page dock.
Required API key scopes
replay_scanner:readsession_recording:readQuery 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
Response
Example request
GET /api /environments /:environment_id /vision /observationsExample response
Status 200
Retrieve environments vision observations
Read-only access to a session's observations across every scanner the caller can read, for the replay-page dock.
Required API key scopes
replay_scanner:readsession_recording:readPath parameters
- idstring
Response
Example request
GET /api /environments /:environment_id /vision /observations /:idExample response
Status 200
Retrieve environments environment vision quota
Required API key scopes
replay_scanner:readResponse
Example request
GET /api /environments /:environment_id /vision /quotaExample response
Status 200
List all environments vision scanners
CRUD for Replay Vision scanners.
Required API key scopes
replay_scanner:readQuery parameters
- created_bystring
- emits_signalsboolean
- enabledstring
- limitinteger
- offsetinteger
- order_bystringOne of:
"-created_at""-created_by""-enabled""-name""-sampling_rate""-scanner_type""-updated_at""created_at""created_by""enabled""name""sampling_rate""scanner_type""updated_at" - scanner_typestring
- searchstring
Response
Example request
GET /api /environments /:environment_id /vision /scannersExample response
Status 200
Create environments vision scanners
CRUD for Replay Vision scanners.
Required API key scopes
replay_scanner:writesession_recording:readRequest parameters
- namestring
- descriptionstring
- scanner_type
- scanner_config
- query
- sampling_ratenumber
- provider
- model
- enabledboolean
- emits_signalsboolean
Response
Example request
POST /api /environments /:environment_id /vision /scannersExample response
Status 201
Retrieve environments vision scanners
CRUD for Replay Vision scanners.
Required API key scopes
replay_scanner:readPath parameters
- idstring
Response
Example request
GET /api /environments /:environment_id /vision /scanners /:idExample response
Status 200
Update environments 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 /environments /:environment_id /vision /scanners /:idExample response
Status 200
Delete environments vision scanners
CRUD for Replay Vision scanners.
Required API key scopes
replay_scanner:writePath parameters
- idstring
Example request
DELETE /api /environments /:environment_id /vision /scanners /:idExample response
Status 204 No response body
Create environments 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 /environments /:environment_id /vision /scanners /:id /observeExample response
Status 202
List all environments 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 /environments /:environment_id /vision /scanners /:scanner_id /observationsExample response
Status 200
Retrieve environments 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 /environments /:environment_id /vision /scanners /:scanner_id /observations /:idExample response
Status 200
Retrieve environments 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 /environments /:environment_id /vision /scanners /:scanner_id /observations /statsExample response
Status 200
Retrieve environments 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 /environments /:environment_id /vision /scanners /creatorsExample response
Status 200
Create environments 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 /environments /:environment_id /vision /scanners /estimateExample response
Status 200
Retrieve environments 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 /environments /:environment_id /vision /scanners /statsExample response
Status 200
List all vision actions
CRUD for Replay Vision actions — scheduled "and then…" automations over a scanner's observations.
Required API key scopes
vision_action:readQuery parameters
- limitinteger
- offsetinteger
- scannerstring
Response
Example request
GET /api /projects /:project_id /vision /actionsExample response
Status 200
Create vision actions
CRUD for Replay Vision actions — scheduled "and then…" automations over a scanner's observations.
Required API key scopes
vision_action:writesession_recording:readRequest parameters
- namestring
- scannerstring
- enabledboolean
- trigger_type
- mode
- trigger_config
- selection
- synthesis_config
- delivery_configarray
Response
Example request
POST /api /projects /:project_id /vision /actionsExample response
Status 201
Retrieve vision actions
CRUD for Replay Vision actions — scheduled "and then…" automations over a scanner's observations.
Required API key scopes
vision_action:readPath parameters
- idstring
Response
Example request
GET /api /projects /:project_id /vision /actions /:idExample response
Status 200
Update vision actions
CRUD for Replay Vision actions — scheduled "and then…" automations over a scanner's observations.
Required API key scopes
vision_action:writesession_recording:readPath parameters
- idstring
Request parameters
- namestring
- scannerstring
- enabledboolean
- trigger_type
- mode
- trigger_config
- selection
- synthesis_config
- delivery_configarray
Response
Example request
PATCH /api /projects /:project_id /vision /actions /:idExample response
Status 200
Delete vision actions
CRUD for Replay Vision actions — scheduled "and then…" automations over a scanner's observations.
Required API key scopes
vision_action:writePath parameters
- idstring
Example request
DELETE /api /projects /:project_id /vision /actions /:id