Test imports safely without affecting production data or webhooks.
Sandbox mode provides complete isolation for testing your CSV import integration. When using sandbox mode:
sk_sandbox_environment: "SANDBOX"Go to Dashboard → API Keys and create a new key. Select "Sandbox" as the environment.
sk_sandbox_Go to Settings → Sandbox Mode to configure a separate webhook URL for sandbox imports.
Sandbox Webhook URL
If not configured, webhook delivery will be skipped for sandbox imports.
Initialize the SDK with environment: 'sandbox':
Rowporter.init({
templateId: 'tpl_abc123',
environment: 'sandbox', // Use sandbox mode
onComplete: (result) => {
console.log('Environment:', result.environment); // 'SANDBOX'
console.log('Import completed in sandbox');
},
onError: (error) => {
console.error('Sandbox error:', error);
}
});| Option | Type | Default | Description |
|---|---|---|---|
| environment | string | 'production' | 'production' or 'sandbox' |
Sandbox imports include the environment in the webhook payload:
{
"event": "import.completed",
"environment": "SANDBOX",
"data": {
"importId": "imp_abc123",
"templateId": "tpl_xyz789",
"rows": [...]
}
}Use separate webhook endpoints
Configure a dedicated sandbox webhook URL that points to your staging environment.
Check the environment field
Always verify environment in webhook payloads before processing data in production.
Store API keys securely
Keep sandbox keys separate from production keys in your configuration.