audit
GET
https://lucidace.com /v1/orgs/{org_id}/audit Scope audit:readNewest first, filtered. Owners and admins only.
Parameters
org_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/orgs/{org_id}/audit"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
403
404
GET
https://lucidace.com /v1/orgs/{org_id}/audit/export Scope audit:readOldest first as `application/x-ndjson`, one audit entry per line. Resume from the `X-Next-Cursor` response header (absent when the log is exhausted).
Parameters
org_idstringpathrequiredlimitintegerquerycursorstringqueryCode samples
cURL
curl -X GET "https://lucidace.com/v1/orgs/{org_id}/audit/export"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
400
403
404
GET
https://lucidace.com /v1/orgs/{org_id}/audit/export.csv Scope audit:readThe filtered log as CSV, newest first, capped at 50 000 rows. The download is itself audited.
Parameters
org_idstringpathrequiredsincestringqueryInclusive 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/orgs/{org_id}/audit/export.csv"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 created_at,project_id,actor_kind,actor_user_id,action,resource_type,resource_id,ip,client,detail
"string"
400
403
404
GET
https://lucidace.com /v1/orgs/{org_id}/audit/policy Scope adminParameters
org_idstringpathrequiredCode samples
cURL
curl -X GET "https://lucidace.com/v1/orgs/{org_id}/audit/policy"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
Example
{
"require_sink": true
}Schema
require_sinkbooleanrequiredBlock project creation and ingest-config changes until the org has an audit sink. Always effective while any project of the org is on the
hipaa profile.403
404
PUT
https://lucidace.com /v1/orgs/{org_id}/audit/policy Scope adminParameters
org_idstringpathrequiredRequest body
application/json
The org's audit-sink policy.
require_sinkbooleanrequiredBlock project creation and ingest-config changes until the org has an audit sink. Always effective while any project of the org is on the
hipaa profile.{
"require_sink": true
}Code samples
cURL
curl -X PUT "https://lucidace.com/v1/orgs/{org_id}/audit/policy" \
-H "Content-Type: application/json" \
-d '{"require_sink":true}'TypeScript
Python
Go
PHP
Ruby
Java
GET
https://lucidace.com /v1/orgs/{org_id}/audit/siem-sinks Scope adminParameters
org_idstringpathrequiredCode samples
cURL
curl -X GET "https://lucidace.com/v1/orgs/{org_id}/audit/siem-sinks"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Page of SiemSink
Example
{
"data": [
{
"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,
"options": {},
"org_id": "string",
"target": "string"
}
],
"next_cursor": "string"
}Schema
dataSiemSink[]requiredShow child parameters
created_atstringrequiredenabledbooleanrequiredidstringrequiredkindstringrequiredhttps | splunk_hec | datadoglast_delivery_atstringlast_errorstringlast_seqintegerrequiredoptionsrequiredorg_idstringrequiredtargetstringrequirednext_cursorstring403
404
POST
https://lucidace.com /v1/orgs/{org_id}/audit/siem-sinks Scope adminParameters
org_idstringpathrequiredRequest body
application/json
kindstringrequiredhttps | splunk_hec | datadog | s3 | gcs | azureoptionsobjectKind-specific string options (for example the Datadog
site; for object stores endpoint, region, sse, kms_key_id, role_arn, external_id). format: "ocsf" sends OCSF 1.1 API Activity events instead of Lucida's own entry shape.secretstringThe HEC token or Datadog API key (required for those kinds). Omitted for
https, where a signing secret is generated. Object-store kinds: a JSON object of credentials (access_key/secret_key, access_token or service_account_json, sas_token).targetstringrequiredAn https URL, screened against private and loopback destinations; for the object-store kinds
s3://bucket/prefix, gs://bucket/prefix or azure://account/container/prefix.{
"kind": "string",
"options": {},
"secret": "string",
"target": "string"
}Code samples
cURL
curl -X POST "https://lucidace.com/v1/orgs/{org_id}/audit/siem-sinks" \
-H "Content-Type: application/json" \
-d '{"kind":"string","options":{},"secret":"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,
"options": {},
"org_id": "string",
"target": "string"
}
}Schema
secretstringGenerated for
https sinks and shown once; absent otherwise (you supplied it).sinkobjectrequiredShow child parameters
created_atstringrequiredenabledbooleanrequiredidstringrequiredkindstringrequiredhttps | splunk_hec | datadoglast_delivery_atstringlast_errorstringlast_seqintegerrequiredoptionsrequiredorg_idstringrequiredtargetstringrequired400
403
404
DELETE
https://lucidace.com /v1/orgs/{org_id}/audit/siem-sinks/{id} Scope adminParameters
org_idstringpathrequiredidstringpathrequiredCode samples
cURL
curl -X DELETE "https://lucidace.com/v1/orgs/{org_id}/audit/siem-sinks/{id}"TypeScript
Python
Go
PHP
Ruby
Java
Responses
204
403
404
GET
https://lucidace.com /v1/orgs/{org_id}/audit/sinks Scope adminParameters
org_idstringpathrequiredCode samples
cURL
curl -X GET "https://lucidace.com/v1/orgs/{org_id}/audit/sinks"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Page of Sink
Example
{
"data": [
{
"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"
}
],
"next_cursor": "string"
}Schema
dataSink[]requiredShow child parameters
created_atstringrequiredenabledbooleanrequiredidstringrequiredkindstringrequiredwebhook | s3last_delivery_atstringlast_errorstringlast_seqintegerrequiredorg_idstringrequiredtargetstringrequiredWebhook URL, or object-store key prefix.
next_cursorstring403
404
Updated