AI-Agent-First Documentation
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 Name | Type / Format | Lookup Target | Flags | Description |
|---|---|---|---|---|
| id | string | — | requiredsystem | Id |
| name | string | — | required | Name |
| created_date | stringdate-time | — | system | Created Date |
| modified_date | stringdate-time | — | system | Modified Date |
| created_by | stringlookup | → user (string ID) | system | Created By |
| modified_by | stringlookup | → user (string ID) | system | Modified By |
| owner | stringlookup | → user (string ID) | Owner | |
| description | string | — | Description | |
| client_id | string | — | system | Client Id |
| client_secret_hash | string | — | system | Client Secret Hash |
| redirect_uris | list | — | Redirect Uris | |
| redirect_uri | string | — | Redirect Uri | |
| scopes | list | — | Scopes | |
| is_active | boolean | — | Is Active | |
| pkce_required | boolean | — | PKCE Required | |
| access_token_minutes | number | — | Access Token Minutes | |
| refresh_token_days | number | — | Refresh Token Days | |
| organization_id | string | — | system | Organization Id |
| shared_with | listsharing | — | system | Shared With |
