Skip to content
Proud to collaborate with Microsoft for Startups

data.ai-provider.list ​

List all AIProviderConfig rows for an organization (optionally filtered to enabled=True)

List all AIProviderConfig rows for an organization.

Read-only — no DB mutations. Uses context.metadata["organization"] for the internal organization_id lookup; the public input is organization_uuid only.

When enabled_only=True, filters to rows where enabled=True. Results are ordered default-first (is_default DESC, id ASC).

Output shape:

  • ai_provider_configs: list of dicts with keys ai_provider_config_uuid, connection_uuid, default_model, is_default, enabled
  • count: len(ai_provider_configs)

Overview ​

PropertyValue
Workflow typeAtomic
LibraryApp-connection
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
organization_uuiduuidYes—UUID of the organization whose AI provider configs are listed
enabled_onlybooleanNo—When true, return only rows where enabled=True (default: False)

Output Schema ​

FieldTypeRequiredDefaultDescription
ai_provider_configsjsonYes—List of AIProviderConfig dicts — each contains: ai_provider_config_uuid (str), connection_uuid (str), default_model (str
countintegerYes—Number of AIProviderConfig rows returned
failure_reasonstringNo—Engine-stamped: human-readable failure reason
failed_stepstringNo—Engine-stamped: name of the step that failed (DAG workflows)
failed_layerintegerNo—Engine-stamped: layer index that failed (DAG workflows)
failed_at_statestringNo—Engine-stamped: state name when the failure occurred
errorstringNo—Engine-stamped: error message on the failure envelope
error_typestringNo—Engine-stamped: exception class name on the failure envelope

States ​

StateInitialTerminalSuccessAuto-advanceDescription
pendingYesNo—completeList AI provider configs for the organization
completedNoYesYes—AI provider configs listed
failedNoYesNo—List failed

State Diagram ​

Transitions ​

FromActionToDescription
pendingcompletecompleted—
pendingfailfailed—

API Usage ​

bash
POST /api/workflows/start
Content-Type: application/json

{
  "workflow_type": "data.ai-provider.list",
  "initial_data": {
    "organization_uuid": "value"
  }
}