# Get workflow config

> The runtime bindings: which credential fills each slot, each const's value, and each trigger's schedule or poll inputs.

Source: https://docs.generalinput.com/api/workflows/get-config



<Endpoint method="GET" path="/v1/workflows/:id/config" />

<Access scope="workflows:manage" />

Config lives in the database, not in the bundle. A run with an unwired credential or an unset schedule is blocked.

## Response [#response]

```json
{
  "credentials": {
    "slack": "cred_01HX…",
    "search-internet": "psvc_search-internet"
  },
  "variables": { "days": 7, "greeting": "Good morning" },
  "triggers": {
    "daily": {
      "type": "cron",
      "schedule": "0 9 * * 1-5",
      "timezone": "America/New_York"
    },
    "newEmail": {
      "type": "poll",
      "selectedCredentialId": "cred_02AB…",
      "inputValues": { "label": "INBOX" }
    },
    "inbound": {
      "type": "webhook",
      "webhookUrl": "https://cloud.generalinput.com/webhooks/…"
    }
  }
}
```

| Field         | Notes                                                                                                                |
| ------------- | -------------------------------------------------------------------------------------------------------------------- |
| `credentials` | Service slug to credential id. Hosted services and platform resources (databases, stores, browsers) appear here too. |
| `variables`   | Const key to value.                                                                                                  |
| `triggers`    | Keyed by the trigger id declared in `workflow.json`. Shape depends on `type`.                                        |
