# Get Workflow Step Schema

Read what a step's configuration takes before you set it: its action's arguments as a tree with their types, choices and required ones; the options the action supports and their limits; the connection it needs; and the output fields later steps can reference. It describes the app version the step uses.

`GET https://connect.mindcloud.co/v2/workflows/:workflowId/steps/:stepId/schema`

Permissions: `workflow:view`.

## Parameters

### Path

- `workflowId` (string, required): The workflow's id, from List Workflows.
- `stepId` (string, required): The step's id, from List Workflow Steps or Get Workflow Definition.

### Headers

- `X-Company-Id` (string): Optional. The id of the organization to act in. Leave it out to act in the API key's own organization. A key can also act in its child organizations, and, with "Use this key across all of your organizations" on, in every organization its creator can open in the app. List them with GET /v2/companies. Every response's X-Company-Id header names the organization it acted in. See [Organizations](https://mindcloud.co/docs/api/rest/introduction/organizations).

## Example request

```bash
curl --request GET \
  --url 'https://connect.mindcloud.co/v2/workflows/Wq3kZ8pLx2Nb/steps/SyDtUxIQeocK/schema' \
  --header 'Authorization: Bearer $MINDCLOUD_API_TOKEN'
```

## Response fields

- `app` (object): The step's app and the version it uses.
  - `slug` (string): The app's slug.
  - `version` (string): The app version the step uses.
- `action` (object): The action the step runs.
  - `id` (string): The action's id.
  - `name` (string): The action's name.
  - `operation` (string): read, create, update, delete, or null.
  - `kind` (string): action or trigger.
    Allowed values:
      - `action`
      - `trigger`
- `arguments` (object): The arguments, as a tree: key, label, type, required, and when they apply itemType, description, placeholder, default, advanced, sensitive, multiple, mappable, customFields, choices and children. A built-in step answers a flat list of its settings: key, type (string, template, integer, boolean, object, array or condition), required, description, example, and default and choices when it has them.
- `options` (object): Each option (pagination, filter, sort, retries, onFailure, onNoResults, onSuccess): supported, and what it accepts.
- `connection` (object): The connection the step needs.
  - `required` (boolean): Whether the app needs a connection.
  - `authType` (string): The app's authentication type.
  - `modes` (array): The connection modes this step accepts.
- `output` (object): The output fields the action declares, which later steps reference.
  - `description` (string): What a built-in step outputs, in words, beside its fixed fields (a Loop passes on each item, a Map step what its code returns). Absent for an app action.
  - `fields` (array): Each declared field: key, type, description.
    - `key` (string): The field's path.
    - `type` (string): The field's type.
    - `description` (string): What the field holds.
