Audit Logs API
Overview
The Audit Log API enables you to access and retrieve audit logs associated with your Paradime account.
Fetch Audit Logs
This endpoint enables fetching Audit logs metadata for all event types and workspaces in your account.
Example Request
import requests
import os
# API credentials
api_endpoint = "<YOUR_API_ENDPOINT>"
api_key = "<YOUR_API_KEY>"
api_secret = "<YOUR_API_SECRET>"
graphql_query = """
query GetAuditLogs {
getAuditLogs {
auditLogs {
id
createdDttm
updatedDttm
workspaceId
workspaceName
actorType
actorUserId
actorEmail
eventSourceId
eventSource
eventId
eventType
metadataJson
}
}
}
"""
response = requests.post(api_endpoint, json={"query": graphql_query}, headers={
"Content-Type": "application/json",
"X-API-KEY": api_key,
"X-API-SECRET": api_secret,
})
print(response.json())
Last updated
Was this helpful?