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}/storageScope settings:read

The browser storage this project makes the SDK write.

Parameters

project_idstringpathrequired
persistencestringpathrequired
The persistence the site passes to the SDK in code (a page setting, not a project setting): cookie (default), localStorage, sessionStorage, localStorage+cookie, memory or none.
cross_subdomainbooleanpathrequired
The site sets cookie.crossSubdomain: true.
formatstringpathrequired
cookiemunch returns the items as a Cookie Munch cookie declaration ({version, vendor, items: [{name, storage, category, purpose, duration, gated_by, audience}]}). This format also lists teammate / QA keys with audience: "team" (visitor keys are "visitor"), and its version hashes those items.

Code samples

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

Responses

200
Example
{
  "cross_subdomain": true,
  "default_persistence": "string",
  "items": [
    {
      "category": "string",
      "expiry": "string",
      "gated_by": "string",
      "name": "string",
      "purpose": "string",
      "store": "string"
    }
  ],
  "suffix_rule": "string",
  "updated": "2024-01-01T00:00:00Z",
  "version": "string"
}
Schema
cross_subdomainbooleanrequired
default_persistencestringrequired
The persistence mode the list was computed for (default cookie).
itemsStorageItem[]required
Show child parameters
categorystringrequired
necessary, statistics or marketing.
expirystringrequired
gated_bystring
Consent category that must be granted before the key is written (analytics, replay), or null.
namestringrequired
Raw key name; keys marked in suffix_rule carry the public-key suffix on the page.
purposestringrequired
storestringrequired
cookie, localStorage, sessionStorage or cookie+localStorage.
suffix_rulestringrequired
How suffixed keys are named on the page.
updatedstringrequired
When the project settings last changed.
versionstringrequired
Hash of the rest of this document: changes when the key list does.
400
404
POSThttps://lucidace.com/v1/projects/{project_id}/test-project

Creates a project with is_test = true and copies actions, cohorts, flags (disabled), insights and dashboards from the source. No events or persons are copied.

Parameters

project_idstringpathrequired

Request body

application/json
namestring
Defaults to "<source name> (test)".
{
  "name": "string"
}

Code samples

cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/test-project" \
  -H "Content-Type: application/json" \
  -d '{"name":"string"}'
TypeScript
Python
Go
PHP
Ruby
Java

Responses

201
Example
{
  "environments": [
    {
      "id": "string",
      "is_default": true,
      "name": "string"
    }
  ],
  "keys": [
    {
      "created_at": "2024-01-01T00:00:00Z",
      "created_by": "string",
      "environment": "string",
      "expires_at": "2024-01-01T00:00:00Z",
      "id": "string",
      "key_prefix": "string",
      "kind": "string",
      "last_used_at": "2024-01-01T00:00:00Z",
      "legacy_read_all": true,
      "name": "string",
      "org_id": "string",
      "project_id": "string",
      "public_value": "string",
      "revoked_at": "2024-01-01T00:00:00Z",
      "scopes": [
        "string"
      ],
      "secret": "string",
      "value": "string"
    }
  ],
  "project": {
    "ai_enabled": true,
    "company_enabled": true,
    "compliance_profile": "string",
    "created_at": "2024-01-01T00:00:00Z",
    "fiscal_year_start_month": 0,
    "geo_enabled": true,
    "group_label": "string",
    "id": "string",
    "ip_capture": true,
    "ip_truncate": true,
    "is_test": true,
    "logo_url": "string",
    "name": "string",
    "org_id": "string",
    "region": "string",
    "replay_mask_floor": true,
    "replay_retention_days": 0,
    "retention_days": 0,
    "slug": "string",
    "tags": [
      "string"
    ],
    "timezone": "string",
    "week_start": 0
  },
  "server_key_hint": "string"
}
Schema
environmentsEnvironment[]required
Show child parameters
idstringrequired
is_defaultbooleanrequired
namestringrequired
keysCreatedKey[]required
Two keys: the Public key and the Secret key (scopes ["capture"], send events only; it reads nothing). Each secret is shown once.
Show child parameters
created_atstringrequired
created_bystring
environmentstring
Environment an SDK key is bound to. null means unbound: it serves the project's default environment, looked up when the key is used (so it follows a change of default); personal keys are never bound.
expires_atstring
idstringrequired
key_prefixstringrequired
kindstringrequired
last_used_atstring
legacy_read_allbooleanrequired
A secret key with no scopes: it reads the whole project (issued before secret keys needed explicit scopes). Rotate it to a scoped key.
namestringrequired
org_idstringrequired
project_idstringrequired
public_valuestring
The full key, kept only for public keys (they ship in web pages); null for secret and personal keys, which are shown once, and for public keys minted before this was stored.
revoked_atstring
scopesstring[]required
secretstringrequireddeprecated
Same as value, kept for older clients. On a public key it is NOT a secret (it equals public_value); read value and tell the keys apart by kind.
valuestringrequired
The full key to use: lc_pk_… for kind: public (ships in web pages), lc_sk_… for kind: secret (server only). Shown once for secret keys; only its SHA-256 is stored.
projectobjectrequired
Show child parameters
ai_enabledbooleanrequired
Per-project AI kill switch; lc-ai makes no model call when false.
company_enabledbooleanrequired
Identify the company behind visitor IPs and link events to a company group (P-H8, default off).
compliance_profilestringrequired
standard | hipaa. HIPAA forces the privacy floors below on.
created_atstringrequired
fiscal_year_start_monthintegerrequired
1 = January .. 12 = December.
geo_enabledbooleanrequired
Resolve $country / $region / $city / $timezone / lat-lon from the IP (default on).
group_labelstring
Free-form group shown in the project switcher, e.g. Mobile.
idstringrequired
ip_capturebooleanrequired
Keep the client IP ($ip) on events. Always false under HIPAA.
ip_truncatebooleanrequired
With ip_capture on, keep the address with its host part zeroed (IPv4 /24, IPv6 /48).
is_testbooleanrequired
Sandbox project: excluded from billing metering.
logo_urlstring
namestringrequired
org_idstringrequired
regionstringrequired
replay_mask_floorbooleanrequired
Replay text is masked server-side whatever the SDK settings say.
replay_retention_daysintegerrequired
retention_daysintegerrequired
slugstringrequired
tagsstring[]required
timezonestringrequired
week_startintegerrequired
0 = Sunday .. 6 = Saturday.
server_key_hintstringrequired
For server senders: the Secret key entry in keys is send-only (scope capture); shown once.
400
403
404
Updated