For the complete documentation index, see llms.txt. This page is also available as Markdown.

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:

<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