Environments
Activate and monitor Sandbox and Production environments.
PacSpace has two environments:
- Sandbox for development/testing
- Production for live verified data
Base URL: https://app.pacspace.io
http
GET https://app.pacspace.io/dashboard/environments
All routes on this page require a valid dashboard session cookie (-b pacspace-dashboard-cookies.txt).
Switch Preferred Environment
Save the dashboard's preferred environment for the current user.
bash
curl -X PATCH https://app.pacspace.io/dashboard/auth/preferences \
-b pacspace-dashboard-cookies.txt \
-H "Content-Type: application/json" \
-d '{
"preferredEnvironment": "production"
}'
Valid values: sandbox or production.
Check Activation Status
Get current status for both environments.
bash
curl https://app.pacspace.io/dashboard/environments/environment-status \
-b pacspace-dashboard-cookies.txt
Example:
json
{
"success": true,
"data": {
"sandbox": { "status": "active" },
"production": { "status": "none" }
}
}
Status Values
| Status | Meaning |
|---|---|
active | Environment is ready |
activating | Activation is in progress |
failed | Activation failed and can be retried |
none | Environment is not active yet |
Activate Environment
Activate Sandbox or Production.
bash
curl -X POST https://app.pacspace.io/dashboard/environments/provision \
-b pacspace-dashboard-cookies.txt \
-H "Content-Type: application/json" \
-d '{
"environment": "production"
}'
environment must be sandbox or production.
Notes:
- New accounts typically have Sandbox activation started automatically.
- Production activation requires a paid plan.
- Activation is idempotent (repeating the call is safe).
List Environment Integrations
List active environment integrations for your tenant.
bash
curl https://app.pacspace.io/dashboard/environments \
-b pacspace-dashboard-cookies.txt
Recommended Flow
- Register and verify your account.
- Confirm Sandbox status with
GET /dashboard/environments/environment-status. - Create Sandbox API keys and validate integration.
- Upgrade plan if you need Production.
- Activate Production with
POST /dashboard/environments/provision. - Poll status until Production is
active. - Create Production API keys and switch preferred environment.
Endpoints Summary
| Endpoint | Method | Description |
|---|---|---|
/dashboard/environments | GET | List environment integrations |
/dashboard/environments/environment-status | GET | Check sandbox/production status |
/dashboard/environments/provision | POST | Activate environment |
/dashboard/auth/preferences | PATCH | Save preferred environment |