GET
/
api
/
v1
/
organization
/
audit-logs
curl --request GET \
  --url https://us.infisical.com/api/v1/organization/audit-logs
{
  "auditLogs": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "ipAddress": "<string>",
      "userAgent": "<string>",
      "userAgentType": "<string>",
      "expiresAt": "2023-11-07T05:31:56Z",
      "createdAt": "2023-11-07T05:31:56Z",
      "updatedAt": "2023-11-07T05:31:56Z",
      "orgId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "projectId": "<string>",
      "projectName": "<string>",
      "event": {
        "type": "<string>",
        "metadata": "<any>"
      },
      "actor": {
        "type": "<string>",
        "metadata": "<any>"
      }
    }
  ]
}

Query Parameters

projectId
string

Optionally filter logs by project ID. If not provided, logs from the entire organization will be returned.

environment
string

The environment to filter logs by. If not provided, logs from all environments will be returned. Note that the projectId parameter must also be provided.

actorType
enum<string>
Available options:
platform,
kmipClient,
user,
service,
identity,
machine,
scimClient,
unknownUser
secretPath
string

The path of the secret to query audit logs for. Note that the projectId parameter must also be provided.

secretKey
string

The key of the secret to query audit logs for. Note that the projectId parameter must also be provided.

eventType
string
userAgentType
enum<string>

Choose which consuming application to export audit logs for.

Available options:
web,
cli,
k8-operator,
terraform,
other,
InfisicalPythonSDK,
InfisicalNodeSDK
eventMetadata
string

Filter by event metadata key-value pairs. Formatted as key1=value1,key2=value2, with comma-separation.

startDate
string

The date to start the export from.

endDate
string

The date to end the export at.

offset
number
default:0

The offset to start from. If you enter 10, it will start from the 10th audit log.

limit
number
default:20

The number of audit logs to return.

actor
string

The actor to filter the audit logs by.

Response

200
application/json
Default Response
auditLogs
object[]
required

Was this page helpful?