Get Started
Environments
Understanding Production and Sandbox environments in Vetigen API.
Environments
Vetigen provides two environments for API integration: Production and Sandbox.
Base URLs
| Environment | Base URL |
|---|---|
| Production | https://api.vetigen.com |
| Sandbox | https://api-sandbox.vetigen.com |
Production
The production environment contains real clinic data. Use it for your live integration.
- Base URL:
https://api.vetigen.com - Data: Real patient records, appointments, and inventory data
curl https://api.vetigen.com/api/v1/patients \
-H "X-API-Key: sk_live_YOUR_KEY"Sandbox
The sandbox environment is isolated from production. Use it for development and testing.
- Base URL:
https://api-sandbox.vetigen.com - Data: Synthetic test data — no real patient information
- Key format: API keys are environment-specific; do not infer the environment from the key prefix
curl https://api-sandbox.vetigen.com/api/v1/patients \
-H "X-API-Key: sk_live_SANDBOX_KEY"Sandbox Test Data
The sandbox environment is pre-populated with test data:
| Resource | Test Data |
|---|---|
| Patients | Synthetic patients |
| Appointments | Sample calendar events |
| Inventory | Sample inventory records |
Switching Environments
To switch environments, update:
- The base URL in your API client configuration
- The API key issued for that environment
const client = new VetigenClient({
baseUrl: process.env.VETIGEN_BASE_URL,
apiKey: process.env.VETIGEN_API_KEY,
});