projects
GET
https://lucidace.com /v1/projects/{project_id}/sdk-health Scope settings:readParameters
project_idstringpathrequireddaysintegerpathrequiredLook-back window in days, 1 to 90 (default 30).
grace_daysintegerpathrequiredDays after a newer release before older versions count as outdated (default 30).
Code samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/sdk-health"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
Example
{
"days": 0,
"grace_days": 0,
"libs": [
{}
],
"rows": [
{}
]
}Schema
daysintegerrequiredgrace_daysintegerrequiredlibsobject[]required{lib, versions, events, latest, latest_share, behind_share} per SDK.rowsobject[]required{lib, version, events, last_seen, latest, status, reason, released_at, in_registry}; status is known_bad, major_behind, stale, outdated, grace, current or unknown.400
404
503
POST
https://lucidace.com /v1/projects/{project_id}/settings/copy Copies the chosen settings sections from a project of the same org onto this one: keys the source sets overwrite, other keys stay. Never copies keys, members, data, secrets or the origin allow-list. Needs read on the source and admin on the target; an inaccessible or foreign source is a 404. `?dry_run=true` reports what would be copied without writing.
Parameters
project_idstringpathrequireddry_runbooleanqueryreport only
Request body
application/json
POST .../settings/copy: copy settings sections from another project of the same org.
from_project_idstringrequiredThe template project (same org; the caller needs read on it).
sectionsarraysdk | ingest | replay | privacy | identity | profiles | guides; default all. replay and privacy are the replay and consent/IP subsets of sdk plus their project columns.{
"from_project_id": "string",
"sections": [
"string"
]
}Code samples
cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/settings/copy" \
-H "Content-Type: application/json" \
-d '{"from_project_id":"string","sections":["string"]}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
Example
{
"columns": [
"string"
],
"dry_run": true,
"from_project_id": "string",
"sections": [
"string"
],
"settings": {}
}Schema
columnsstring[]requiredProject columns set from the source (privacy and replay sections).
dry_runbooleanrequiredfrom_project_idstringrequiredsectionsstring[]requiredsettingsobjectrequiredKeys copied per
settings.<name> object.400
403
404
409 target is under the hipaa profile
GET
https://lucidace.com /v1/projects/{project_id}/settings/ingest Scope settings:readParameters
project_idstringpathrequiredCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/settings/ingest"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
Example
{
"capture_allowed_origins": [
"string"
],
"capture_exclude_urls": [
"string"
],
"capture_include_urls": [
"string"
],
"consent_exempt_events": [
"string"
],
"drop_agent_text": true,
"drop_server_events_without_consent": true,
"hot_distinct_id_per_minute": 0,
"nps_person_properties": true,
"person_last_seen": true,
"person_last_seen_minutes": 0,
"server_event_consent": "string"
}Schema
capture_allowed_originsarrayOrigins allowed to send events with the project's PUBLIC key, e.g.
https://example.com, *.example.com (any subdomain) or http://localhost:* (any port). Empty or unset = any origin. When set, public-key capture from another origin, or with no Origin/Referer, is acknowledged and dropped with an origin_not_allowed warning. Secret keys are never filtered. At most 100 origins of 200 characters.capture_exclude_urlsarrayURL patterns for ALL capture (not just replay): the gateway drops every event whose
$current_url matches, whatever the site's code does. Same syntax as the replay URL lists: substring, * wildcard, case-insensitive; a re: prefix is a regular expression. At most 100 patterns of 200 characters. Drops are counted as capture_excluded in the drop stats.capture_include_urlsarrayAllow-list for ALL capture: when non-empty, the gateway drops every event whose
$current_url matches none of the patterns (events without a URL, such as server events, are kept). Patterns: a path glob starting with / (/dashboard/*, /pricing, /) matched from the start of the URL path (query ignored); a URL prefix (https://host/storefront/shop-a/); otherwise the capture_exclude_urls syntax (substring, * wildcard, re: regular expression), case-insensitive. Applied after capture_exclude_urls. At most 100 patterns of 200 characters. Drops are counted as url_not_included ingestion warnings.consent_exempt_eventsarrayEvent names never dropped by the server-event consent gate (at most 100).
drop_agent_textbooleanDrop agent analytics text (
$ai_text, $ai_feedback_comment) at ingestion even when an SDK sends it (P-AGENT). Unset = keep what the SDK sent (it only sends redacted text when captureText is on).drop_server_events_without_consentbooleanLegacy alias of
server_event_consent: "drop_denied" (true) : drop events sent with a secret key (server events) for persons whose $consent_analytics is denied. Unset = false. Ignored when server_event_consent is set. Drops show up as consent_denied ingestion warnings.hot_distinct_id_per_minuteintegerEvents per minute one distinct id may send before the excess is routed to the overflow lane (no person processing, an
overflow ingestion warning). Unset = 6000; 0 = never.nps_person_propertiesbooleanKeep the person properties
nps_latest (0-10), nps_band (detractor, passive, promoter) and nps_at up to date from NPS survey answers; the answer with the latest timestamp wins. Personless events are skipped. Unset or null = true (on); false stops it.person_last_seenbooleanRecord
persons.last_seen_at (floored to person_last_seen_minutes, so at most one extra person write per active step). Events can opt out with $update_person_last_seen_at: false.person_last_seen_minutesintegerPrecision of
last_seen_at in minutes, 1 to 1440. Unset = 60.server_event_consentstringConsent gate for secret-key (server) events:
off (default), drop_denied (drop persons whose $consent_analytics is denied, consent_denied warning) or require_granted (also drop events with no grant: kept only when the event's own or the person's $consent_analytics is granted, else a consent_missing warning).404
PUT
https://lucidace.com /v1/projects/{project_id}/settings/ingest Scope adminMerge the given keys into the project's ingestion settings; admins only. The gateway and worker pick changes up within their 30-60 s caches.
Parameters
project_idstringpathrequiredRequest body
application/json
Ingestion switches. Every field is optional on write: present keys replace, null clears a key (back to its default), absent keys stay.
capture_allowed_originsarrayOrigins allowed to send events with the project's PUBLIC key, e.g.
https://example.com, *.example.com (any subdomain) or http://localhost:* (any port). Empty or unset = any origin. When set, public-key capture from another origin, or with no Origin/Referer, is acknowledged and dropped with an origin_not_allowed warning. Secret keys are never filtered. At most 100 origins of 200 characters.capture_exclude_urlsarrayURL patterns for ALL capture (not just replay): the gateway drops every event whose
$current_url matches, whatever the site's code does. Same syntax as the replay URL lists: substring, * wildcard, case-insensitive; a re: prefix is a regular expression. At most 100 patterns of 200 characters. Drops are counted as capture_excluded in the drop stats.capture_include_urlsarrayAllow-list for ALL capture: when non-empty, the gateway drops every event whose
$current_url matches none of the patterns (events without a URL, such as server events, are kept). Patterns: a path glob starting with / (/dashboard/*, /pricing, /) matched from the start of the URL path (query ignored); a URL prefix (https://host/storefront/shop-a/); otherwise the capture_exclude_urls syntax (substring, * wildcard, re: regular expression), case-insensitive. Applied after capture_exclude_urls. At most 100 patterns of 200 characters. Drops are counted as url_not_included ingestion warnings.consent_exempt_eventsarrayEvent names never dropped by the server-event consent gate (at most 100).
drop_agent_textbooleanDrop agent analytics text (
$ai_text, $ai_feedback_comment) at ingestion even when an SDK sends it (P-AGENT). Unset = keep what the SDK sent (it only sends redacted text when captureText is on).drop_server_events_without_consentbooleanLegacy alias of
server_event_consent: "drop_denied" (true) : drop events sent with a secret key (server events) for persons whose $consent_analytics is denied. Unset = false. Ignored when server_event_consent is set. Drops show up as consent_denied ingestion warnings.hot_distinct_id_per_minuteintegerEvents per minute one distinct id may send before the excess is routed to the overflow lane (no person processing, an
overflow ingestion warning). Unset = 6000; 0 = never.nps_person_propertiesbooleanKeep the person properties
nps_latest (0-10), nps_band (detractor, passive, promoter) and nps_at up to date from NPS survey answers; the answer with the latest timestamp wins. Personless events are skipped. Unset or null = true (on); false stops it.person_last_seenbooleanRecord
persons.last_seen_at (floored to person_last_seen_minutes, so at most one extra person write per active step). Events can opt out with $update_person_last_seen_at: false.person_last_seen_minutesintegerPrecision of
last_seen_at in minutes, 1 to 1440. Unset = 60.server_event_consentstringConsent gate for secret-key (server) events:
off (default), drop_denied (drop persons whose $consent_analytics is denied, consent_denied warning) or require_granted (also drop events with no grant: kept only when the event's own or the person's $consent_analytics is granted, else a consent_missing warning).{
"capture_allowed_origins": [
"string"
],
"capture_exclude_urls": [
"string"
],
"capture_include_urls": [
"string"
],
"consent_exempt_events": [
"string"
],
"drop_agent_text": true,
"drop_server_events_without_consent": true,
"hot_distinct_id_per_minute": 0,
"nps_person_properties": true,
"person_last_seen": true,
"person_last_seen_minutes": 0,
"server_event_consent": "string"
}Code samples
cURL
curl -X PUT "https://lucidace.com/v1/projects/{project_id}/settings/ingest" \
-H "Content-Type: application/json" \
-d '{"capture_allowed_origins":["string"],"capture_exclude_urls":["string"],"capture_include_urls":["string"],"consent_exempt_events":["string"],"drop_agent_text":true,"drop_server_events_without_consent":true,"hot_distinct_id_per_minute":0,"nps_person_properties":true,"person_last_seen":true,"person_last_seen_minutes":0,"server_event_consent":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
400
403
404
GET
https://lucidace.com /v1/projects/{project_id}/settings/logdrain Scope settings:readParameters
project_idstringpathrequiredCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/settings/logdrain"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
Example
[
{
"configured": true,
"source": "string",
"updated_at": "string"
}
]Schema
configuredbooleanrequiredsourcestringrequiredupdated_atstring404
PUT
https://lucidace.com /v1/projects/{project_id}/settings/logdrain/{source} Scope adminParameters
project_idstringpathrequiredsourcestringpathrequiredRequest body
application/json
Set a drain secret: the one the sender was given (Vercel shows it when the drain is created), or omit it and a new one is generated.
secretstring{
"secret": "string"
}Code samples
cURL
curl -X PUT "https://lucidace.com/v1/projects/{project_id}/settings/logdrain/{source}" \
-H "Content-Type: application/json" \
-d '{"secret":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 the secret, shown once
Example
{
"secret": "string",
"source": "string"
}Schema
secretstringrequiredsourcestringrequired400
403
404
DELETE
https://lucidace.com /v1/projects/{project_id}/settings/logdrain/{source} Scope adminParameters
project_idstringpathrequiredsourcestringpathrequiredCode samples
cURL
curl -X DELETE "https://lucidace.com/v1/projects/{project_id}/settings/logdrain/{source}"TypeScript
Python
Go
PHP
Ruby
Java
Responses
204
403
404
GET
https://lucidace.com /v1/projects/{project_id}/settings/profiles Scope settings:readParameters
project_idstringpathrequiredCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/settings/profiles"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
Example
{
"cache_ttl_secs": 0,
"enabled": true,
"event_properties": [
"string"
],
"events_limit": 0,
"group_properties": [
"string"
],
"include_cohorts": true,
"include_traits": true,
"properties": [
"string"
]
}Schema
cache_ttl_secsintegerHow long the gateway edge caches a profile, 0 to 3600 seconds (default 30).
enabledbooleanServe profiles to
profiles:read keys (default false).event_propertiesarrayEvent properties served on the last events (default none: name and time only).
events_limitintegerLast events served, 0 to 50 (default 10).
group_propertiesarrayGroup properties served on group profiles.
include_cohortsbooleanServe the person's current cohort memberships (default true).
include_traitsbooleanServe enabled computed traits of the entity (default true).
propertiesarrayPerson properties served (exact names; nothing else is ever returned).
404
Updated