> For the complete documentation index, see [llms.txt](https://docs.tryterra.co/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tryterra.co/help-center/help-topics/webhook/payload-content-and-provider-quirks/include-samples-global-scope.md).

# Does the Include Samples toggle affect the API too?

The Include Samples toggle applies globally, affecting both API responses and webhook payloads.

The **Include Samples** toggle applies to the whole environment, affecting both API responses and webhook payloads. When it is off, sample arrays are removed from every data type, including laps, GPS positions and heart rate zones, which sit in the same samples block. A data request that explicitly sets `with_samples=true` still returns samples. Per-destination sample control is not supported, so you cannot route the same provider with and without samples to two webhooks.

A request covering more than one calendar month must use `to_webhook=true`, and the data is delivered to your destination. The same request with `to_webhook=false` returns a `400`. `with_samples` works the same way for those deliveries.

The usual approach is to **enable samples globally and filter on your side**.

If payloads exceed your size limits, switch the webhook to Ping delivery, which sends a small notification with a download link instead of the full payload.
