vision
GET
https://lucidace.com /v1/projects/{project_id}/vision/scanners/{id}/impact Scope replay:readHow recordings with each answer behave (duration, activity, clicks, frustration signals) next to every observed recording: the last 500 observations of the window.
Parameters
project_idstringpathrequiredidstringpathrequireddaysintegerpathrequired1..=90 (default 30).
Code samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/vision/scanners/{id}/impact"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
Example
{
"all": {
"answer": "string",
"avg_active_s": 0,
"avg_clicks": 0,
"avg_duration_s": 0,
"avg_frustration": 0,
"observations": 0,
"persons": 0,
"share": 0
},
"answers": [
{
"answer": "string",
"avg_active_s": 0,
"avg_clicks": 0,
"avg_duration_s": 0,
"avg_frustration": 0,
"observations": 0,
"persons": 0,
"share": 0
}
],
"days": 0
}Schema
allobjectrequiredEvery observed recording, the baseline the answers compare to.
Show child parameters
answerstringrequiredThe answer bucket: a verdict, a tag, a score band (
low | middle | high) or summarized.avg_active_snumberrequiredavg_clicksnumberrequiredavg_duration_snumberrequiredavg_frustrationnumberrequiredobservationsintegerrequiredpersonsintegerrequiredsharenumberrequiredShare of the scanner's observations in the window, 0..1.
answersVisionImpactRow[]requiredShow child parameters
answerstringrequiredThe answer bucket: a verdict, a tag, a score band (
low | middle | high) or summarized.avg_active_snumberrequiredavg_clicksnumberrequiredavg_duration_snumberrequiredavg_frustrationnumberrequiredobservationsintegerrequiredpersonsintegerrequiredsharenumberrequiredShare of the scanner's observations in the window, 0..1.
daysintegerrequired400
404
503
POST
https://lucidace.com /v1/projects/{project_id}/vision/scanners/{id}/rules/suggest Scope replay:writeLearn rules from the scanner's ratings: the AI service reads each rated answer (the reasoning, the answer and the reviewer's note, PII-stripped there) and proposes short rules. Nothing is saved: the editor shows them for review.
Parameters
project_idstringpathrequiredidstringpathrequiredCode samples
cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/vision/scanners/{id}/rules/suggest"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
Example
{
"ratings": 0,
"rules": [
"string"
]
}Schema
ratingsintegerrequiredRatings the rules were learned from.
rulesstring[]requiredShort rules to add to the scanner (saved in
config.learned_rules; saving makes a new version).404
422 Fewer than 3 ratings, or none marked wrong
503
POST
https://lucidace.com /v1/projects/{project_id}/vision/scanners/{id}/scan Scope replay:writeScan recordings now with this scanner, ahead of the background sweep. One recording runs inline and returns its observation; more are queued. Works while the scanner is disabled.
Parameters
project_idstringpathrequiredidstringpathrequiredRequest body
application/json
session_idsstring[]required1 to 50 recordings. Bypasses the scanner's filters, coverage and sampling.
{
"session_ids": [
"string"
]
}Code samples
cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/vision/scanners/{id}/scan" \
-H "Content-Type: application/json" \
-d '{"session_ids":["string"]}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
Example
{
"already_observed": [
"string"
],
"observation": {
"confidence": 0,
"cost_usd": 0,
"created_at": "2024-01-01T00:00:00Z",
"detail": "string",
"distinct_id": "string",
"finished_at": "2024-01-01T00:00:00Z",
"id": "string",
"key_moment_ms": 0,
"model": "string",
"my_rating": true,
"notability": 0,
"reason": "string",
"result": {},
"scanner_id": "string",
"scanner_kind": "string",
"scanner_name": "string",
"scanner_version": 0,
"score": 0,
"session_id": "string",
"state": "string",
"tags": [
"string"
],
"tokens": 0,
"triggered_by": "string",
"triggered_user": "string",
"verdict": "string"
},
"queued": [
"string"
]
}Schema
already_observedstring[]requiredRecordings this scanner already observed: open those observations instead.
observationVisionObservationShow child parameters
confidencenumbercost_usdnumberrequiredcreated_atstringrequireddetailstringdistinct_idstringrequiredfinished_atstringidstringrequiredkey_moment_msintegermodelstringrequiredmy_ratingbooleanThe caller's rating: true up, false down, null none.
notabilitynumberreasonstringFailure / ineligibility code (
no_events, too_long, output_invalid, personal_data, ai_unavailable...).resultobjectscanner_idstringrequiredscanner_kindstringrequiredscanner_namestringrequiredscanner_versionintegerrequiredscorenumbersession_idstringrequiredstatestringrequiredpending | running | succeeded | failed | ineligibletagsstring[]requiredtokensintegerrequiredtriggered_bystringrequiredschedule | on_demand | retry | backfilltriggered_userstringverdictstringqueuedstring[]requiredNew observations (queued, or finished for a single recording).
400
404
429 The scanner's monthly limit is reached
GET
https://lucidace.com /v1/projects/{project_id}/vision/scanners/{id}/status Scope replay:readParameters
project_idstringpathrequiredidstringpathrequiredCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/vision/scanners/{id}/status"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
Example
{
"budget": {
"blocked": "string",
"cap_usd": 0,
"max_observations": 0,
"observations": 0,
"org_cap_usd": 0,
"org_used_usd": 0,
"reserved_usd": 0,
"spent_usd": 0,
"used_share": 0,
"warning": true
},
"failed_24h": 0,
"failures": [
{
"category": "string",
"count": 0,
"hint": "string",
"reason": "string"
}
],
"headline": "string",
"ineligible_24h": 0,
"last_finished_at": "2024-01-01T00:00:00Z",
"next_sweep_at": "2024-01-01T00:00:00Z",
"paused": 0,
"pending": 0,
"state": "string",
"succeeded_24h": 0,
"sweep_interval_minutes": 0
}Schema
budgetobjectrequiredWhere a scanner stands against its own and its org's limits this month.
Show child parameters
blockedstringWhy scans are refused now:
scanner_cap | org_cap | ai_off; None when they may run.cap_usdnumbermax_observationsintegerobservationsintegerrequiredorg_cap_usdnumberorg_used_usdnumberrequiredThe org's AI spend this month (all AI features) plus the project's Vision reservations.
reserved_usdnumberrequiredExpected cost of the scanner's queued and running observations.
spent_usdnumberrequiredused_sharenumber(spent + reserved) / cap, the larger of the USD and count shares;
None without caps.warningbooleanrequiredAt or past
WARN_AT of a cap.failed_24hintegerrequiredfailuresVisionFailure[]requiredFailures and ineligibility of the last 24 hours by reason, most frequent first.
Show child parameters
categorystringrequiredtransient | model | policy | data | config | unknowncountintegerrequiredhintstringrequiredreasonstringrequiredheadlinestringrequiredOne line for the strip.
ineligible_24hintegerrequiredlast_finished_atstringnext_sweep_atstringpausedintegerrequiredpendingintegerrequiredstatestringrequiredoff | blocked | failing | degraded | scanning | healthy | idlesucceeded_24hintegerrequiredsweep_interval_minutesintegerrequired404
GET
https://lucidace.com /v1/projects/{project_id}/vision/scanners/{id}/variants Scope replay:readThe experiment variants tab: the scanner's answers split by the variant each recorded person was exposed to, with per-variant summaries (LC-AI-50). Matching reuses the replay list's experiment filter, so a variant is per person, as in the replay list.
Parameters
project_idstringpathrequiredidstringpathrequiredexperiment_keystringpathrequiredThe experiment's flag key; default the scanner's
filters.experiment.key.daysintegerpathrequiredCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/vision/scanners/{id}/variants"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
Example
{
"experiment_key": "string",
"unassigned": 0,
"variants": [
{
"answers": {},
"avg_score": 0,
"observations": 0,
"summaries": [
"string"
],
"variant": "string"
}
]
}Schema
experiment_keystringrequiredunassignedintegerrequiredObserved recordings of people not exposed to the experiment.
variantsVisionVariantRow[]requiredShow child parameters
answersobjectrequiredObservations per answer bucket.
avg_scorenumberobservationsintegerrequiredsummariesstring[]requiredThe most notable answers' titles or summaries (summarizers) or reasoning, up to 5.
variantstringrequired400 No experiment key
404
503
GET
https://lucidace.com /v1/projects/{project_id}/vision/usage Scope replay:readThis month's Vision spend: total, daily series, per scanner, and a month-end projection.
Parameters
project_idstringpathrequiredCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/vision/usage"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
Example
{
"days": [
{
"cost_usd": 0,
"day": "string",
"observations": 0
}
],
"observations": 0,
"period_start": "2024-01-01T00:00:00Z",
"projected_usd": 0,
"scanners": [
{
"cost_usd": 0,
"name": "string",
"observations": 0,
"projected_usd": 0,
"scanner_id": "string",
"share": 0
}
],
"spent_usd": 0
}Schema
daysUsageDay[]requiredShow child parameters
cost_usdnumberrequireddaystringrequiredobservationsintegerrequiredobservationsintegerrequiredperiod_startstringrequiredprojected_usdnumberrequiredStraight-line projection of this month's spend to month end.
scannersUsageRow[]requiredShow child parameters
cost_usdnumberrequirednamestringrequiredobservationsintegerrequiredprojected_usdnumberrequiredscanner_idstringrequiredsharenumberrequiredShare of the month's spend, 0..1.
spent_usdnumberrequired404
Updated