ChatGPT Enterprise

Download 0
Last updated Sep 25, 2026

ChatGPT Enterprise Codex Logs

Retrieve Codex usage from the ChatGPT Enterprise service, including prompts and token consumption.

chatgpt-ent-codex-logs [profile=VALUE] [duration=VALUE] [from=VALUE] [to=VALUE] [user=VALUE]
profile=VALUE
Optional. Profile name of the ChatGPT Enterprise workspace.
duration=VALUE
Optional. 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. The API requires a start time, so the last 24 hours are used when no period is given.
from=VALUE
Optional. Start time of range. yyyyMMddHHmmss format. If you omit time part, it will be padded by zero.
to=VALUE
Optional. End time of range. yyyyMMddHHmmss format. If you omit time part, it will be padded by zero.
user=VALUE
Optional. Filter by the email of the user who caused the event.

Output fields

FieldTypeNameDescription
_timeDateTimee.g. 2026-09-05 09:13:44. When the event occurred.
profileStringConnect profilee.g. workspace-prod
userStringUsere.g. user@example.com
client_idStringCliente.g. CODEX_CLI (the command line), CODEX_WEB (the browser)
detail_typeStringDetail typee.g. PROMPT_SENT (a prompt was submitted), PROMPT_RESPONSE_RECEIVED (a reply came back)
modelStringModele.g. gpt-5-codex
reasoning_effortStringReasoning efforte.g. low, medium, high. How much reasoning the request asked for.
statusStringStatuse.g. completed, failed
content_lengthLongContent lengthe.g. 1596
contentStringContente.g. extract urls if contains *.exe in given urls. The instruction can sit at the end of a long message, so read the whole value rather than its opening.
input_tokensLongInput tokense.g. 1500
output_tokensLongOutput tokense.g. 320
cached_input_tokensLongCached input tokense.g. 1200. Input served from cache, which is billed differently.
reasoning_output_tokensLongReasoning output tokense.g. 800
session_idStringSession IDe.g. 01990000-1111-7222-8333-444455556666. Groups the events of one Codex session.
turn_idStringTurn IDe.g. 01a00000-1111-7222-8333-444455556666. One exchange within a session.
service_tierStringService tiere.g. default, flex, priority
environment_idStringEnvironment IDe.g. env-3c4d5e6f
workspace_idStringWorkspace IDe.g. 9a8b7c6d-1e2f-4a3b-8c4d-5e6f70819a2b
typeStringEvent typee.g. CODEX_LOG
event_idStringEvent IDe.g. 3c4d5e6f-7081-49a2-b3c4-d5e6f7081920
user_idStringUser IDe.g. user-AbCdEfGhIjKlMnOpQrStUvWx
actor_typeStringActor typee.g. ACCOUNT_USER
principal_idStringWorkspace IDe.g. 9a8b7c6d-1e2f-4a3b-8c4d-5e6f70819a2b
principal_typeStringWorkspace typee.g. CHATGPT_WORKSPACE
file_idStringLog file IDe.g. eclf_0a1b2c3d4e5f60718293a4b5c6d7e8f9. Compliance log file the event was read from.
extraMapUnmapped fieldse.g. {new_field=...}. Fields this app does not recognise yet, kept so nothing is lost when the API adds them.
src_ipIPSource IPe.g. 203.0.113.10
src_countryStringSource countrye.g. KR
src_cityStringSource citye.g. Seoul
src_regionStringSource regione.g. Seoul
src_asnStringSource ASNe.g. 4766
user_agentStringUser agente.g. Mozilla/5.0
ja3StringJA3 fingerprinte.g. a1b2c3d4e5f60718293a4b5c6d7e8f90. TLS client fingerprint; a change can mean a different client.
ja4StringJA4 fingerprinte.g. q13d0314h3_a1b2c3d4e5f6_0a1b2c3d4e5f
dst_hostStringDestination hoste.g. chatgpt.com