Setyenv · Docs
  • English
  • Español
  • 中文
  • 日本語
  • العربية
  • Deutsch
  • Français
  • हिन्दी
  • Bahasa Indonesia
  • Italiano
  • Nederlands
  • Português
  • Русский
  • Türkçe

Studio context & options

The workflow editor needs information about your WordPress site to provide accurate autocomplete and validation. The Studio context API supplies this data.

Studio context

GET /pfw/v1/studio/context returns:

  • Site info: name, URL, admin email, timezone, locale
  • Environment: WP version, PHP version, plugin version
  • Active plugins: list of installed and active plugins
  • Post types: registered public post types
  • Taxonomies: registered public taxonomies
  • User roles: available WordPress roles
  • Capabilities: current user's workflow capabilities

The editor uses this to:

  • Show only relevant node categories (e.g., hide WooCommerce nodes if WC not active)
  • Pre-fill site-specific data in node configuration
  • Determine which features are available (Pro vs Free)

Async option providers

GET /pfw/v1/studio/options lists available option providers:

ProviderWhat it provides
Post typesRegistered post types for Content nodes
Post statusesAvailable post statuses
User rolesWordPress role slugs
CapabilitiesWordPress capability strings
TaxonomiesRegistered taxonomies
Connector manifestsAvailable connections and their status

GET /pfw/v1/studio/options/{source} resolves a specific provider:

// GET /pfw/v1/studio/options/post_statuses
["draft", "pending", "private", "publish"]

Token catalog

GET /pfw/v1/studio/tokens returns all available token namespaces with example values, used for autocomplete in the node inspector.