orgs
GET
https://lucidace.com /v1/orgs Orgs the caller belongs to.
Code samples
cURL
curl -X GET "https://lucidace.com/v1/orgs"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Each org carries the caller's
roleExample
{
"data": [
{
"created_at": "2024-01-01T00:00:00Z",
"id": "string",
"ip_capture_default": true,
"name": "string",
"plan": "string",
"slug": "string",
"role": "string"
}
],
"next_cursor": "string"
}Schema
dataOrg & object[]requiredShow child parameters
created_atstringrequiredidstringrequiredip_capture_defaultbooleanrequiredip_capture that new projects of this org start with (default off).namestringrequiredplanstringrequiredslugstringrequiredrolestringrequirednext_cursorstringPOST
https://lucidace.com /v1/orgs Scope org:writeCreate an org; the caller becomes its owner. An account key needs `org:write` and no org restriction (a new org is outside any list).
?dry_run=true validates everything and returns the would-be org (200, dry_run: true, no id) without writing. Idempotency-Key: the same key and body within 24h returns the first response (replayed: true; Idempotent-Replayed: true header); the same key with another body is a 409.
Parameters
dry_runbooleanqueryvalidate only
Idempotency-Keystringheaderreplay-safe retries for 24h
Request body
application/json
allow_duplicate_namebooleanAccount keys: a second org with the same name (case-insensitive) among the orgs you own is a 409 unless this is true. Sessions are not checked.
namestringrequiredslugstringOptional slug (1 to 63 lowercase letters, digits or dashes). Omitted: derived from
name with a random suffix. Taken: 409.{
"allow_duplicate_name": true,
"name": "string",
"slug": "string"
}Code samples
cURL
curl -X POST "https://lucidace.com/v1/orgs" \
-H "Idempotency-Key: <value>" \
-H "Content-Type: application/json" \
-d '{"allow_duplicate_name":true,"name":"string","slug":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 dry run
201
Example
{
"created_at": "2024-01-01T00:00:00Z",
"id": "string",
"ip_capture_default": true,
"name": "string",
"plan": "string",
"slug": "string"
}Schema
created_atstringrequiredidstringrequiredip_capture_defaultbooleanrequiredip_capture that new projects of this org start with (default off).namestringrequiredplanstringrequiredslugstringrequired400
409 the slug is taken, the name is a duplicate (account keys) or the idempotency key was reused
GET
https://lucidace.com /v1/orgs/{org_id} Scope org:readParameters
org_idstringpathrequiredCode samples
cURL
curl -X GET "https://lucidace.com/v1/orgs/{org_id}"TypeScript
Python
Go
PHP
Ruby
Java
DELETE
https://lucidace.com /v1/orgs/{org_id} Scope adminOwner (or the owner's account key holding `admin`). A session can always delete; an account key only while the org is under 24 hours old or has no counted ingested events, else 409. Deleting an org also deletes its audit trail (retention purge semantics).
Parameters
org_idstringpathrequiredCode samples
cURL
curl -X DELETE "https://lucidace.com/v1/orgs/{org_id}"TypeScript
Python
Go
PHP
Ruby
Java
Responses
204
403
404
409 account key on an org older than 24h with ingested events
PATCH
https://lucidace.com /v1/orgs/{org_id} Scope org:writeParameters
org_idstringpathrequiredRequest body
application/json
ip_capture_defaultbooleanip_capture new projects start with (default off; existing projects are unchanged).namestring{
"ip_capture_default": true,
"name": "string"
}Code samples
cURL
curl -X PATCH "https://lucidace.com/v1/orgs/{org_id}" \
-H "Content-Type: application/json" \
-d '{"ip_capture_default":true,"name":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
GET
https://lucidace.com /v1/orgs/{org_id}/app-usage Scope adminParameters
org_idstringpathrequireddaysintegerqueryCode samples
cURL
curl -X GET "https://lucidace.com/v1/orgs/{org_id}/app-usage"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
Example
{
"days": 0,
"members": [
{
"active_days": 0,
"email": "string",
"last_active": "2024-01-01T00:00:00Z",
"name": "string",
"role": "string",
"user_id": "string",
"views": 0
}
],
"objects": [
{
"last_viewed": "2024-01-01T00:00:00Z",
"name": "string",
"object_id": "string",
"object_type": "string",
"project_id": "string",
"viewers": 0,
"views": 0
}
],
"teams": [
{
"feature": "string",
"team_id": "string",
"team_name": "string",
"users": 0,
"views": 0
}
]
}Schema
daysintegerrequiredmembersMemberActivity[]requiredEvery member, most recently active first.
Show child parameters
active_daysintegerrequiredDistinct days with a view in the window.
emailstringrequiredlast_activestringLatest of the last authenticated request and the last reported view.
namestringrequiredrolestringrequireduser_idstringrequiredviewsintegerrequiredobjectsObjectViews[]requiredThe 50 most viewed dashboards and insights.
Show child parameters
last_viewedstringrequirednamestringrequiredobject_idstringrequiredobject_typestringrequireddashboard | insightproject_idstringrequiredviewersintegerrequiredviewsintegerrequiredteamsTeamFeature[]requiredViews per feature area for each team.
Show child parameters
featurestringrequiredteam_idstringNone = members in no team.team_namestringrequiredusersintegerrequiredviewsintegerrequired400
404
GET
https://lucidace.com /v1/orgs/{org_id}/domains Scope adminParameters
org_idstringpathrequiredCode samples
cURL
curl -X GET "https://lucidace.com/v1/orgs/{org_id}/domains"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
Example
[
{
"auto_join": true,
"created_at": "2024-01-01T00:00:00Z",
"default_role": "string",
"domain": "string",
"id": "string",
"token": "string",
"verified_at": "2024-01-01T00:00:00Z"
}
]Schema
auto_joinbooleanrequiredUsers who verify an email on this domain join the org.
created_atstringrequireddefault_rolestringrequiredadmin | member | viewerdomainstringrequiredidstringrequiredtokenstringrequiredPublish
_lucida-challenge.<domain> TXT <token>, then verify.verified_atstring403
404
POST
https://lucidace.com /v1/orgs/{org_id}/domains Scope adminParameters
org_idstringpathrequiredRequest body
application/json
domainstringrequired{
"domain": "string"
}Code samples
cURL
curl -X POST "https://lucidace.com/v1/orgs/{org_id}/domains" \
-H "Content-Type: application/json" \
-d '{"domain":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
201 publish
_lucida-challenge.<domain> TXT <token>, then verifyExample
{
"auto_join": true,
"created_at": "2024-01-01T00:00:00Z",
"default_role": "string",
"domain": "string",
"id": "string",
"token": "string",
"verified_at": "2024-01-01T00:00:00Z"
}Schema
auto_joinbooleanrequiredUsers who verify an email on this domain join the org.
created_atstringrequireddefault_rolestringrequiredadmin | member | viewerdomainstringrequiredidstringrequiredtokenstringrequiredPublish
_lucida-challenge.<domain> TXT <token>, then verify.verified_atstring400
403
404
409
DELETE
https://lucidace.com /v1/orgs/{org_id}/domains/{id} Scope adminParameters
org_idstringpathrequiredidstringpathrequiredCode samples
cURL
curl -X DELETE "https://lucidace.com/v1/orgs/{org_id}/domains/{id}"TypeScript
Python
Go
PHP
Ruby
Java
Responses
204
404
PATCH
https://lucidace.com /v1/orgs/{org_id}/domains/{id} Scope adminParameters
org_idstringpathrequiredidstringpathrequiredRequest body
application/json
auto_joinbooleanTurning auto-join on needs a verified domain.
default_rolestringadmin | member | viewer{
"auto_join": true,
"default_role": "string"
}Code samples
cURL
curl -X PATCH "https://lucidace.com/v1/orgs/{org_id}/domains/{id}" \
-H "Content-Type: application/json" \
-d '{"auto_join":true,"default_role":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
400
404
409 auto-join needs a verified domain
Updated