projects
PATCH
https://lucidace.com /v1/projects/{project_id} Scope settings:writeParameters
project_idstringpathrequiredRequest body
application/json
ai_enabledbooleanPer-project AI kill switch lc-ai checks before every model call (refused on under
hipaa).company_enabledbooleanIdentify the company behind visitor IPs (operator MMDB or provider) and link events to a
company group with $company_* properties (P-H8, default off; never applied under hipaa).compliance_profilestringstandard | hipaa. hipaa forces ip_capture off, AI off, the replay masking floor on, and clamps retention to 365 / 30 days; it needs an audit sink.fiscal_year_start_monthinteger1 (January) to 12 (December).
geo_enabledbooleanResolve location from the IP at ingest (default on). Off: no
$country / $city / ... are added.group_labelstringGroup in the project switcher, at most 64 characters;
"" clears.ip_capturebooleanKeep the client IP as
$ip on events (default off; refused under hipaa).ip_truncatebooleanWith
ip_capture on, store the address truncated (IPv4 /24, IPv6 /48).logo_urlstringhttps:// image URL; "" clears.namestringregionstringNever writable: a project's region is its org's and data does not move. Sending a different value is a 409 (
region-locked under the hipaa profile).replay_mask_floorbooleanMask replay text server-side whatever the SDK settings say (forced on under
hipaa).replay_retention_daysinteger1 to 3650 (at most 30 under the
hipaa profile).retention_daysinteger1 to 3650.
tagsarrayAt most 20 tags of 1 to 32 characters (lowercased, de-duplicated).
timezonestringIANA timezone used for bucketing, e.g.
Europe/Berlin.week_startinteger0 (Sunday) to 6 (Saturday).
{
"ai_enabled": true,
"company_enabled": true,
"compliance_profile": "string",
"fiscal_year_start_month": 0,
"geo_enabled": true,
"group_label": "string",
"ip_capture": true,
"ip_truncate": true,
"logo_url": "string",
"name": "string",
"region": "string",
"replay_mask_floor": true,
"replay_retention_days": 0,
"retention_days": 0,
"tags": [
"string"
],
"timezone": "string",
"week_start": 0
}Code samples
cURL
curl -X PATCH "https://lucidace.com/v1/projects/{project_id}" \
-H "Content-Type: application/json" \
-d '{"ai_enabled":true,"company_enabled":true,"compliance_profile":"string","fiscal_year_start_month":0,"geo_enabled":true,"group_label":"string","ip_capture":true,"ip_truncate":true,"logo_url":"string","name":"string","region":"string","replay_mask_floor":true,"replay_retention_days":0,"retention_days":0,"tags":["string"],"timezone":"string","week_start":0}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
Example
{
"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
}Schema
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.
403
404
GET
https://lucidace.com /v1/projects/{project_id}/access-policy Scope settings:readParameters
project_idstringpathrequiredCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/access-policy"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
Example
{
"default": "string",
"managed_by": "string",
"resources": {}
}Schema
defaultstringmember (every org member, by role) or none (only members added to the project with a project role, plus admins). Default member.managed_bystringterraform when the policy is owned by code (P-M24): the app shows it locked and refuses edits (409) that do not carry the marker, unless they pass force.resourcesobjectPer-resource level for plain members:
none, read or write, keyed by resource (insight, dashboard, replay, flag, experiment, cohort, person, connector).404
PUT
https://lucidace.com /v1/projects/{project_id}/access-policy Scope adminParameters
project_idstringpathrequiredRequest body
application/json
Who reaches a project and what plain members may do in it. Org owners and admins always have full access; custom roles and per-project member roles still apply on top of the defaults.
defaultstringmember (every org member, by role) or none (only members added to the project with a project role, plus admins). Default member.managed_bystringterraform when the policy is owned by code (P-M24): the app shows it locked and refuses edits (409) that do not carry the marker, unless they pass force.resourcesobjectPer-resource level for plain members:
none, read or write, keyed by resource (insight, dashboard, replay, flag, experiment, cohort, person, connector).{
"default": "string",
"managed_by": "string",
"resources": {}
}Code samples
cURL
curl -X PUT "https://lucidace.com/v1/projects/{project_id}/access-policy" \
-H "Content-Type: application/json" \
-d '{"default":"string","managed_by":"string","resources":{}}'TypeScript
Python
Go
PHP
Ruby
Java
GET
https://lucidace.com /v1/projects/{project_id}/access-rules/{kind} Scope settings:readParameters
project_idstringpathrequiredkindstringpathrequiredproperty | warehouse_source | warehouse_table | warehouse_view
Code samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/access-rules/{kind}"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
Example
[
{
"allowed_roles": [
"string"
],
"allowed_users": [
"string"
],
"kind": "string",
"target": "string",
"updated_at": "2024-01-01T00:00:00Z"
}
]Schema
allowed_rolesstring[]requiredRoles (
admin | member | viewer | billing) that still see the values; owners always do.allowed_usersstring[]requiredkindstringrequiredtargetstringrequiredupdated_atstringrequired404
PUT
https://lucidace.com /v1/projects/{project_id}/access-rules/{kind}/{target} Scope adminParameters
project_idstringpathrequiredkindstringpathrequiredtargetstringpathrequiredRequest body
application/json
allowed_rolesstring[]Roles that still see the target (
admin | member | viewer | billing); owners always do.allowed_usersstring[]Users that still see the target whatever their role.
{
"allowed_roles": [
"string"
],
"allowed_users": [
"string"
]
}Code samples
cURL
curl -X PUT "https://lucidace.com/v1/projects/{project_id}/access-rules/{kind}/{target}" \
-H "Content-Type: application/json" \
-d '{"allowed_roles":["string"],"allowed_users":["string"]}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
Example
{
"allowed_roles": [
"string"
],
"allowed_users": [
"string"
],
"kind": "string",
"target": "string",
"updated_at": "2024-01-01T00:00:00Z"
}Schema
allowed_rolesstring[]requiredRoles (
admin | member | viewer | billing) that still see the values; owners always do.allowed_usersstring[]requiredkindstringrequiredtargetstringrequiredupdated_atstringrequired400
403
404
DELETE
https://lucidace.com /v1/projects/{project_id}/access-rules/{kind}/{target} Scope adminParameters
project_idstringpathrequiredkindstringpathrequiredtargetstringpathrequiredCode samples
cURL
curl -X DELETE "https://lucidace.com/v1/projects/{project_id}/access-rules/{kind}/{target}"TypeScript
Python
Go
PHP
Ruby
Java
Responses
204
403
404
GET
https://lucidace.com /v1/projects/{project_id}/hidden-data Scope insight:readParameters
project_idstringpathrequiredCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/hidden-data"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
Example
{
"properties": [
"string"
],
"warehouse_sources": [
"string"
],
"warehouse_tables": [
"string"
],
"warehouse_views": [
"string"
]
}Schema
propertiesstring[]requiredwarehouse_sourcesstring[]requiredwarehouse_tablesstring[]requiredwarehouse_viewsstring[]required404
POST
https://lucidace.com /v1/projects/{project_id}/move Scope adminCustom project roles, team grants, grants to non-members of the target org, notifications and cross-project views that list the project are dropped; usage history and the audit chain stay.
Parameters
project_idstringpathrequiredRequest body
application/json
org_idstringrequiredThe org to move the project into.
{
"org_id": "string"
}Code samples
cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/move" \
-H "Content-Type: application/json" \
-d '{"org_id":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
GET
https://lucidace.com /v1/projects/{project_id}/permissions Parameters
project_idstringpathrequiredCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/permissions"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
Example
{
"admin": true,
"connector_read": true,
"connector_write": true,
"org_id": "string",
"write": true
}Schema
adminbooleanrequiredCan change project settings (admins and owners): AI memory, SDK settings, keys.
connector_readbooleanrequiredCan read connectors, their runs and logs (the
connector:read scope for keys); lc-connectors asks.connector_writebooleanrequiredCan create and change connectors (the
connector:write scope for keys); lc-connectors asks.org_idstringrequiredwritebooleanrequiredCan create and edit project objects (checked on insights).
404
Updated