> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stigg.io/llms.txt
> Use this file to discover all available pages before exploring further.

# widgetConfiguration

> Fetch the current widget configuration.



**query** `widgetConfiguration(input: GetWidgetConfigurationInput!): WidgetConfiguration!`

## Arguments

**`input`**: `GetWidgetConfigurationInput!` (required)

Input object used to retrieve current widget configuration for the environment.

## Returns

`WidgetConfiguration!`

**`checkout`**: `CheckoutConfiguration`

Custom UI configuration for the checkout widget.

---

**`customerPortal`**: `CustomerPortalConfiguration`

Custom UI configuration for the customer portal widget.

---

**`paywall`**: `PaywallConfiguration`

Custom UI configuration for the paywall widget.

## Examples

```graphql Query
query WidgetConfiguration($input: GetWidgetConfigurationInput!) {
  widgetConfiguration(input: $input) {
    checkout {
      content {
        collectPhoneNumber
      }
      customCss
      palette {
        backgroundColor
        borderColor
        primary
        summaryBackgroundColor
        textColor
      }
      typography {
        body {
          __typename
        }
        fontFamily
        h1 {
          __typename
        }
        h2 {
          __typename
        }
        h3 {
          __typename
        }
      }
    }
    customerPortal {
      customCss
      palette {
        backgroundColor
        borderColor
        currentPlanBackground
        iconsColor
        paywallBackgroundColor
        primary
      }
      typography {
        body {
          __typename
        }
        fontFamily
        h1 {
          __typename
        }
        h2 {
          __typename
        }
        h3 {
          __typename
        }
      }
    }
    paywall {
      customCss
      layout {
        alignment
        planMargin
        planPadding
        planWidth
      }
      palette {
        backgroundColor
        borderColor
        currentPlanBackground
        primary
        textColor
      }
      typography {
        body {
          __typename
        }
        fontFamily
        h1 {
          __typename
        }
        h2 {
          __typename
        }
        h3 {
          __typename
        }
      }
    }
  }
}
```

```json Variables
{
  "input": {}
}
```

```json Response
{
  "data": {
    "widgetConfiguration": {
      "checkout": {
        "content": {
          "collectPhoneNumber": true
        },
        "customCss": "string",
        "palette": {
          "backgroundColor": "string",
          "borderColor": "string",
          "primary": "string",
          "summaryBackgroundColor": "string",
          "textColor": "string"
        },
        "typography": {
          "body": {
            "__typename": "FontVariant"
          },
          "fontFamily": "string",
          "h1": {
            "__typename": "FontVariant"
          },
          "h2": {
            "__typename": "FontVariant"
          },
          "h3": {
            "__typename": "FontVariant"
          }
        }
      },
      "customerPortal": {
        "customCss": "string",
        "palette": {
          "backgroundColor": "string",
          "borderColor": "string",
          "currentPlanBackground": "string",
          "iconsColor": "string",
          "paywallBackgroundColor": "string",
          "primary": "string"
        },
        "typography": {
          "body": {
            "__typename": "FontVariant"
          },
          "fontFamily": "string",
          "h1": {
            "__typename": "FontVariant"
          },
          "h2": {
            "__typename": "FontVariant"
          },
          "h3": {
            "__typename": "FontVariant"
          }
        }
      },
      "paywall": {
        "customCss": "string",
        "layout": {
          "alignment": "CENTER",
          "planMargin": 1.5,
          "planPadding": 1.5,
          "planWidth": 1.5
        },
        "palette": {
          "backgroundColor": "string",
          "borderColor": "string",
          "currentPlanBackground": "string",
          "primary": "string",
          "textColor": "string"
        },
        "typography": {
          "body": {
            "__typename": "FontVariant"
          },
          "fontFamily": "string",
          "h1": {
            "__typename": "FontVariant"
          },
          "h2": {
            "__typename": "FontVariant"
          },
          "h3": {
            "__typename": "FontVariant"
          }
        }
      }
    }
  }
}
```


## Related topics

- [WidgetConfiguration](https://docs.stigg.io/graphql-reference/types/WidgetConfiguration.md)
- [WidgetConfigurationUpdateInput](https://docs.stigg.io/graphql-reference/types/WidgetConfigurationUpdateInput.md)
- [setWidgetConfiguration](https://docs.stigg.io/graphql-reference/mutations/setWidgetConfiguration.md)
- [GetWidgetConfigurationInput](https://docs.stigg.io/graphql-reference/types/GetWidgetConfigurationInput.md)
- [Credit auto-recharge configuration](https://docs.stigg.io/documentation/snap-in-widgets/credit-auto-recharge-configuration.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.