Back to Developer Portal

Sandbox Environment

Test your integration safely before going live

The Revuloop sandbox provides a complete testing environment where you can develop and test your integration without affecting production data or consuming real credits.

Isolated Data

Completely separate from production

Unlimited Testing

No credit consumption in sandbox

Easy Reset

Clear all test data instantly

Test vs Live API Keys

API keys are distinguished by their prefix. Always use test keys during development:

Key TypePrefixEnvironmentCredits
Organization Test Keyrlk_test_SandboxUnlimited (mock)
Organization Live Keyrlk_live_ProductionDeducted from balance
Partner Test Keyrlpk_test_SandboxUnlimited (mock)
Partner Live Keyrlpk_live_ProductionBilled to partner
Embed Tokenrlet_Based on parent keyInherits from parent

Getting Started with Sandbox

1

Create a Test API Key

Navigate to your organization settings and create a new API key. Select "Test" as the environment.

Create Test Key
2

Use the Same API Endpoints

The sandbox uses the same API endpoints as production. The environment is determined by your API key prefix.

# Test environment (sandbox)
curl -X GET "https://revuloop.com/api/v1/surveys" \
  -H "Authorization: Bearer rlk_test_your_test_key"

# Production environment
curl -X GET "https://revuloop.com/api/v1/surveys" \
  -H "Authorization: Bearer rlk_live_your_live_key"
3

Test Your Integration

Create surveys, submit responses, test webhooks, and verify your integration works correctly before switching to live keys.

Sandbox Behavior Differences

Credits are simulated

Credit deductions are tracked but not actually charged. Your test account has unlimited mock credits.

Emails are not sent

Survey invitations and reminders are logged but not actually delivered to recipients in sandbox mode.

Webhooks work normally

Webhook events are fired to your configured endpoints, making it easy to test your webhook handling.

AI features use mock responses

Smart Surveys and AI analytics return realistic mock data without consuming AI credits.

Data isolation

Test data is completely isolated from production. Surveys created with test keys won't appear in your live dashboard.

Working with Test Data

The sandbox environment starts empty. Create your own test surveys and data to develop against:

Create test surveys

Use the API or dashboard to create surveys specifically for testing your integration.

Submit test responses

Submit responses via the API to test your response handling and webhook integrations.

Test at your own pace

Sandbox data persists until you delete it, giving you full control over your test environment.

Going Live Checklist

Before switching to production, verify these items:

All API endpoints tested with test keys
Webhook endpoint receives and processes events correctly
Error handling implemented for all API errors
Rate limit handling with exponential backoff
API key stored securely (not in client-side code)
Environment variables configured for live keys