Skip to content

Workflows

Get source resources

List the workspace resources workflow source can name, each with the key source uses for it: tables with their columns, knowledge bases, saved credentials with their provider, workflows with their start-block inputs, workspace skills and custom tools, MCP servers with the tool names they list, and the names (never values) of the environment variables a run can read. A resource keeps its key when renamed; one that no source has named yet is given its key by this call. Each kind lists its oldest 1000 resources, and `truncated` says when there were more. Returns `403` while workflows as code is not enabled. OAuth scope: `api:read`.

GET/api/v2/workspaces/{workspaceId}/workflows/source/resources

List the workspace resources workflow source can name, each with the key source uses for it: tables with their columns, knowledge bases, saved credentials with their provider, workflows with their start-block inputs, workspace skills and custom tools, MCP servers with the tool names they list, and the names (never values) of the environment variables a run can read. A resource keeps its key when renamed; one that no source has named yet is given its key by this call. Each kind lists its oldest 1000 resources, and truncated says when there were more. Returns 403 while workflows as code is not enabled.

OAuth scope: api:read.

Authentication

Send a personal or workspace API key in X-API-Key. See key types and access; operations that reject workspace keys say so in their description.

Send X-API-Key in the request header.

Alternatively

Send a Sim OAuth access token in Authorization: Bearer. See OAuth authentication and scopes.

Authorization: Bearer YOUR_ACCESS_TOKEN

Required scopes: api:read

OAuth flows
json
{
  "authorizationCode": {
    "authorizationUrl": "https://www.sim.ai/api/auth/oauth2/authorize",
    "tokenUrl": "https://www.sim.ai/api/auth/oauth2/token",
    "refreshUrl": "https://www.sim.ai/api/auth/oauth2/token",
    "scopes": {
      "api:read": "Read your workspaces, workflows, files, tables, and logs",
      "api:write": "Read, create, change, run, and delete resources in your workspaces",
      "offline_access": "Stay signed in without asking again"
    }
  }
}

OAuth scope: api:read.

Path parameters

workspaceIdstringRequired

Workspace whose resources to list.

minLength
1
maxLength
128

Responses

200

The resources workflow source can name.

object

The workspace resources workflow source can name.

1 field
dataobjectRequired

Response data.

10 fields
workspaceIdstringRequired

Workspace id.

tablesarrayRequired

Tables, oldest first.

Schema details
Array itemobject

A table: table(key).

4 fields
keystringRequired

The key workflow source names this resource by; it never changes once assigned.

idstringRequired

Resource id.

namestringRequired

Current display name.

columnsarrayRequired

Columns in table order.

Schema details
Array itemobject
5 fields
namestringRequired

Column name, as row data names it.

typestringRequired

Column type, e.g. string, number, boolean, json, select.

enum
["string","number","currency","boolean","date","json","select"]
optionsarray

Option names a select column accepts, as table blocks read and write them.

Schema details
Array itemstring
multipleboolean

A select column whose cells hold several options.

requiredboolean

Every row holds a value.

Additional properties are not allowed.

Additional properties are not allowed.

knowledgeBasesarrayRequired

Knowledge bases, oldest first.

Schema details
Array itemobject

A knowledge base: knowledgeBase(key).

3 fields
keystringRequired

The key workflow source names this resource by; it never changes once assigned.

idstringRequired

Resource id.

namestringRequired

Current display name.

Additional properties are not allowed.

credentialsarrayRequired

Saved credentials, oldest first. Secrets are listed under env.

Schema details
Array itemobject

A saved credential: credential(key).

4 fields
keystringRequired

The key workflow source names this resource by; it never changes once assigned.

idstringRequired

Resource id.

namestringRequired

Current display name.

providerstringRequired

The provider the credential is for, e.g. slack or google-email.

Additional properties are not allowed.

workflowsarrayRequired

Workflows, oldest first.

Schema details
Array itemobject

A workflow: childWorkflow(key).

4 fields
keystringRequired

