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

OAuth App (oauth_app)

Tenant-isolated inbound OAuth 2.0 application with self-routing client_id and one-way hashed client_secret

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

# 2. Create oauth_app record (Generates 'oapp_...' Base62 ID)
created = await platform.records.create("oauth_app", [
    {"name": "Example OAuth App"}
])
Field API NameType / FormatLookup TargetFlagsDescription
idstring—requiredsystemId
namestring—requiredName
created_datestringdate-time—systemCreated Date
modified_datestringdate-time—systemModified Date
created_bystringlookup→ user (string ID)systemCreated By
modified_bystringlookup→ user (string ID)systemModified By
ownerstringlookup→ user (string ID)Owner
descriptionstring—Description
client_idstring—systemClient Id
client_secret_hashstring—systemClient Secret Hash
redirect_urislist—Redirect Uris
redirect_uristring—Redirect Uri
scopeslist—Scopes
is_activeboolean—Is Active
pkce_requiredboolean—PKCE Required
access_token_minutesnumber—Access Token Minutes
refresh_token_daysnumber—Refresh Token Days
organization_idstring—systemOrganization Id
shared_withlistsharing—systemShared With