← All Foundational Objects/Prefix: log_27 Fields
AI-Agent-First Documentation
/SKILL.md
Prompt your Agent: "Query and mutate records on the 'log' table (ID prefix 'log_') using platform.records and platform.query.sql, ensuring all lookup fields use plain string IDs."

Log (log)

A collection of logged API requests within the organization

Python SDK & PlatformContext Example
# 1. Query log via parameterized ANSI SQL
rows = await platform.query.sql("SELECT id, name, created_date FROM log ORDER BY created_date DESC LIMIT 25")

# 2. Create log record (Generates 'log_...' Base62 ID)
created = await platform.records.create("log", [
    {"name": "Example Log"}
])
Field API NameType / FormatLookup TargetFlagsDescription
idstring—requiredId
namestring—requiredName
created_datestringdate-time—Created Date
modified_datestringdate-time—Modified Date
created_bystringlookup→ user (string ID)Created By
modified_bystringlookup→ user (string ID)Modified By
headerjsonjson—requiredThe request headers
logstringtext-area—The raw logs of what happened during the request
status_codestring—requiredHow the request status code went
pathstring—requiredThe API path that was called
query_parameterjsonjson—requiredAny query parameters added to the request
start_timestringdate-time—requiredWhen the request started
process_timenumber—How long the request took
end_timestringdate-time—requiredWhen the request ended
request_datastringtext-area—Data that was sent in the request
ip_addressstring—requiredThe IP Address that sent the request
user_agentstring—requiredThe device the user was requesting from
statusstringenum—Terminal outcome status of the execution: Success, Error, Timeout, or Cancelled.
methodstring—The method that was called
shared_withlistsharing—systemShared With
typestringenum—The runtime engine category: function, record_trigger, automation, or ai_turn.
target_idstringcompound_lookup—Prefixed ID of the executed asset (e.g. fun_..., retr_..., aut_...).
target_namestring—API name or display name of the target asset.
duration_msnumber—Total execution duration measured in milliseconds.
invoked_bystring—Identity or mechanism that triggered this execution (e.g. User ID, Cron Scheduler, Record Trigger, AI Chat session).
error_messagestring—Single-line summary of any error or exception that occurred during execution.
data_compressedstringtext-area—Compressed Base64 payload containing complete execution inputs, outputs, and stack traces.