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>
PUThttps://lucidace.com/v1/projects/{project_id}/vision/scanners/{id}Scope replay:write

Parameters

project_idstringpathrequired
idstringpathrequired

Request body

application/json

A scanner as sent by the editor. kind is fixed after creation.

configobject
monitor {inconclusive}, classifier {categories, multi, freeform}, scorer {min, max, label}, summarizer {length: short|medium|long, context}.
coveragestring
high | medium | all (default all).
descriptionstring
enabledboolean
filtersobject
Replay search body (as replays/search, without date range or paging).
kindstringrequired
monitor | classifier | scorer | summarizer
modelstring
monthly_cap_usdnumber
monthly_max_observationsinteger
namestringrequired
promptstringrequired
The question, 1 to 4000 characters.
sample_ratenumber
0.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
configobjectrequired
coveragestringrequired
high (most active ~25%), medium (~65%) or all.
created_atstringrequired
created_bystring
descriptionstringrequired
enabledbooleanrequired
filtersobjectrequired
Replay search body (no date range or paging) choosing which recordings are scanned.
idstringrequired
kindstringrequired
monitor | classifier | scorer | summarizer; fixed after creation.
modelstringrequired
monthly_cap_usdnumber
monthly_max_observationsinteger
namestringrequired
next_sweep_atstring
promptstringrequired
sample_ratenumberrequired
sweep_interval_minutesintegerrequired
Current sweep cadence: 5 minutes, doubling (up to 2 hours) while sweeps find nothing new.
swept_untilstring
tagsstring[]required
updated_atstringrequired
versionintegerrequired
400 kind cannot change
404
DELETEhttps://lucidace.com/v1/projects/{project_id}/vision/scanners/{id}Scope replay:write

Parameters

project_idstringpathrequired
idstringpathrequired

Code 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
POSThttps://lucidace.com/v1/projects/{project_id}/vision/scanners/{id}/backfillScope replay:write

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

Request body

application/json
dry_runboolean
Only estimate: nothing is queued.
hoursintegerrequired
Look back this many hours (3 to 8760).
maxinteger
At 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_idstring
The started backfill (history, pause and resume under /vision/backfills/{id}).
candidatesintegerrequired
Matching, eligible recordings the scanner has not observed yet.
estimated_usdnumberrequired
Upper bound: candidates times the mean cost per observation.
queuedintegerrequired
400
404
429
DELETEhttps://lucidace.com/v1/projects/{project_id}/vision/scanners/{id}/backfillScope replay:write

Parameters

project_idstringpathrequired
idstringpathrequired

Code 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 dropped
404
GEThttps://lucidace.com/v1/projects/{project_id}/vision/scanners/{id}/backfillsScope replay:read

Parameters

project_idstringpathrequired
idstringpathrequired

Code 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[]required
Show child parameters
cost_usdnumberrequired
created_atstringrequired
created_bystring
estimated_usdnumberrequired
failedintegerrequired
hoursintegerrequired
idstringrequired
ineligibleintegerrequired
max_recordingsintegerrequired
pausedintegerrequired
pendingintegerrequired
queuedintegerrequired
scanner_idstringrequired
statestringrequired
running | paused | cancelled | done (done: running with nothing left to scan).
succeededintegerrequired
updated_atstringrequired
next_cursorstring
404
POSThttps://lucidace.com/v1/projects/{project_id}/vision/scanners/{id}/cohortScope cohort:write replay:read

Save the people behind one answer as a static cohort (distinct ids of the matching observations in the window, at most 2000 observations).

Parameters

project_idstringpathrequired
idstringpathrequired

Request body

application/json
answerstring
An answer bucket from the impact panel; absent takes every observed person.
daysinteger
1..=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
addedintegerrequired
Distinct ids added.
cohortobjectrequired
Show child parameters
created_atstringrequired
created_bystring
descriptionstringrequired
filtersobjectrequired
Dynamic: the lc-cohort definition tree. Static: {}.
idstringrequired
kindstringrequired
static | dynamic.
last_computed_atstring
last_errorstring
member_countinteger
namestringrequired
realtimebooleanrequired
Dynamic cohorts: members are also added from the event stream as they qualify (G181).
statusstringrequired
pending | calculating | ready | error.
updated_atstringrequired
versionintegerrequired
Bumped on every definition change.
400
404
422 No one gave that answer
503
POSThttps://lucidace.com/v1/projects/{project_id}/vision/scanners/{id}/duplicateScope replay:write

Parameters

project_idstringpathrequired
idstringpathrequired

Code 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