vision

Embed
Preview of the card
<a href="https://lucidace.com/docs/ref-vision"><img src="https://lucidace.com/docs/_api/public/orgs/af34862a-c837-4478-8335-0505efe40459/spaces/da916cd3-c0fc-4b63-b971-b3c13623daf3/pages/87a487ef-8dc2-44cb-882b-0702bf05dc81/social-card.svg?v=3e7ae33eec8b" alt="vision" width="600" height="315"></a>
GEThttps://lucidace.com/v1/projects/{project_id}/vision/scanners/{id}/impactScope replay:read

How recordings with each answer behave (duration, activity, clicks, frustration signals) next to every observed recording: the last 500 observations of the window.

Parameters

project_idstringpathrequired
idstringpathrequired
daysintegerpathrequired
1..=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
allobjectrequired
Every observed recording, the baseline the answers compare to.
Show child parameters
answerstringrequired
The answer bucket: a verdict, a tag, a score band (low | middle | high) or summarized.
avg_active_snumberrequired
avg_clicksnumberrequired
avg_duration_snumberrequired
avg_frustrationnumberrequired
observationsintegerrequired
personsintegerrequired
sharenumberrequired
Share of the scanner's observations in the window, 0..1.
answersVisionImpactRow[]required
Show child parameters
answerstringrequired
The answer bucket: a verdict, a tag, a score band (low | middle | high) or summarized.
avg_active_snumberrequired
avg_clicksnumberrequired
avg_duration_snumberrequired
avg_frustrationnumberrequired
observationsintegerrequired
personsintegerrequired
sharenumberrequired
Share of the scanner's observations in the window, 0..1.
daysintegerrequired
400
404
503
POSThttps://lucidace.com/v1/projects/{project_id}/vision/scanners/{id}/rules/suggestScope replay:write

Learn 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_idstringpathrequired
idstringpathrequired

Code 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
ratingsintegerrequired
Ratings the rules were learned from.
rulesstring[]required
Short 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
POSThttps://lucidace.com/v1/projects/{project_id}/vision/scanners/{id}/scanScope replay:write

Scan 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_idstringpathrequired
idstringpathrequired

Request body

application/json
session_idsstring[]required
1 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[]required
Recordings this scanner already observed: open those observations instead.
observationVisionObservation
Show child parameters
confidencenumber
cost_usdnumberrequired
created_atstringrequired
detailstring
distinct_idstringrequired
finished_atstring
idstringrequired
key_moment_msinteger
modelstringrequired
my_ratingboolean
The caller's rating: true up, false down, null none.
notabilitynumber
reasonstring
Failure / ineligibility code (no_events, too_long, output_invalid, personal_data, ai_unavailable...).
resultobject
scanner_idstringrequired
scanner_kindstringrequired
scanner_namestringrequired
scanner_versionintegerrequired
scorenumber
session_idstringrequired
statestringrequired
pending | running | succeeded | failed | ineligible
tagsstring[]required
tokensintegerrequired
triggered_bystringrequired
schedule | on_demand | retry | backfill
triggered_userstring
verdictstring
queuedstring[]required
New observations (queued, or finished for a single recording).
400
404
429 The scanner's monthly limit is reached
GEThttps://lucidace.com/v1/projects/{project_id}/vision/scanners/{id}/statusScope replay:read

Parameters

project_idstringpathrequired
idstringpathrequired

Code 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
budgetobjectrequired
Where a scanner stands against its own and its org's limits this month.
Show child parameters
blockedstring
Why scans are refused now: scanner_cap | org_cap | ai_off; None when they may run.
cap_usdnumber
max_observationsinteger
observationsintegerrequired
org_cap_usdnumber
org_used_usdnumberrequired
The org's AI spend this month (all AI features) plus the project's Vision reservations.
reserved_usdnumberrequired
Expected cost of the scanner's queued and running observations.
spent_usdnumberrequired
used_sharenumber
(spent + reserved) / cap, the larger of the USD and count shares; None without caps.
warningbooleanrequired
At or past WARN_AT of a cap.
failed_24hintegerrequired
failuresVisionFailure[]required
Failures and ineligibility of the last 24 hours by reason, most frequent first.
Show child parameters
categorystringrequired
transient | model | policy | data | config | unknown
countintegerrequired
hintstringrequired
reasonstringrequired
headlinestringrequired
One line for the strip.
ineligible_24hintegerrequired
last_finished_atstring
next_sweep_atstring
pausedintegerrequired
pendingintegerrequired
statestringrequired
off | blocked | failing | degraded | scanning | healthy | idle
succeeded_24hintegerrequired
sweep_interval_minutesintegerrequired
404
GEThttps://lucidace.com/v1/projects/{project_id}/vision/scanners/{id}/variantsScope replay:read

The 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_idstringpathrequired
idstringpathrequired
experiment_keystringpathrequired
The experiment's flag key; default the scanner's filters.experiment.key.
daysintegerpathrequired

Code 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_keystringrequired
unassignedintegerrequired
Observed recordings of people not exposed to the experiment.
variantsVisionVariantRow[]required
Show child parameters
answersobjectrequired
Observations per answer bucket.
avg_scorenumber
observationsintegerrequired
summariesstring[]required
The most notable answers' titles or summaries (summarizers) or reasoning, up to 5.
variantstringrequired
400 No experiment key
404
503
GEThttps://lucidace.com/v1/projects/{project_id}/vision/usageScope replay:read

This month's Vision spend: total, daily series, per scanner, and a month-end projection.

Parameters

project_idstringpathrequired

Code 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[]required
Show child parameters
cost_usdnumberrequired
daystringrequired
observationsintegerrequired
observationsintegerrequired
period_startstringrequired
projected_usdnumberrequired
Straight-line projection of this month's spend to month end.
scannersUsageRow[]required
Show child parameters
cost_usdnumberrequired
namestringrequired
observationsintegerrequired
projected_usdnumberrequired
scanner_idstringrequired
sharenumberrequired
Share of the month's spend, 0..1.
spent_usdnumberrequired
404

Updated