projects
GET
https://lucidace.com /v1/projects/{project_id}/storage Scope settings:readThe browser storage this project makes the SDK write.
Parameters
project_idstringpathrequiredpersistencestringpathrequiredThe
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_subdomainbooleanpathrequiredThe site sets
cookie.crossSubdomain: true.formatstringpathrequiredcookiemunch 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_subdomainbooleanrequireddefault_persistencestringrequiredThe persistence mode the list was computed for (default
cookie).itemsStorageItem[]requiredShow child parameters
categorystringrequirednecessary, statistics or marketing.expirystringrequiredgated_bystringConsent category that must be granted before the key is written (
analytics, replay), or null.namestringrequiredRaw key name; keys marked in
suffix_rule carry the public-key suffix on the page.purposestringrequiredstorestringrequiredcookie, localStorage, sessionStorage or cookie+localStorage.suffix_rulestringrequiredHow suffixed keys are named on the page.
updatedstringrequiredWhen the project settings last changed.
versionstringrequiredHash of the rest of this document: changes when the key list does.
400
404
POST
https://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_idstringpathrequiredRequest body
application/json
namestringDefaults 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[]requiredShow child parameters
idstringrequiredis_defaultbooleanrequirednamestringrequiredkeysCreatedKey[]requiredTwo 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_atstringrequiredcreated_bystringenvironmentstringEnvironment 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_atstringidstringrequiredkey_prefixstringrequiredkindstringrequiredlast_used_atstringlegacy_read_allbooleanrequiredA secret key with no scopes: it reads the whole project (issued before secret keys needed explicit scopes). Rotate it to a scoped key.
namestringrequiredorg_idstringrequiredproject_idstringrequiredpublic_valuestringThe 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_atstringscopesstring[]requiredsecretstringrequireddeprecatedSame 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.valuestringrequiredThe 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.projectobjectrequiredShow child parameters
ai_enabledbooleanrequiredPer-project AI kill switch; lc-ai makes no model call when false.
company_enabledbooleanrequiredIdentify the company behind visitor IPs and link events to a
company group (P-H8, default off).compliance_profilestringrequiredstandard | hipaa. HIPAA forces the privacy floors below on.created_atstringrequiredfiscal_year_start_monthintegerrequired1 = January .. 12 = December.
geo_enabledbooleanrequiredResolve
$country / $region / $city / $timezone / lat-lon from the IP (default on).group_labelstringFree-form group shown in the project switcher, e.g.
Mobile.idstringrequiredip_capturebooleanrequiredKeep the client IP (
$ip) on events. Always false under HIPAA.ip_truncatebooleanrequiredWith
ip_capture on, keep the address with its host part zeroed (IPv4 /24, IPv6 /48).is_testbooleanrequiredSandbox project: excluded from billing metering.
logo_urlstringnamestringrequiredorg_idstringrequiredregionstringrequiredreplay_mask_floorbooleanrequiredReplay text is masked server-side whatever the SDK settings say.
replay_retention_daysintegerrequiredretention_daysintegerrequiredslugstringrequiredtagsstring[]requiredtimezonestringrequiredweek_startintegerrequired0 = Sunday .. 6 = Saturday.
server_key_hintstringrequiredFor server senders: the
Secret key entry in keys is send-only (scope capture); shown once.400
403
404
Updated