Skip to content

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

StatusMeaning
activeEnvironment is ready
activatingActivation is in progress
failedActivation failed and can be retried
noneEnvironment 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

  1. Register and verify your account.
  2. Confirm Sandbox status with GET /dashboard/environments/environment-status.
  3. Create Sandbox API keys and validate integration.
  4. Upgrade plan if you need Production.
  5. Activate Production with POST /dashboard/environments/provision.
  6. Poll status until Production is active.
  7. Create Production API keys and switch preferred environment.

Endpoints Summary

EndpointMethodDescription
/dashboard/environmentsGETList environment integrations
/dashboard/environments/environment-statusGETCheck sandbox/production status
/dashboard/environments/provisionPOSTActivate environment
/dashboard/auth/preferencesPATCHSave preferred environment