audit

Embed
Preview of the card
<a href="https://lucidace.com/docs/ref-audit"><img src="https://lucidace.com/docs/_api/public/orgs/af34862a-c837-4478-8335-0505efe40459/spaces/da916cd3-c0fc-4b63-b971-b3c13623daf3/pages/3337be47-a23c-4e5c-b43e-e0b6edc64242/social-card.svg?v=3e7ae33eec8b" alt="audit" width="600" height="315"></a>
GEThttps://lucidace.com/v1/orgs/{org_id}/auditScope audit:read

Newest first, filtered. Owners and admins only.

Parameters

org_idstringpathrequired
limitintegerquery
cursorstringquery
sincestringquery
Inclusive lower bound (RFC 3339).
untilstringquery
Exclusive upper bound (RFC 3339).
project_idstringquery
user_idstringquery
Acting user.
actor_kindstringquery
user | api_key | system | scim
actionstringquery
Action prefix, e.g. flag. (scope) or flag.update (activity).
resource_typestringquery
resource_idstringquery
ipstringquery
api_key_idstringquery
Calls made with one API key, OAuth token or MCP credential.
clientstringquery
Calling client (mcp, cli, terraform, web).
impersonatedbooleanquery
qstringquery
Text 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[]required
Show child parameters
actionstringrequired
actor_kindstringrequired
actor_user_idstring
created_atstringrequired
detailobjectrequired
idstringrequired
ipstring
org_idstringrequired
project_idstring
resource_idstring
resource_typestringrequired
seqintegerrequired
next_cursorstring
400
403
404
GEThttps://lucidace.com/v1/orgs/{org_id}/audit/exportScope audit:read

Oldest 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_idstringpathrequired
limitintegerquery
cursorstringquery

Code 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
GEThttps://lucidace.com/v1/orgs/{org_id}/audit/export.csvScope audit:read

The filtered log as CSV, newest first, capped at 50 000 rows. The download is itself audited.

Parameters

org_idstringpathrequired
sincestringquery
Inclusive lower bound (RFC 3339).
untilstringquery
Exclusive upper bound (RFC 3339).
project_idstringquery
user_idstringquery
Acting user.
actor_kindstringquery
user | api_key | system | scim
actionstringquery
Action prefix, e.g. flag. (scope) or flag.update (activity).
resource_typestringquery
resource_idstringquery
ipstringquery
api_key_idstringquery
Calls made with one API key, OAuth token or MCP credential.
clientstringquery
Calling client (mcp, cli, terraform, web).
impersonatedbooleanquery
qstringquery
Text 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
GEThttps://lucidace.com/v1/orgs/{org_id}/audit/policyScope admin

Parameters

org_idstringpathrequired

Code 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_sinkbooleanrequired
Block 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
PUThttps://lucidace.com/v1/orgs/{org_id}/audit/policyScope admin

Parameters

org_idstringpathrequired

Request body

application/json

The org's audit-sink policy.

require_sinkbooleanrequired
Block 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

Responses

403
404
GEThttps://lucidace.com/v1/orgs/{org_id}/audit/siem-sinksScope admin

Parameters

org_idstringpathrequired

Code 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[]required
Show child parameters
created_atstringrequired
enabledbooleanrequired
idstringrequired
kindstringrequired
https | splunk_hec | datadog
last_delivery_atstring
last_errorstring
last_seqintegerrequired
optionsrequired
org_idstringrequired
targetstringrequired
next_cursorstring
403
404
POSThttps://lucidace.com/v1/orgs/{org_id}/audit/siem-sinksScope admin

Parameters

org_idstringpathrequired

Request body

application/json
kindstringrequired
https | splunk_hec | datadog | s3 | gcs | azure
optionsobject
Kind-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.
secretstring
The 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).
targetstringrequired
An 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
secretstring
Generated for https sinks and shown once; absent otherwise (you supplied it).
sinkobjectrequired
Show child parameters
created_atstringrequired
enabledbooleanrequired
idstringrequired
kindstringrequired
https | splunk_hec | datadog
last_delivery_atstring
last_errorstring
last_seqintegerrequired
optionsrequired
org_idstringrequired
targetstringrequired
400
403
404
DELETEhttps://lucidace.com/v1/orgs/{org_id}/audit/siem-sinks/{id}Scope admin

Parameters

org_idstringpathrequired
idstringpathrequired

Code 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
GEThttps://lucidace.com/v1/orgs/{org_id}/audit/sinksScope admin

Parameters

org_idstringpathrequired

Code 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[]required
Show child parameters
created_atstringrequired
enabledbooleanrequired
idstringrequired
kindstringrequired
webhook | s3
last_delivery_atstring
last_errorstring
last_seqintegerrequired
org_idstringrequired
targetstringrequired
Webhook URL, or object-store key prefix.
next_cursorstring
403
404

Updated