ChatGPT

Download 50
Last updated Aug 16, 2025

chatgpt-audit-logs

Retrieve ChatGPT audit logs.

chatgpt-audit-logs profile=PROFILE [duration=NUM{mon|w|d|h|m|s}] [from=yyyyMMddHHmmss] [to=yyyyMMddHHmmss] [project-id=PROJECT-ID] [user=USER] [action=ACTION]
profile=PROFILE
Profile name of ChatGPT
duration=NUM{mon|w|d|h|m|s}
Scan only recent data. You should use s(second), m(minute), h(hour), d(day), mon(month) time unit. For example, 10s means data from 10 seconds earlier.
from=yyyyMMddHHmmss
Start time of range. yyyyMMddHHmmss format. If you omit time part, it will be padded by zero.
to=yyyyMMddHHmmss
End time of range. yyyyMMddHHmmss format. If you omit time part, it will be padded by zero.
project-id=PROJECT-ID
Filter by project ID
user=USER
Filter by user email
action=ACTION
Filter by action type

Output Fields

FieldTypeNameDescription
profileStringConnect profileProfile name of ChatGPT
_timeDateTimeWhen the event occurred
idStringIDUnique identifier for the audit log event
src_ipIP addressSource IPIP address of the actor
user_typeStringUser typeType of user (session, api_key)
userStringUserEmail of the user who performed the action
actionStringActionType of the audit log event
project_nameStringProject nameProject name associated with the event
paramsMapParametersEvent-specific parameters (e.g., api_key.created, certificate.deleted)
user_idStringUser IDUser ID who performed the action
service_idStringService IDService account ID for API key actions
api_key_idStringAPI key IDID of the API key used
api_key_typeStringAPI key typeType of the API key used
project_idStringProject IDProject ID associated with the event