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

# Sandbox & testing

> Test your integration end-to-end before going live.

The TruEnroll sandbox is a fully functional environment that mirrors production behavior
(the same API, the same pipeline, the same webhook events) using isolated data that never
touches your production tenant.

## Sandbox base URL

```
https://eval-api.trential.dev/partner/v1
```

The interactive playground in these docs uses the sandbox by default. To switch to
production, change the environment selector in the playground.

## Sandbox API keys

Sandbox keys are provisioned separately from production keys and only work against the
sandbox environment. Contact [support@truenroll.com](mailto:support@truenroll.com) to
request a sandbox key.

<Note>
  Never use a production API key against the sandbox, or a sandbox key against production.
  Keys are environment-specific and will be rejected by the wrong environment.
</Note>

## What's the same

* Full pipeline: classification, extraction, forensics, translation
* Webhook delivery to your registered endpoint
* All API routes, request/response shapes, and error codes
* Feature provisioning: your sandbox organization is configured with the same features as your production organization

## What's different

* Data is isolated: cases created in sandbox are not visible in production, and vice versa
* Sandbox documents are not used for any billing calculations
* Sandbox processing may be slower during periods of low priority allocation

## Testing checklist

<Steps>
  <Step title="Get a sandbox key">
    Request a sandbox API key from [support@truenroll.com](mailto:support@truenroll.com).
  </Step>

  <Step title="Submit a test case">
    Upload a sample academic document using `POST /cases`. Verify you receive a `caseId`
    and a valid `upload` object in the response.
  </Step>

  <Step title="Verify webhook delivery">
    [Register a webhook endpoint](/partner-api/webhook-configuration) (a service like
    [webhook.site](https://webhook.site) works well for initial testing) and confirm you receive
    `case.classification.completed`, `case.extraction.completed`, and other expected events.
  </Step>

  <Step title="Fetch results">
    Once the extraction webhook fires, call `GET /cases/{id}/extraction` and validate the
    response shape against your integration code.
  </Step>

  <Step title="Test error paths">
    Try submitting an unsupported file type, a missing `externalId`, or requesting a
    feature your organization doesn't have. Confirm your error handling code responds
    correctly.
  </Step>

  <Step title="Switch to production">
    Replace the sandbox base URL and key with your production credentials. No other
    changes should be required.
  </Step>
</Steps>
