groups
PATCH
https://lucidace.com /v1/projects/{project_id}/groups/{type_index}/{key} Scope person:writeParameters
project_idstringpathrequiredtype_indexintegerpathrequiredkeystringpathrequiredRequest body
application/json
Properties to set (replacing values) and keys to remove; at most 100 keys in all.
setobjectunsetstring[]{
"set": {},
"unset": [
"string"
]
}Code samples
cURL
curl -X PATCH "https://lucidace.com/v1/projects/{project_id}/groups/{type_index}/{key}" \
-H "Content-Type: application/json" \
-d '{"set":{},"unset":["string"]}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
202 written at once; with an event queue the worker also re-applies the edit in order with SDK group writes
Example
{
"properties": {}
}Schema
propertiesobjectrequired400
403
404
503
GET
https://lucidace.com /v1/projects/{project_id}/groups/{type_index}/{key}/events Scope person:readParameters
project_idstringpathrequiredtype_indexintegerpathrequiredkeystringpathrequiredeventstringquerylimitintegerquerycursorstringqueryCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/groups/{type_index}/{key}/events"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Page of GroupEvent, newest first; cursor is (timestamp, uuid)
Example
{
"data": [
{
"distinct_id": "string",
"event": "string",
"properties": {},
"timestamp": "string",
"uuid": "string"
}
],
"next_cursor": "string"
}Schema
dataGroupEvent[]requiredShow child parameters
distinct_idstringrequiredeventstringrequiredpropertiesobjectrequiredtimestampstringrequireduuidstringrequirednext_cursorstring400
404
503
GET
https://lucidace.com /v1/projects/{project_id}/groups/{type_index}/{key}/relationships Scope person:readParameters
project_idstringpathrequiredtype_indexintegerpathrequiredkeystringpathrequiredCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/groups/{type_index}/{key}/relationships"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
{data: Relationship[]}, past, current and future, newest start first (at most 200)404
POST
https://lucidace.com /v1/projects/{project_id}/groups/{type_index}/{key}/relationships Scope person:writeParameters
project_idstringpathrequiredtype_indexintegerpathrequiredkeystringpathrequiredRequest body
application/json
ends_onstringkindstringrequiredcsm, ae, am, se, sponsor or another lowercase role key.starts_onstringDefaults to today (UTC).
user_idstringrequired{
"ends_on": "string",
"kind": "string",
"starts_on": "string",
"user_id": "string"
}Code samples
cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/groups/{type_index}/{key}/relationships" \
-H "Content-Type: application/json" \
-d '{"ends_on":"string","kind":"string","starts_on":"string","user_id":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
201
{id}400
404
GET
https://lucidace.com /v1/projects/{project_id}/groups/{type_index}/{key}/tasks Scope person:readParameters
project_idstringpathrequiredtype_indexintegerpathrequiredkeystringpathrequiredstatusstringqueryassigneestringquerylimitintegerquerycursorstringqueryCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/groups/{type_index}/{key}/tasks"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Page of Task, newest first
Example
{
"data": [
{
"assignee_id": "string",
"created_at": "2024-01-01T00:00:00Z",
"created_by": "string",
"done_at": "2024-01-01T00:00:00Z",
"due_on": "string",
"group_key": "string",
"group_type_index": 0,
"id": "string",
"notes": "string",
"status": "string",
"title": "string",
"updated_at": "2024-01-01T00:00:00Z"
}
],
"next_cursor": "string"
}Schema
dataTask[]requiredShow child parameters
assignee_idstringcreated_atstringrequiredcreated_bystringdone_atstringdue_onstringgroup_keystringrequiredgroup_type_indexintegerrequiredidstringrequirednotesstringrequiredstatusstringrequiredopen | donetitlestringrequiredupdated_atstringrequirednext_cursorstring400
404
POST
https://lucidace.com /v1/projects/{project_id}/groups/{type_index}/{key}/tasks Scope person:writeParameters
project_idstringpathrequiredtype_indexintegerpathrequiredkeystringpathrequiredRequest body
application/json
assignee_idstringdue_onstringnotesstringstatusstringopen (default) or done.titlestringrequired{
"assignee_id": "string",
"due_on": "string",
"notes": "string",
"status": "string",
"title": "string"
}Code samples
cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/groups/{type_index}/{key}/tasks" \
-H "Content-Type: application/json" \
-d '{"assignee_id":"string","due_on":"string","notes":"string","status":"string","title":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
201
Example
{
"assignee_id": "string",
"created_at": "2024-01-01T00:00:00Z",
"created_by": "string",
"done_at": "2024-01-01T00:00:00Z",
"due_on": "string",
"group_key": "string",
"group_type_index": 0,
"id": "string",
"notes": "string",
"status": "string",
"title": "string",
"updated_at": "2024-01-01T00:00:00Z"
}Schema
assignee_idstringcreated_atstringrequiredcreated_bystringdone_atstringdue_onstringgroup_keystringrequiredgroup_type_indexintegerrequiredidstringrequirednotesstringrequiredstatusstringrequiredopen | donetitlestringrequiredupdated_atstringrequired400
404
GET
https://lucidace.com /v1/projects/{project_id}/profiles/groups/{type_index}/{key} Parameters
project_idstringpathrequiredtype_indexstringpathrequiredThe group type's name (
workspace) or its index 0..=4keystringpathrequiredeventsintegerqueryCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/profiles/groups/{type_index}/{key}"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
Example
{
"cache_ttl_secs": 0,
"cohorts": [
{
"id": "string",
"name": "string"
}
],
"distinct_id": "string",
"enabled": true,
"events": [
{
"event": "string",
"properties": {},
"timestamp": "string"
}
],
"group_key": "string",
"group_type_index": 0,
"person_id": "string",
"properties": {},
"traits": {},
"type": "string"
}Schema
cache_ttl_secsintegerrequiredSeconds the gateway edge may cache this answer.
cohortsProfileCohort[]requiredCurrent cohort memberships (persons only; empty when switched off).
Show child parameters
idstringrequirednamestringrequireddistinct_idstringenabledbooleanrequiredThe project's API switch (members may preview while it is off).
eventsProfileEvent[]requiredNewest first, at most
events_limit from the last 90 days.Show child parameters
eventstringrequiredpropertiesobjectrequiredOnly the allowlisted event properties.
timestampstringrequiredgroup_keystringgroup_type_indexintegerperson_idstringpropertiesobjectrequiredAllowlisted properties only (PII-tagged values stay masked without
pii:read).traitsobjectrequiredComputed trait property -> value (enabled traits of this entity that have a value).
typestringrequiredperson or group.400
404
503
Updated