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

Merge the given keys into the project's profile API settings; admins only. The gateway edge picks changes up when its cached profiles expire.

Parameters

project_idstringpathrequired

Request body

application/json

Profile API switches. Every field is optional on write: present keys replace, absent keys stay.

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).
{
  "cache_ttl_secs": 0,
  "enabled": true,
  "event_properties": [
    "string"
  ],
  "events_limit": 0,
  "group_properties": [
    "string"
  ],
  "include_cohorts": true,
  "include_traits": true,
  "properties": [
    "string"
  ]
}

Code samples

cURL
curl -X PUT "https://lucidace.com/v1/projects/{project_id}/settings/profiles" \
  -H "Content-Type: application/json" \
  -d '{"cache_ttl_secs":0,"enabled":true,"event_properties":["string"],"events_limit":0,"group_properties":["string"],"include_cohorts":true,"include_traits":true,"properties":["string"]}'
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 the merged settings
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).
400
403
404
GEThttps://lucidace.com/v1/projects/{project_id}/settings/quota

Parameters

project_idstringpathrequired

Code samples

cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/settings/quota"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200
Example
{
  "monthly_event_limit": 0,
  "replay_limit": 0
}
Schema
monthly_event_limitinteger
Events per calendar month; at the cap the gateway drops events (project_quota_exceeded).
replay_limitinteger
Recordings per calendar month; at the cap the gateway drops replay chunks only (project_replay_quota_exceeded).
404
PUThttps://lucidace.com/v1/projects/{project_id}/settings/quota

Replace the project's caps; admins only (an account key with the `admin` scope works, so a provisioning script can set the cap when it creates the tenant's project). The state is re-evaluated at once; the gateway picks it up within its 30 s key cache.

Parameters

project_idstringpathrequired

Request body

application/json

Both keys replace the stored caps; null or an absent key means no cap on that metric.

monthly_event_limitinteger
Events per calendar month, at least 1. At the cap the gateway drops events.
replay_limitinteger
Recordings per calendar month, at least 1. At the cap the gateway drops events.
{
  "monthly_event_limit": 0,
  "replay_limit": 0
}

Code samples

cURL
curl -X PUT "https://lucidace.com/v1/projects/{project_id}/settings/quota" \
  -H "Content-Type: application/json" \
  -d '{"monthly_event_limit":0,"replay_limit":0}'
TypeScript
Python
Go
PHP
Ruby
Java

Responses

400
403
404
GEThttps://lucidace.com/v1/projects/{project_id}/settings/sdkScope settings:read

Parameters

project_idstringpathrequired

Code samples

cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/settings/sdk"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200
Example
{
  "article_selector": "string",
  "autocapture": true,
  "autocapture_inputs": true,
  "consent_banner": {
    "accept_label": "string",
    "body": "string",
    "categories": [
      {
        "description": "string",
        "id": "string",
        "label": "string",
        "required": true
      }
    ],
    "customize_label": "string",
    "decline_label": "string",
    "position": "string",
    "title": "string"
  },
  "consent_geo_rules": [
    {
      "country": "string",
      "mode": "string",
      "region": "string"
    }
  ],
  "consent_mode": "string",
  "cookieless_mode": true,
  "flag_targeting_sources": {
    "cookies": [
      "string"
    ],
    "data_layer": [
      "string"
    ],
    "globals": [
      "string"
    ]
  },
  "heatmap_url_allowlist": [
    "string"
  ],
  "heatmaps": true,
  "mask_all_inputs": true,
  "replay_block_selectors": [
    "string"
  ],
  "replay_capture_canvas": true,
  "replay_exposure_fields": [
    "string"
  ],
  "replay_mask_all_text": true,
  "replay_mask_screens": [
    "string"
  ],
  "replay_mask_selectors": [
    "string"
  ],
  "replay_mask_text_patterns": [
    "string"
  ],
  "replay_min_duration_mode": "string",
  "replay_min_duration_ms": 0,
  "replay_never_record": [
    "string"
  ],
  "replay_retention": "string",
  "replay_sample_rate": 0,
  "replay_trigger_groups": [
    {
      "event_filters": [
        {
          "event": "string",
          "properties": [
            {
              "key": "string",
              "op": "string",
              "value": {}
            }
          ]
        }
      ],
      "events": [
        "string"
      ],
      "flag": {
        "key": "string",
        "variant": "string"
      },
      "id": "string",
      "match": "string",
      "min_duration_ms": 0,
      "name": "string",
      "sample_rate": 0,
      "url_patterns": [
        "string"
      ]
    }
  ],
  "replay_url_blocklist": [
    "string"
  ],
  "replay_url_privacy_rules": [
    {
      "block_selectors": [
        "string"
      ],
      "mask_all_text": true,
      "mask_selectors": [
        "string"
      ],
      "url": "string"
    }
  ],
  "respect_gpc": true,
  "session_idle_minutes": 0,
  "session_max_minutes": 0,
  "session_new_on_events": [
    "string"
  ],
  "session_recording": true,
  "snapshot_properties": [
    {
      "attribute": "string",
      "events": [
        "string"
      ],
      "name": "string",
      "scope": "string",
      "selector": "string",
      "source": "string",
      "url": "string"
    }
  ]
}
Schema
article_selectorstring
CSS selector of the article region for read-through metrics (N-DXA-6); pages can also mark it with data-lc-region="article".
autocaptureboolean
autocapture_inputsboolean
false stops autocapture of input, change and submit events; clicks are still captured. Default true.
consent_bannerConsentBanner
Show child parameters
accept_labelstringrequired
bodystringrequired
categoriesConsentCategory[]
Show child parameters
descriptionstring
idstringrequired
labelstringrequired
requiredboolean
Required categories cannot be declined (e.g. strictly necessary).
customize_labelstring
decline_labelstringrequired
positionstringrequired
bottom | top | center | bottom_left | bottom_right
titlestringrequired
consent_geo_rulesarray
Geo consent defaults (N-ANA-17): per country / US state, the mode a visitor starts in.
consent_modestring
off | opt_in | opt_out
cookieless_modeboolean
flag_targeting_sourcesFlagTargetingSources
Show child parameters
cookiesstring[]
data_layerstring[]
globalsstring[]
heatmap_url_allowlistarray
URL patterns (substring, * wildcard) whose pages produce heatmap data; empty = every page. The worker drops points from other pages.
heatmapsboolean
mask_all_inputsboolean
replay_block_selectorsarray
CSS selectors whose subtree is blocked in replays (on top of [data-lc-block]).
replay_capture_canvasboolean
Records canvas/WebGL content with default fps and quality (refused under the masking floor).
replay_exposure_fieldsarray
Native ids of mobile fields captured encrypted for audited reveal (P-L12).
replay_mask_all_textboolean
Mask every text node and text attribute in replays except under the site's own unmask allow-list ([data-lc-unmask], local unmask_selectors). true forces it on in the SDK.
replay_mask_screensarray
Mobile screen names (* wildcard, case-insensitive) whose replays mask all text, inputs and images (P-M17).
replay_mask_selectorsarray
CSS selectors whose text is masked in replays (on top of [data-lc-mask]).
replay_mask_text_patternsarray
Regexes masked in replay text on device (mobile) and again by the worker (P-M46).
replay_min_duration_modestring
buffer (strict: this page's recorded data) or session (session age).
replay_min_duration_msinteger
Sessions shorter than this (ms, at most 600000) are never sent.
replay_never_recordarray
URL patterns: a session that starts on one of these pages is never recorded.
replay_retentionstring
How long recordings are kept: 30d (default), 90d, 1y or 5y; the worker reads it per session.
replay_sample_ratenumber
0 to 1.
replay_trigger_groupsarray
Recording rules: which sessions are recorded (URL / event / flag conditions, per-group sampling and minimum duration).
replay_url_blocklistarray
URL patterns (substring, * wildcard) whose pages are not recorded; the worker drops them too.
replay_url_privacy_rulesarray
Page-scoped replay masking (P-M16): extra masking on pages matching each rule's URL pattern.
respect_gpcboolean
Treat the browser's Global Privacy Control signal (navigator.globalPrivacyControl) as an analytics opt-out. Unset = true when consent_mode is opt_in, else false.
session_idle_minutesinteger
Session definition (N-ANA-6): minutes without an event before a new session (1 to 1440, default 30).
session_max_minutesinteger
Longest session in minutes (5 to 10080, default 1440).
session_new_on_eventsarray
Event names that always start a new session (at most 20), e.g. login.
session_recordingboolean
snapshot_propertiesarray
No-code snapshot properties (P-M15): page text or an attribute attached to clicks and pageviews.
404

Updated