vision
PUT
https://lucidace.com /v1/projects/{project_id}/vision/scanners/{id} Scope replay:writeParameters
project_idstringpathrequiredidstringpathrequiredRequest body
application/json
A scanner as sent by the editor. kind is fixed after creation.
configobjectmonitor
{inconclusive}, classifier {categories, multi, freeform}, scorer {min, max, label}, summarizer {length: short|medium|long, context}.coveragestringhigh | medium | all (default all).descriptionstringenabledbooleanfiltersobjectReplay search body (as
replays/search, without date range or paging).kindstringrequiredmonitor | classifier | scorer | summarizermodelstringmonthly_cap_usdnumbermonthly_max_observationsintegernamestringrequiredpromptstringrequiredThe question, 1 to 4000 characters.
sample_ratenumber0.001 to 1 (default 1).
tagsstring[]{
"config": {},
"coverage": "string",
"description": "string",
"enabled": true,
"filters": {},
"kind": "string",
"model": "string",
"monthly_cap_usd": 0,
"monthly_max_observations": 0,
"name": "string",
"prompt": "string",
"sample_rate": 0,
"tags": [
"string"
]
}Code samples
cURL
curl -X PUT "https://lucidace.com/v1/projects/{project_id}/vision/scanners/{id}" \
-H "Content-Type: application/json" \
-d '{"config":{},"coverage":"string","description":"string","enabled":true,"filters":{},"kind":"string","model":"string","monthly_cap_usd":0,"monthly_max_observations":0,"name":"string","prompt":"string","sample_rate":0,"tags":["string"]}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 A changed question, config, model, filters, coverage or sampling makes a new version; filter changes apply forward only
Example
{
"config": {},
"coverage": "string",
"created_at": "2024-01-01T00:00:00Z",
"created_by": "string",
"description": "string",
"enabled": true,
"filters": {},
"id": "string",
"kind": "string",
"model": "string",
"monthly_cap_usd": 0,
"monthly_max_observations": 0,
"name": "string",
"next_sweep_at": "2024-01-01T00:00:00Z",
"prompt": "string",
"sample_rate": 0,
"sweep_interval_minutes": 0,
"swept_until": "2024-01-01T00:00:00Z",
"tags": [
"string"
],
"updated_at": "2024-01-01T00:00:00Z",
"version": 0
}Schema
configobjectrequiredcoveragestringrequiredhigh (most active ~25%), medium (~65%) or all.created_atstringrequiredcreated_bystringdescriptionstringrequiredenabledbooleanrequiredfiltersobjectrequiredReplay search body (no date range or paging) choosing which recordings are scanned.
idstringrequiredkindstringrequiredmonitor | classifier | scorer | summarizer; fixed after creation.modelstringrequiredmonthly_cap_usdnumbermonthly_max_observationsintegernamestringrequirednext_sweep_atstringpromptstringrequiredsample_ratenumberrequiredsweep_interval_minutesintegerrequiredCurrent sweep cadence: 5 minutes, doubling (up to 2 hours) while sweeps find nothing new.
swept_untilstringtagsstring[]requiredupdated_atstringrequiredversionintegerrequired400 kind cannot change
404
DELETE
https://lucidace.com /v1/projects/{project_id}/vision/scanners/{id} Scope replay:writeParameters
project_idstringpathrequiredidstringpathrequiredCode samples
cURL
curl -X DELETE "https://lucidace.com/v1/projects/{project_id}/vision/scanners/{id}"TypeScript
Python
Go
PHP
Ruby
Java
Responses
204 Observations go with it; emitted events stay
404
POST
https://lucidace.com /v1/projects/{project_id}/vision/scanners/{id}/backfill Scope replay:writeScan past recordings with the scanner's current settings (filters apply; coverage and sampling do not). Queued behind on-demand scans; cancel drops what has not started.
Parameters
project_idstringpathrequiredidstringpathrequiredRequest body
application/json
dry_runbooleanOnly estimate: nothing is queued.
hoursintegerrequiredLook back this many hours (3 to 8760).
maxintegerAt most this many recordings, newest first (1 to 500).
{
"dry_run": true,
"hours": 0,
"max": 0
}Code samples
cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/vision/scanners/{id}/backfill" \
-H "Content-Type: application/json" \
-d '{"dry_run":true,"hours":0,"max":0}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
Example
{
"backfill_id": "string",
"candidates": 0,
"estimated_usd": 0,
"queued": 0
}Schema
backfill_idstringThe started backfill (history, pause and resume under
/vision/backfills/{id}).candidatesintegerrequiredMatching, eligible recordings the scanner has not observed yet.
estimated_usdnumberrequiredUpper bound: candidates times the mean cost per observation.
queuedintegerrequired400
404
429
DELETE
https://lucidace.com /v1/projects/{project_id}/vision/scanners/{id}/backfill Scope replay:writeParameters
project_idstringpathrequiredidstringpathrequiredCode samples
cURL
curl -X DELETE "https://lucidace.com/v1/projects/{project_id}/vision/scanners/{id}/backfill"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
{cancelled}: queued backfill observations dropped404
GET
https://lucidace.com /v1/projects/{project_id}/vision/scanners/{id}/backfills Scope replay:readParameters
project_idstringpathrequiredidstringpathrequiredCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/vision/scanners/{id}/backfills"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 The last 50 backfills with progress
Example
{
"data": [
{
"cost_usd": 0,
"created_at": "2024-01-01T00:00:00Z",
"created_by": "string",
"estimated_usd": 0,
"failed": 0,
"hours": 0,
"id": "string",
"ineligible": 0,
"max_recordings": 0,
"paused": 0,
"pending": 0,
"queued": 0,
"scanner_id": "string",
"state": "string",
"succeeded": 0,
"updated_at": "2024-01-01T00:00:00Z"
}
],
"next_cursor": "string"
}Schema
dataobject[]requiredShow child parameters
cost_usdnumberrequiredcreated_atstringrequiredcreated_bystringestimated_usdnumberrequiredfailedintegerrequiredhoursintegerrequiredidstringrequiredineligibleintegerrequiredmax_recordingsintegerrequiredpausedintegerrequiredpendingintegerrequiredqueuedintegerrequiredscanner_idstringrequiredstatestringrequiredrunning | paused | cancelled | done (done: running with nothing left to scan).succeededintegerrequiredupdated_atstringrequirednext_cursorstring404
POST
https://lucidace.com /v1/projects/{project_id}/vision/scanners/{id}/cohort Scope cohort:write replay:readSave the people behind one answer as a static cohort (distinct ids of the matching observations in the window, at most 2000 observations).
Parameters
project_idstringpathrequiredidstringpathrequiredRequest body
application/json
answerstringAn answer bucket from the impact panel; absent takes every observed person.
daysinteger1..=90 (default 30).
namestringrequired{
"answer": "string",
"days": 0,
"name": "string"
}Code samples
cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/vision/scanners/{id}/cohort" \
-H "Content-Type: application/json" \
-d '{"answer":"string","days":0,"name":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
201
Example
{
"added": 0,
"cohort": {
"created_at": "2024-01-01T00:00:00Z",
"created_by": "string",
"description": "string",
"filters": {},
"id": "string",
"kind": "string",
"last_computed_at": "2024-01-01T00:00:00Z",
"last_error": "string",
"member_count": 0,
"name": "string",
"realtime": true,
"status": "string",
"updated_at": "2024-01-01T00:00:00Z",
"version": 0
}
}Schema
addedintegerrequiredDistinct ids added.
cohortobjectrequiredShow child parameters
created_atstringrequiredcreated_bystringdescriptionstringrequiredfiltersobjectrequiredDynamic: the
lc-cohort definition tree. Static: {}.idstringrequiredkindstringrequiredstatic | dynamic.last_computed_atstringlast_errorstringmember_countintegernamestringrequiredrealtimebooleanrequiredDynamic cohorts: members are also added from the event stream as they qualify (G181).
statusstringrequiredpending | calculating | ready | error.updated_atstringrequiredversionintegerrequiredBumped on every definition change.
400
404
422 No one gave that answer
503
POST
https://lucidace.com /v1/projects/{project_id}/vision/scanners/{id}/duplicate Scope replay:writeParameters
project_idstringpathrequiredidstringpathrequiredCode samples
cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/vision/scanners/{id}/duplicate"TypeScript
Python
Go
PHP
Ruby
Java
Responses
201 A disabled copy; the way to rescan recordings the original already observed
Same as 200 · PUT /v1/projects/{project_id}/vision/scanners/{id}
404
Updated