# Get Workflow Step Configuration

Read how a step in the workflow's draft is set up: the arguments its action gets, nested as the action's schema nests them, with {{ steps.<stepId>.output... }} references to earlier steps; its options; and the connection it runs with. issues lists what is missing or kept as stored.

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

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/configuration' \
  --header 'Authorization: Bearer $MINDCLOUD_API_TOKEN'
```

## Response fields

- `arguments` (object): The action's arguments, nested as the action's schema nests them. A string may hold {{ ... }} references to earlier steps' output.
- `options` (object): Step options: pagination, filter, sort, retries, onFailure, onNoResults, onSuccess. An option present is on; one left out is off.
- `connection` (object): The connection the step runs with. Null when none is set or the app takes none.
  - `mode` (string): connection: a chosen connection; environment: the workflow's connection for the run's environment; installation: each installation's own (integration workflows).
    Allowed values:
      - `connection`
      - `environment`
      - `installation`
  - `connectionId` (string): The connection's id, from List Connections. Null with rules and no default.
  - `rules` (object): Conditions that pick another connection, first match wins: a list of { when: { field, operator, value }, connectionId }, or { $legacy } when kept as stored.
- `isConfigured` (boolean): Whether the editor considers the step set up (nothing required is missing). A draft may be saved incomplete.
- `issues` (array of objects): Warnings about the stored configuration: required values missing, values kept as stored, connections that are gone.
  - `severity` (string): error refuses a write; warning does not.
    Allowed values:
      - `error`
      - `warning`
  - `code` (string): What is wrong, UPPER_SNAKE (REQUIRED_MISSING, LEGACY_VALUE_PRESERVED, INVALID_REFERENCE, ...).
  - `path` (string): Where, as a JSON Pointer into the configuration (/arguments/contact/FirstName).
  - `message` (string): What is wrong, for a person.
- `revision` (string): The draft's revision: send it in If-Match on your next change to the draft. The response's ETag header is the same value.
