Dynamic API endpoint in Data Source

Hey @josh you can use both depending on what you are trying to achieve. Using window will help you if you are using web components or Shopify. Otherwise you can go ahead with state.
You can take a look at our docs and other forum posts for the reference: