orgs

Embed
Preview of the card
<a href="https://lucidace.com/docs/ref-orgs"><img src="https://lucidace.com/docs/_api/public/orgs/af34862a-c837-4478-8335-0505efe40459/spaces/da916cd3-c0fc-4b63-b971-b3c13623daf3/pages/25b69b43-7f4e-4187-adff-d0d12b98182f/social-card.svg?v=3e7ae33eec8b" alt="orgs" width="600" height="315"></a>
GEThttps://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 role
Example
{
  "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[]required
Show child parameters
created_atstringrequired
idstringrequired
ip_capture_defaultbooleanrequired
ip_capture that new projects of this org start with (default off).
namestringrequired
planstringrequired
slugstringrequired
rolestringrequired
next_cursorstring
POSThttps://lucidace.com/v1/orgsScope org:write

Create 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_runbooleanquery
validate only
Idempotency-Keystringheader
replay-safe retries for 24h

Request body

application/json
allow_duplicate_nameboolean
Account 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.
namestringrequired
slugstring
Optional 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_atstringrequired
idstringrequired
ip_capture_defaultbooleanrequired
ip_capture that new projects of this org start with (default off).
namestringrequired
planstringrequired
slugstringrequired
400
409 the slug is taken, the name is a duplicate (account keys) or the idempotency key was reused
GEThttps://lucidace.com/v1/orgs/{org_id}Scope org:read

Parameters

org_idstringpathrequired

Code samples

cURL
curl -X GET "https://lucidace.com/v1/orgs/{org_id}"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

404
DELETEhttps://lucidace.com/v1/orgs/{org_id}Scope admin

Owner (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_idstringpathrequired

Code 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
PATCHhttps://lucidace.com/v1/orgs/{org_id}Scope org:write

Parameters

org_idstringpathrequired

Request body

application/json
ip_capture_defaultboolean
ip_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

Responses

403
404
GEThttps://lucidace.com/v1/orgs/{org_id}/app-usageScope admin

Parameters

org_idstringpathrequired
daysintegerquery

Code 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
daysintegerrequired
membersMemberActivity[]required
Every member, most recently active first.
Show child parameters
active_daysintegerrequired
Distinct days with a view in the window.
emailstringrequired
last_activestring
Latest of the last authenticated request and the last reported view.
namestringrequired
rolestringrequired
user_idstringrequired
viewsintegerrequired
objectsObjectViews[]required
The 50 most viewed dashboards and insights.
Show child parameters
last_viewedstringrequired
namestringrequired
object_idstringrequired
object_typestringrequired
dashboard | insight
project_idstringrequired
viewersintegerrequired
viewsintegerrequired
teamsTeamFeature[]required
Views per feature area for each team.
Show child parameters
featurestringrequired
team_idstring
None = members in no team.
team_namestringrequired
usersintegerrequired
viewsintegerrequired
400
404
GEThttps://lucidace.com/v1/orgs/{org_id}/domainsScope admin

Parameters

org_idstringpathrequired

Code 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_joinbooleanrequired
Users who verify an email on this domain join the org.
created_atstringrequired
default_rolestringrequired
admin | member | viewer
domainstringrequired
idstringrequired
tokenstringrequired
Publish _lucida-challenge.<domain> TXT <token>, then verify.
verified_atstring
403
404
POSThttps://lucidace.com/v1/orgs/{org_id}/domainsScope admin

Parameters

org_idstringpathrequired

Request 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 verify
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_joinbooleanrequired
Users who verify an email on this domain join the org.
created_atstringrequired
default_rolestringrequired
admin | member | viewer
domainstringrequired
idstringrequired
tokenstringrequired
Publish _lucida-challenge.<domain> TXT <token>, then verify.
verified_atstring
400
403
404
409
DELETEhttps://lucidace.com/v1/orgs/{org_id}/domains/{id}Scope admin

Parameters

org_idstringpathrequired
idstringpathrequired

Code samples

cURL
curl -X DELETE "https://lucidace.com/v1/orgs/{org_id}/domains/{id}"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

204
404
PATCHhttps://lucidace.com/v1/orgs/{org_id}/domains/{id}Scope admin

Parameters

org_idstringpathrequired
idstringpathrequired

Request body

application/json
auto_joinboolean
Turning auto-join on needs a verified domain.
default_rolestring
admin | 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

400
404
409 auto-join needs a verified domain

Updated