Get guard logs
Retrieve individual Guard request logs for your organization.
Returns up to limit logs (default 100, max 1000) ordered by timestamp ascending (oldest first). Only flagged results and message-level results are included in each log entry — unflagged detections are omitted.
Pagination. Use offset to page through results. When has_more is true in the response, increment offset by limit to fetch the next page. For example, to iterate over all logs in a time range with pages of 500: fetch with offset=0, then offset=500, then offset=1000, and so on until has_more is false.
Filtering. Narrow results using any combination of these filters:
-
flagged_only— only requests where the policy action flagged the request. -
detected_only— only requests where at least one detector fired (includes monitor-mode hits where the policy does not flag). -
detector_types— only requests that triggered one or more of the listed detector types. See theGetLogsRequestschema for the list of accepted values and their corresponding display names in the AI Guardrails Dashboard.
Authentication. Use a Platform API key from the AI Guardrails Dashboard — not the Guard API key used for inference requests at api.lakera.ai.
Access. This endpoint is available to select organizations. Contact your Check Point representative to request access. Community users may also reach out to support@lakera.ai.
Authentication
Bearer authentication using API key. Generate an API key from the AI Guardrails Dashboard. Example: Bearer sk_123…
Keys carry one of two access scopes, chosen when the key is created:
- Read and write — may call every endpoint. This is the default, and the scope of every key created before scopes were introduced.
- Read only — may call read endpoints such as
/v1-beta/logs,/v1-beta/analyticsand theGETendpoints. Write endpoints return403.
Issue a read-only key to anything that only needs to retrieve data, such as a log-shipping job or a dashboard, so that it cannot modify your policies or projects.
Request
Start of the time range (inclusive)
End of the time range (exclusive). Must be after start_time.
Maximum number of logs to return. Logs are ordered by timestamp ascending (oldest first).
Number of logs to skip before returning results. Use with has_more in the response to page through large result sets: increment offset by limit until has_more is false.
When true, only return requests where the policy action flagged the request. Independent of detected_only.
When true, only return requests where at least one detector fired. This includes monitor-mode requests where a detector fired but the policy did not flag. Independent of flagged_only.
Filter to requests that triggered one or more of the listed detector types. An empty list (the default) returns all requests regardless of detector.
Accepted values and their corresponding display names in the AI Guardrails Dashboard:
Response
true when there are more logs beyond this page. Increment offset by limit and repeat the request to fetch the next page.