Skip to main content
GET
/
v1
/
logs
Get Logs
curl --request GET \
  --url https://api.guardion.ai/v1/logs \
  --header 'Authorization: Bearer <token>'
{
  "logs": [
    {
      "log_id": "<string>",
      "session": "<string>",
      "application": "<string>",
      "flagged": true,
      "evals": [
        {
          "eval_id": "<string>",
          "policy": "<string>",
          "threshold": 123,
          "detector": "<string>",
          "target": "<string>",
          "detected": true,
          "threat_score": 123,
          "threat_type": "<string>"
        }
      ],
      "messages": [
        {
          "role": "<string>",
          "content": "<string>",
          "flagged": true
        }
      ],
      "created_at": "2023-11-07T05:31:56Z",
      "updated_at": "2023-11-07T05:31:56Z"
    }
  ],
  "total": 123,
  "page": 123,
  "page_size": 123,
  "total_pages": 123
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

page
integer
default:1
Required range: x >= 1
page_size
integer
default:100
Required range: 1 <= x <= 1000
application
string | null

Filter by application name Filter by application name

session
string | null

Filter by session ID Filter by session ID

from
string<date-time> | null

Start datetime (ISO8601, e.g. 2025-09-26T10:00:00Z) Start datetime (ISO8601, e.g. 2025-09-26T10:00:00Z)

to
string<date-time> | null

End datetime (ISO8601, e.g. 2025-09-26T23:59:59Z) End datetime (ISO8601, e.g. 2025-09-26T23:59:59Z)

last
string | null

Relative time window (e.g. 1h, 24h, 7d). If provided, 'from' and 'to' are ignored. Relative time window (e.g. 1h, 24h, 7d). If provided, 'from' and 'to' are ignored.

Response

Successful Response

logs
LogItem · object[]
required
total
integer
required
page
integer
required
page_size
integer
required
total_pages
integer
required