projects

Embed
Preview of the card
<a href="https://lucidace.com/docs/ref-projects"><img src="https://lucidace.com/docs/_api/public/orgs/af34862a-c837-4478-8335-0505efe40459/spaces/da916cd3-c0fc-4b63-b971-b3c13623daf3/pages/6dd83cdf-cf7d-413c-ae5f-0a45491e2122/social-card.svg?v=3e7ae33eec8b" alt="projects" width="600" height="315"></a>
GEThttps://lucidace.com/v1/projects/{project_id}/sdk-healthScope settings:read

Parameters

project_idstringpathrequired
daysintegerpathrequired
Look-back window in days, 1 to 90 (default 30).
grace_daysintegerpathrequired
Days 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
daysintegerrequired
grace_daysintegerrequired
libsobject[]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
POSThttps://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_idstringpathrequired
dry_runbooleanquery
report only

Request body

application/json

POST .../settings/copy: copy settings sections from another project of the same org.

from_project_idstringrequired
The template project (same org; the caller needs read on it).
sectionsarray
sdk | 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[]required
Project columns set from the source (privacy and replay sections).
dry_runbooleanrequired
from_project_idstringrequired
sectionsstring[]required
settingsobjectrequired
Keys copied per settings.<name> object.
400
403
404
409 target is under the hipaa profile
GEThttps://lucidace.com/v1/projects/{project_id}/settings/ingestScope settings:read

Parameters

project_idstringpathrequired

Code 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_originsarray
Origins 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_urlsarray
URL 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_urlsarray
Allow-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_eventsarray
Event names never dropped by the server-event consent gate (at most 100).
drop_agent_textboolean
Drop 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_consentboolean
Legacy 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_minuteinteger
Events 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_propertiesboolean
Keep 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_seenboolean
Record 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_minutesinteger
Precision of last_seen_at in minutes, 1 to 1440. Unset = 60.
server_event_consentstring
Consent 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
PUThttps://lucidace.com/v1/projects/{project_id}/settings/ingestScope admin

Merge 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_idstringpathrequired

Request 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_originsarray
Origins 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_urlsarray
URL 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_urlsarray
Allow-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_eventsarray
Event names never dropped by the server-event consent gate (at most 100).
drop_agent_textboolean
Drop 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_consentboolean
Legacy 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_minuteinteger
Events 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_propertiesboolean
Keep 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_seenboolean
Record 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_minutesinteger
Precision of last_seen_at in minutes, 1 to 1440. Unset = 60.
server_event_consentstring
Consent 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
GEThttps://lucidace.com/v1/projects/{project_id}/settings/logdrainScope settings:read

Parameters

project_idstringpathrequired

Code 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
configuredbooleanrequired
sourcestringrequired
updated_atstring
404
PUThttps://lucidace.com/v1/projects/{project_id}/settings/logdrain/{source}Scope admin

Parameters

project_idstringpathrequired
sourcestringpathrequired

Request 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
secretstringrequired
sourcestringrequired
400
403
404
DELETEhttps://lucidace.com/v1/projects/{project_id}/settings/logdrain/{source}Scope admin

Parameters

project_idstringpathrequired
sourcestringpathrequired

Code 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
GEThttps://lucidace.com/v1/projects/{project_id}/settings/profilesScope settings:read

Parameters

project_idstringpathrequired

Code 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_secsinteger
How long the gateway edge caches a profile, 0 to 3600 seconds (default 30).
enabledboolean
Serve profiles to profiles:read keys (default false).
event_propertiesarray
Event properties served on the last events (default none: name and time only).
events_limitinteger
Last events served, 0 to 50 (default 10).
group_propertiesarray
Group properties served on group profiles.
include_cohortsboolean
Serve the person's current cohort memberships (default true).
include_traitsboolean
Serve enabled computed traits of the entity (default true).
propertiesarray
Person properties served (exact names; nothing else is ever returned).
404

Updated