The key workflow source names this resource by; it never changes once assigned.

idstringRequired

Resource id.

namestringRequired

Current display name.

inputsarrayRequired

Inputs the workflow start block declares.

Schema details
Array itemobject
2 fields
namestringRequired

Input field name.

typestringRequired

Input field type, e.g. string or number.

Additional properties are not allowed.

Additional properties are not allowed.

skillsarrayRequired

Workspace skills, oldest first. Built-in skills have no key and are not listed.

Schema details
Array itemobject

A workspace skill: skill(key).

3 fields
keystringRequired

The key workflow source names this resource by; it never changes once assigned.

idstringRequired

Resource id.

namestringRequired

Current display name.

Additional properties are not allowed.

customToolsarrayRequired

Workspace custom tools, oldest first.

Schema details
Array itemobject

A workspace custom tool, by its title: customTool(key).

3 fields
keystringRequired

The key workflow source names this resource by; it never changes once assigned.

idstringRequired

Resource id.

namestringRequired

Current display name.

Additional properties are not allowed.

mcpServersarrayRequired

MCP servers, oldest first.

Schema details
Array itemobject

An MCP server the workspace consumes: mcp(key).

4 fields
keystringRequired

The key workflow source names this resource by; it never changes once assigned.

idstringRequired

Resource id.

namestringRequired

Current display name.

toolsarray

Tool names the server listed, for mcp(key).tool(name); absent when it could not be listed (unreachable, or not listable by this caller).

Schema details
Array itemstring

Additional properties are not allowed.

envarrayRequired

Environment variable names a run can read as env.NAME: the workspace secrets and, for a user, their personal ones. Never values.

Schema details
Array itemstring
truncatedbooleanRequired

True when a kind had more than 1000 resources; only the oldest 1000 of that kind are listed.

Additional properties are not allowed.

Additional properties are not allowed.

Response example 1

json
{
  "data": {
    "workspaceId": "a91c4b2e-6d3f-4e8a-b5c7-0d9e2f1a8c64",
    "tables": [
      {
        "key": "tickets",
        "id": "tbl_4f1c2a9e",
        "name": "Tickets",
        "columns": [
          {
            "name": "subject",
            "type": "string"
          },
          {
            "name": "status",
            "type": "select",
            "options": [
              "open",
              "closed"
            ]
          }
        ]
      }
    ],
    "knowledgeBases": [
      {
        "key": "docs",
        "id": "kb_93a1e7c2",
        "name": "Docs"
      }
    ],
    "credentials": [
      {
        "key": "support-slack",
        "id": "cred_51d0b8f4",
        "name": "Support Slack",
        "provider": "slack"
      }
    ],
    "workflows": [
      {
        "key": "assign-owner",
        "id": "3b1f7c92-8d4e-4a6b-9c0d-5e2f8a714b36",
        "name": "Assign owner",
        "inputs": [
          {
            "name": "leads",
            "type": "array"
          }
        ]
      }
    ],
    "skills": [
      {
        "key": "triage",
        "id": "skl_7e2a4c19",
        "name": "Triage"
      }
    ],
    "customTools": [
      {
        "key": "lookup-order",
        "id": "ctl_2b8d6f03",
        "name": "lookup_order"
      }
    ],
    "mcpServers": [
      {
        "key": "github",
        "id": "mcp-1a2b3c4d",
        "name": "GitHub",
        "tools": [
          "create_issue",
          "list_issues"
        ]
      }
    ],
    "env": [
      "CRM_KEY"
    ],
    "truncated": false
  }
}

Response headers

X-RateLimit-Limitinteger

Maximum requests allowed in the current window.

minimum
0
maximum
9007199254740991
X-RateLimit-Remaininginteger

Requests remaining in the current window.

minimum
0
maximum
9007199254740991
X-RateLimit-Resetstring

ISO 8601 timestamp when the current rate-limit window resets.

format
date-time
pattern
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$
Was this helpful?
Suggest an edit