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

# Sandboxes

> What a sandbox chooses for an event or a request: the campaign version that handles it and the container that records it. The values you can send, the default, and where you set one.

## Overview

A sandbox is a value that an event or a request carries. It chooses two things: which version of your campaigns handles the event, the published version or the latest version with your unpublished changes, and which container records it. Live traffic sends no sandbox, so it runs the published version.

You use a sandbox to test a campaign change before you publish it, and to compare that change with what your customers see today.

## Sandbox Values

| Sandbox | Value | Campaign version | Container |
| - | - | - | - |
| Campaign preview | `campaign_preview-<campaign id>` or `campaign_preview-<campaign id>-<journey name>` | Latest, including unpublished changes | `test` |
| Campaign | `campaign-<campaign id>-<container>` or `campaign-<campaign id>-<container>-<journey name>` | Latest, including unpublished changes | The container you name, such as `test` |
| Production | `production-<container>`, such as `production-test` | Published | The container you name |

The campaign id is in the campaign's address in My Extole, after `/campaigns/`.

If a request sends no sandbox, Extole uses a production sandbox, and the request runs the published version, not your draft. The container depends on the request:

* `production-<container>` when the request names a container.
* `production-test` when the request comes from a test site on your program domain. See [Put Testing Sites in a Test Container](https://docs.extole.com/technical/operational-tasks/program-testing/exclude-test-data-from-analytics.md#put-testing-sites-in-a-test-container).
* `production-bot` for a consumer request with no `Origin` header whose user agent is on your account's blocked user agents, or that sends an `x-purpose: preview` header.
* `production-production` otherwise.

## Campaign Preview and Campaign Sandboxes

Both campaign sandboxes run the latest version of your campaigns. They differ in who can enter a journey and which rules run:

* **Campaign preview**: a person can enter a journey without a referral, so you can test a friend journey without an advocate. A journey name in the value, such as `FRIEND`, gives that journey the highest priority. The campaign's quality rules do not run.
* **Campaign**: journey entry follows the campaign's own rules. A friend enters the friend journey only through a referral, as on your live site. The campaign's quality rules run.

## Where You Set a Sandbox

* **Consumer API**: the `X-Extole-Sandbox` header. See [Send an Event to a Sandbox](https://docs.extole.com/technical/platform-integrations/rest-apis/test-a-campaign-draft-over-rest.md#send-an-event-to-a-sandbox).
* **Server events**: `sandbox` in the event's data. See [Send an Event to a Sandbox](https://docs.extole.com/technical/platform-integrations/rest-apis/test-a-campaign-draft-over-rest.md#send-an-event-to-a-sandbox).
* **Draft pages and emails**: the `sandbox` parameter of a `/zones/` address. See [View Draft Pages and Emails](https://docs.extole.com/technical/platform-integrations/rest-apis/test-a-campaign-draft-over-rest.md#view-draft-pages-and-emails).
* **My Extole**: **Execution Mode** on a component's **Operations** tab. **Preview** is the campaign preview sandbox, **Campaign** is the campaign sandbox in the `test` container, and **Production** is `production-production`. You can also type any other value from the table above. See [Test a Change Before You Publish](https://docs.extole.com/guides/programs-and-campaigns/managing-campaigns/test-a-change-before-you-publish.md).

What a test event does in a sandbox, such as where its rewards come from and which emails it sends, is in [What a Test Event Does](https://docs.extole.com/technical/platform-integrations/rest-apis/test-a-campaign-draft-over-rest.md#what-a-test-event-does).

## Sandboxes and Sandbox Clients

A sandbox runs inside your account and applies to one event or request. A sandbox client is a separate Extole client for development, with its own `client_id`. [Sandbox Clients](https://docs.extole.com/api-reference/getting-started/authentication-overview.md#sandbox-clients) describes how you authenticate against one.


## Related topics

- [Test a Campaign Draft Over REST](https://docs.extole.com/technical/platform-integrations/rest-apis/test-a-campaign-draft-over-rest.md)
- [Authentication](https://docs.extole.com/api-reference/getting-started/authentication-overview.md)
- [Salesforce Commerce Cloud (SFRA)](https://docs.extole.com/technical/partners/ecommerce/salesforce-commerce-cloud-sfra.md)
- [Salesforce Commerce Cloud (Site Genesis)](https://docs.extole.com/technical/partners/ecommerce/salesforce-commerce-cloud-site-genesis.md)
- [Android SDK](https://docs.extole.com/technical/platform-integrations/mobile-sdks/android-sdk.md)


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