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 ​
| Property | Value |
|---|---|
| Workflow type | Atomic |
| Library | App-connection |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
organization_uuid | uuid | Yes | — | UUID of the organization whose AI provider configs are listed |
enabled_only | boolean | No | — | When true, return only rows where enabled=True (default: False) |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
ai_provider_configs | json | Yes | — | List of AIProviderConfig dicts — each contains: ai_provider_config_uuid (str), connection_uuid (str), default_model (str |
count | integer | Yes | — | Number of AIProviderConfig rows returned |
failure_reason | string | No | — | Engine-stamped: human-readable failure reason |
failed_step | string | No | — | Engine-stamped: name of the step that failed (DAG workflows) |
failed_layer | integer | No | — | Engine-stamped: layer index that failed (DAG workflows) |
failed_at_state | string | No | — | Engine-stamped: state name when the failure occurred |
error | string | No | — | Engine-stamped: error message on the failure envelope |
error_type | string | No | — | Engine-stamped: exception class name on the failure envelope |
States ​
| State | Initial | Terminal | Success | Auto-advance | Description |
|---|---|---|---|---|---|
pending | Yes | No | — | complete | List AI provider configs for the organization |
completed | No | Yes | Yes | — | AI provider configs listed |
failed | No | Yes | No | — | List failed |
State Diagram ​
Transitions ​
| From | Action | To | Description |
|---|---|---|---|
pending | complete | completed | — |
pending | fail | failed | — |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "data.ai-provider.list",
"initial_data": {
"organization_uuid": "value"
}
}