> For the complete documentation index, see [llms.txt](https://docs.sparkloop.app/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sparkloop.app/client-api/testing-your-integration.md).

# Testing Your Integration

While you build, run every call in test mode. When test mode is on, the SDK flags every call it makes, and SparkLoop returns the same responses as in real traffic without recording anything — no impressions, no subscriptions, no claims.

That makes it safe to exercise the full flow end to end: generate or fetch, render your UI, and subscribe or claim as many times as you need.

There are two ways to turn it on:

### In your SparkLoop config

Set `test_mode` alongside the client mode:

```html
<script>
  window.SL = { mode: "client", test_mode: true };
</script>
```

### As a URL parameter

Add `?test_mode=true` to the URL of the page where your integration runs — handy for a one-off dry run without touching your code:

```
https://yoursite.com/signup?test_mode=true
```

{% hint style="warning" %}
Use test mode for all development and automated testing, including anything an AI agent runs on your behalf. Calls made without it count as real traffic and pollute your data and your partners' data.
{% endhint %}
