AI-Agent-First Documentation
Prompt your Agent: "Query and mutate records on the 'organization' table (ID prefix 'org_') using platform.records and platform.query.sql, ensuring all lookup fields use plain string IDs."
Organization (organization)
Organizations are your company. This tells the application about you specifically.
Python SDK & PlatformContext Example
# 1. Query organization via parameterized ANSI SQL
rows = await platform.query.sql("SELECT id, name, created_date FROM organization ORDER BY created_date DESC LIMIT 25")
# 2. Create organization record (Generates 'org_...' Base62 ID)
created = await platform.records.create("organization", [
{"name": "Example Organization"}
])| 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 |
| is_active | boolean | — | Is Active | |
| website | string | — | Website | |
| description | string | — | Description | |
| admin | boolean | — | required | Admin |
| key | string | — | Key | |
| apps | list | — | required | Apps |
| stripe_customer_id | string | — | Stripe Customer Id | |
| address | jsonjson | — | required | Address |
| shipping_address | jsonjson | — | required | Shipping Address |
| company_hours | jsonavailability | — | The working hours of the company | |
| settings | jsonjson | — | Settings | |
| company_holidays | listdate_list | — | The holidays that the company observes. | |
| shared_with | listsharing | — | system | Shared With |
| is_sandbox | boolean | — | required | Whether this is a sandbox environment |
| parent_organization_id | string | — | The parent organization id for the sandbox | |
| sandbox_name | string | — | The name of this sandbox if it is a sandbox | |
| credits | numbercurrency | — | required | Available organization credit balance (1 credit = $1.00 USD) |
| credits_spent | numbercurrency | — | required | Lifetime credits spent on actions and compute |
| credits_currency | string | — | required | Credits Currency |
| subscription | jsonjson | — | Subscription |
