GET
/
api
/
v2
/
enterprise
/
audit-logs
curl -X GET "https://api.devin.ai/api/v2/enterprise/audit-logs" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -G \
  -d "limit=50"
{
  "logs": [
    {
      "id": "log_123456",
      "timestamp": "2024-01-20T14:30:00Z",
      "event": "session_created",
      "user_id": "user_123",
      "details": {
        "session_id": "session_789"
      }
    }
  ]
}

Get audit logs for the current user’s organization.

Query Parameters

before
string

Return logs before this cursor/timestamp

after
string

Return logs after this cursor/timestamp

limit
integer
default:"100"

Maximum number of audit log entries to return

Response

Returns audit log data in JSON format.

curl -X GET "https://api.devin.ai/api/v2/enterprise/audit-logs" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -G \
  -d "limit=50"
{
  "logs": [
    {
      "id": "log_123456",
      "timestamp": "2024-01-20T14:30:00Z",
      "event": "session_created",
      "user_id": "user_123",
      "details": {
        "session_id": "session_789"
      }
    }
  ]
}