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

Portal (portal)

Portals allow Valstorm customers to create external experiences. These can range from a client portal, public website, partner portal, or other external-facing application. Portal Ids can be used in PLACE of organization ids to identify the tenant in API calls, allowing for seamless integration with external applications without exposing the main organization id.

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

# 2. Create portal record (Generates 'port_...' Base62 ID)
created = await platform.records.create("portal", [
    {"name": "Example Portal"}
])
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
domainstring—The domain of the portal
api_namestring—requiredAn auto-generated name to make the portal unique
descriptionstringrich-text—A description for what the portal is used for