Integration
Platform Config
Platform configuration, metadata, and system-wide settings
Platform Config
Platform-wide configuration, metadata, feature flags, and system settings for the .do Business-as-Code platform.
Overview
The platform primitive provides access to system-wide configuration, environment settings, feature flags, and platform metadata for managing the entire .do ecosystem.
Quick Example
import { platform } from 'sdk.do'
// Get configuration
const config = await platform.config()
const apiUrl = await platform.config('apiUrl')
// Feature flags
if (await platform.isEnabled('newCheckout')) {
return renderNewCheckout()
}
// Environment info
const env = await platform.environment()Core Capabilities
- Configuration Management - System-wide settings and configuration
- Feature Flags - Toggle features without deployments
- Environment Detection - Development, staging, production environments
- Metadata Access - Platform version, capabilities, and status
- Multi-Tenancy - Tenant-specific configuration and settings
Access Methods
SDK
TypeScript/JavaScript library for platform operations
await platform.config('apiUrl')CLI
Command-line tool for platform management
do platform config get apiUrlAPI
REST/RPC endpoints for platform configuration
curl -X GET https://api.do/v1/platform/config/apiUrlMCP
Model Context Protocol for AI-driven platform operations
Get the API URL from platform configuration