audit
POST
https://lucidace.com /v1/orgs/{org_id}/audit/sinks Scope adminParameters
org_idstringpathrequiredRequest body
application/json
kindstringrequiredwebhook | s3targetstringrequiredWebhook: an https URL. S3: a key prefix inside the platform object store.
{
"kind": "string",
"target": "string"
}Code samples
cURL
curl -X POST "https://lucidace.com/v1/orgs/{org_id}/audit/sinks" \
-H "Content-Type: application/json" \
-d '{"kind":"string","target":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
201
Example
{
"secret": "string",
"sink": {
"created_at": "2024-01-01T00:00:00Z",
"enabled": true,
"id": "string",
"kind": "string",
"last_delivery_at": "2024-01-01T00:00:00Z",
"last_error": "string",
"last_seq": 0,
"org_id": "string",
"target": "string"
}
}Schema
secretstringrequiredShown once. Deliveries carry
X-Lucida-Signature: sha256=hex(hmac(secret, timestamp + "." + body)).sinkobjectrequiredShow child parameters
created_atstringrequiredenabledbooleanrequiredidstringrequiredkindstringrequiredwebhook | s3last_delivery_atstringlast_errorstringlast_seqintegerrequiredorg_idstringrequiredtargetstringrequiredWebhook URL, or object-store key prefix.
400
403
404
DELETE
https://lucidace.com /v1/orgs/{org_id}/audit/sinks/{id} Scope adminParameters
org_idstringpathrequiredidstringpathrequiredCode samples
cURL
curl -X DELETE "https://lucidace.com/v1/orgs/{org_id}/audit/sinks/{id}"TypeScript
Python
Go
PHP
Ruby
Java
Responses
204
403
404
GET
https://lucidace.com /v1/orgs/{org_id}/audit/subscriptions Scope adminParameters
org_idstringpathrequiredCode samples
cURL
curl -X GET "https://lucidace.com/v1/orgs/{org_id}/audit/subscriptions"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
Example
[
{
"actions": [
"string"
],
"channels": [
{}
],
"created_at": "2024-01-01T00:00:00Z",
"email": true,
"id": "string",
"project_id": "string",
"user_id": "string"
}
]Schema
actionsstring[]requiredExact action names or
prefix.* patterns; empty matches every action.channelsobject[]requiredChat channels (
slack, teams, discord) that get one digest per delivery; webhook URLs sealed with the org id (P-H11). Callers redact before showing them.created_atstringrequiredemailbooleanrequiredidstringrequiredproject_idstringOnly this project's entries;
None for the whole org (org-level entries included).user_idstringrequired403
404
POST
https://lucidace.com /v1/orgs/{org_id}/audit/subscriptions Scope adminParameters
org_idstringpathrequiredRequest body
application/json
actionsstring[]Exact action names (
flag.update) or prefix.*; empty for every action. At most 50.channelsobject[]Chat channels that get a digest of each delivery:
{"type":"slack"|"teams"|"discord","url":..} (incoming-webhook URLs, stored sealed and never shown again).emailbooleanAlso email a digest of each delivery.
project_idstringOnly this project's entries; omitted for the whole org.
{
"actions": [
"string"
],
"channels": [
{}
],
"email": true,
"project_id": "string"
}Code samples
cURL
curl -X POST "https://lucidace.com/v1/orgs/{org_id}/audit/subscriptions" \
-H "Content-Type: application/json" \
-d '{"actions":["string"],"channels":[{}],"email":true,"project_id":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
201
Example
{
"actions": [
"string"
],
"channels": [
{}
],
"created_at": "2024-01-01T00:00:00Z",
"email": true,
"id": "string",
"project_id": "string",
"user_id": "string"
}Schema
actionsstring[]requiredExact action names or
prefix.* patterns; empty matches every action.channelsobject[]requiredChat channels (
slack, teams, discord) that get one digest per delivery; webhook URLs sealed with the org id (P-H11). Callers redact before showing them.created_atstringrequiredemailbooleanrequiredidstringrequiredproject_idstringOnly this project's entries;
None for the whole org (org-level entries included).user_idstringrequired400
403
404
DELETE
https://lucidace.com /v1/orgs/{org_id}/audit/subscriptions/{id} Scope adminParameters
org_idstringpathrequiredidstringpathrequiredCode samples
cURL
curl -X DELETE "https://lucidace.com/v1/orgs/{org_id}/audit/subscriptions/{id}"TypeScript
Python
Go
PHP
Ruby
Java
Responses
204
404
GET
https://lucidace.com /v1/orgs/{org_id}/audit/verify Scope audit:readRecompute the org's hash chain.
Parameters
org_idstringpathrequiredCode samples
cURL
curl -X GET "https://lucidace.com/v1/orgs/{org_id}/audit/verify"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
Example
{
"entries": 0,
"status": "valid"
}Option 1
entriesintegerrequiredstatusstringrequired{
"entries": 0,
"status": "valid"
}Option 2
seqintegerrequiredstatusstringrequired{
"seq": 0,
"status": "broken"
}403
404
GET
https://lucidace.com /v1/projects/{project_id}/activity Scope adminThe project's activity log, newest first, with the same filters as the org log. Project admins (and org admins) only; `project_id` is forced to the path, never taken from the query.
Parameters
project_idstringpathrequiredlimitintegerquerycursorstringquerysincestringqueryInclusive lower bound (RFC 3339).
untilstringqueryExclusive upper bound (RFC 3339).
project_idstringqueryuser_idstringqueryActing user.
actor_kindstringqueryuser | api_key | system | scimactionstringqueryAction prefix, e.g.
flag. (scope) or flag.update (activity).resource_typestringqueryresource_idstringqueryipstringqueryapi_key_idstringqueryCalls made with one API key, OAuth token or MCP credential.
clientstringqueryCalling client (
mcp, cli, terraform, web).impersonatedbooleanqueryqstringqueryText search over action, resource id and detail.
Code samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/activity"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Page of AuditEntry
Example
{
"data": [
{
"action": "string",
"actor_kind": "string",
"actor_user_id": "string",
"created_at": "2024-01-01T00:00:00Z",
"detail": {},
"id": "string",
"ip": "string",
"org_id": "string",
"project_id": "string",
"resource_id": "string",
"resource_type": "string",
"seq": 0
}
],
"next_cursor": "string"
}Schema
dataAuditEntry[]requiredShow child parameters
actionstringrequiredactor_kindstringrequiredactor_user_idstringcreated_atstringrequireddetailobjectrequiredidstringrequiredipstringorg_idstringrequiredproject_idstringresource_idstringresource_typestringrequiredseqintegerrequirednext_cursorstring400
404
GET
https://lucidace.com /v1/projects/{project_id}/history/{resource_type}/{resource_id} Scope insight:readChange history of one resource in a project, newest first. Any member who can read the project sees it; `resource_type` is the audit name (`flag`, `cohort`, `dashboard`, ...).
Parameters
project_idstringpathrequiredresource_typestringpathrequiredresource_idstringpathrequiredlimitintegerquerycursorstringqueryCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/history/{resource_type}/{resource_id}"TypeScript
Python
Go
PHP
Ruby
Java
Updated