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

File (file)

A file of any type. These can be pdfs, csv, excel, images, text, videos, anything really. It is stored in an S3 bucket and can be private or publicly accessible.

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

# 2. Create file record (Generates 'file_...' Base62 ID)
created = await platform.records.create("file", [
    {"name": "Example File"}
])
Field API NameType / FormatLookup TargetFlagsDescription
idstring—systemId
namestring—Name
created_datestringdate-time—systemCreated Date
modified_datestringdate-time—systemModified Date
created_bystringlookup→ user (string ID)systemCreated By
modified_bystringlookup→ user (string ID)systemModified By
locationstring—requiredLocation
extensionstring—requiredExtension
content_typestring—requiredContent Type
ownerstringlookup→ user (string ID)systemOwner
is_publicboolean—requiredIs Public
linkstringlink—A link to where the file is hosted. It will require fetching through the API if it is a private file to ensure privacy is up held
shared_withlistsharing—systemShared With
vault_pathslist—systemVault Paths
vaultslistlookup_list→ vault (string ID)systemVaults
current_versionnumber—requiredCurrent Version
version_countnumber—requiredHow many versions exist for this file
latest_versionstringlookup→ file_version (string ID)A lookup link to the latest version record
active_versionstringlookup→ file_version (string ID)The file version that is currently considered the live, publish or valid version to use for context
file_sizenumber—How big the file is in bytes
taglistmulti-select—Categorize files with global tags to enable multi-agent knowledge binding and querying.
contentstring—Content
is_deletedboolean—Is Deleted