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/orgs/{org_id}/projects

`?slug=` returns only the project with that slug (an empty page when none).

Parameters

org_idstringpathrequired
slugstringquery
exact 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[]required
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.
next_cursorstring
404
POSThttps://lucidace.com/v1/orgs/{org_id}/projectsScope project:write

Creates 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_idstringpathrequired
dry_runbooleanquery
validate only
Idempotency-Keystringheader
replay-safe retries for 24h

Request body

application/json
namestringrequired
sectionsarray
With settings_from: sdk | ingest | replay | privacy | identity | profiles | guides (default all). A dry run reports what would be copied under settings_copy.
settings_fromstring
Start 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.
slugstring
Optional 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[]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.
403
404
409 slug taken (existing_project_id) or idempotency key reused
GEThttps://lucidace.com/v1/projects/{project_id}Scope settings:read

Parameters

project_idstringpathrequired

Code 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_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.
caller_org_rolestring
The 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_rolestring
The caller's effective role in this project (a project admin grant reads admin).
404
DELETEhttps://lucidace.com/v1/projects/{project_id}Scope admin

Parameters

project_idstringpathrequired

Code samples

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

Responses

204
403
404

Updated