# getWorkflowTable

One Workflow Table with its rows, paged by `rowLimit` (default 100, at most 500) and `rowOffset`: keep reading while a page comes back full (`rowCount` excludes the DEFAULT row, which pages like any other): each row's key (`key`, `keyLabel`, the `keyLevel` of the fallback chain it sits on, and its `keyParts`), whether it is the DEFAULT row (used when nothing matches), and its cells by `columnId`. Rows need an org admin (the Tables editor's gate); null when the table is not in your org. Which row one record gets is previewWorkflowTableLookup's answer, never a key matched by eye.

- Call: `POST https://server.goliathdata.com/api/v1/call` with `{ "operationId": "getWorkflowTable", "variables": {...} }`
- Scope: `READ`
- Type: query
- Idempotency: a read; rejects `Idempotency-Key`
- Rate-limited: no

## Variables

- `workflowTableId`: `ID!` (required)
- `rowLimit`: `Int!` (default `100`)
- `rowOffset`: `Int` (default `0`)

## Response (data, an example)

```json
{
  "workflowAutomationsQuery": {
    "workflowTable": {
      "id": "<ID>",
      "name": "…",
      "description": "…",
      "keyKind": "COUNTY_FIPS",
      "keyFieldPath": "…",
      "keyShape": {
        "levels": [
          {
            "parts": [
              {
                "kind": "COUNTY_FIPS",
                "fieldPath": "…",
                "match": "EXACT"
              }
            ]
          }
        ]
      },
      "rowCount": 0,
      "isProvisioned": true,
      "updatedAt": "2026-01-01T00:00:00.000Z",
      "columns": [
        {
          "id": "<ID>",
          "name": "…",
          "kind": "TEXT",
          "displayOrder": 0,
          "tokenKey": "…",
          "options": [
            {
              "value": "…",
              "label": "…"
            }
          ]
        }
      ],
      "rows": [
        {
          "id": "<ID>",
          "key": "…",
          "keyLabel": "…",
          "keyLevel": 0,
          "keyParts": [
            {
              "match": "EXACT",
              "value": "…",
              "label": "…",
              "rangeStart": "…",
              "rangeEnd": "…"
            }
          ],
          "isDefault": true,
          "displayOrder": 0,
          "cells": [
            {
              "columnId": "<ID>",
              "value": "…"
            }
          ]
        }
      ]
    }
  }
}
```

## Example

```bash
curl https://server.goliathdata.com/api/v1/call \
  -H "Authorization: Bearer $GOLIATH_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "operationId": "getWorkflowTable",
    "variables": {
      "workflowTableId": "<workflowTableId>"
    }
  }'
```
