projects
GET
https://lucidace.com /v1/orgs/{org_id}/projects `?slug=` returns only the project with that slug (an empty page when none).
Parameters
org_idstringpathrequiredslugstringqueryexact slug filter
Code samples
cURL
curl -X GET "https://lucidace.com/v1/orgs/{org_id}/projects"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Page of Project
Example
{
"data": [
{
"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
}
],
"next_cursor": "string"
}Schema
dataProject[]requiredShow 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.
next_cursorstring404
POST
https://lucidace.com /v1/orgs/{org_id}/projects Scope project:writeCreates default environments and a public + secret key; secrets are returned once.
A taken slug is a 409 whose body carries existing_project_id. ?dry_run=true validates and returns the would-be project (200, dry_run: true, no ids, no secrets) without writing. Idempotency-Key: a retry with the same key and body within 24h returns the first response WITHOUT the key secrets (replayed: true, secrets_omitted: true); rotate a key to get a new secret.
Parameters
org_idstringpathrequireddry_runbooleanqueryvalidate only
Idempotency-Keystringheaderreplay-safe retries for 24h
Request body
application/json
namestringrequiredsectionsarrayWith
settings_from: sdk | ingest | replay | privacy | identity | profiles | guides (default all). A dry run reports what would be copied under settings_copy.settings_fromstringStart from another project's settings (same org; the caller needs read on it): the
sections of POST /v1/projects/{p}/settings/copy, applied in the same transaction.slugstringOptional unique slug within the org (1 to 63 lowercase letters, digits or dashes). A retried create with the same slug answers 409 instead of making a second project.
{
"name": "string",
"sections": [
"string"
],
"settings_from": "string",
"slug": "string"
}Code samples
cURL
curl -X POST "https://lucidace.com/v1/orgs/{org_id}/projects" \
-H "Idempotency-Key: <value>" \
-H "Content-Type: application/json" \
-d '{"name":"string","sections":["string"],"settings_from":"string","slug":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 dry run
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.403
404
409 slug taken (existing_project_id) or idempotency key reused
GET
https://lucidace.com /v1/projects/{project_id} Scope settings:readParameters
project_idstringpathrequiredCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}"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,
"caller_org_role": "string",
"caller_role": "string"
}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.
caller_org_rolestringThe caller's org role (
owner | admin | member | viewer | billing). A key without a user reads admin (admin scope), member (*:write) or viewer. Null for toolbar tokens.caller_rolestringThe caller's effective role in this project (a project admin grant reads
admin).404
DELETE
https://lucidace.com /v1/projects/{project_id} Scope adminParameters
project_idstringpathrequiredCode samples
cURL
curl -X DELETE "https://lucidace.com/v1/projects/{project_id}"TypeScript
Python
Go
PHP
Ruby
Java
Responses
204
403
404
Updated