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

Api Trigger (api_trigger)

Creates an API endpoint to run code at Valstorm

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

# 2. Create api_trigger record (Generates 'aptr_...' Base62 ID)
created = await platform.records.create("api_trigger", [
    {"name": "Example Api Trigger"}
])
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
methodstring—requiredMethod
pathstring—requiredPath
file_namestring—requiredFile Name
method_namestring—requiredMethod Name
codestringtext-area—Code
appstringlookup→ app (string ID)App
shared_withlistsharing—systemShared With