Skip to content

Dashboard API

Environment Activation

Activate sandbox and production environments to provision verification infrastructure.

Before you can submit data through the API, you need to provision an environment. PacSpace supports two environments:

  • Sandbox (testnet) — For development and testing. No real costs.
  • Production (mainnet) — For live data. Credits are consumed per verified delta.

All routes require a valid JWT in the Authorization header:

bash
-H "Authorization: Bearer YOUR_JWT_TOKEN"

Base URL: https://balance-api.pacspace.io


Provision an Environment

Activate sandbox or production infrastructure for your tenant. This sets up the necessary backend resources to start processing verifications.

bash
curl -X POST https://balance-api.pacspace.io/dashboard/contracts/provision \
  -H "Authorization: Bearer YOUR_JWT_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "environment": "testnet"
  }'

Valid values for environment: testnet (sandbox) or mainnet (production).

Response 201 Created

json
{
  "statusCode": 201,
  "data": {
    "tenantId": "tnt_xyz789",
    "environment": "testnet",
    "status": "provisioning",
    "message": "Environment is being provisioned. This usually takes a few seconds."
  }
}

Provisioning is typically fast (under 30 seconds). Use the status endpoint below to confirm when it's ready.


Check Environment Status

Check whether a specific environment has been provisioned and is ready to use.

bash
curl https://balance-api.pacspace.io/dashboard/contracts/tnt_xyz789/status \
  -H "Authorization: Bearer YOUR_JWT_TOKEN"

Response 200 OK

json
{
  "statusCode": 200,
  "data": {
    "tenantId": "tnt_xyz789",
    "environments": [
      {
        "environment": "testnet",
        "status": "active",
        "provisionedAt": "2025-06-01T12:00:05.000Z"
      },
      {
        "environment": "mainnet",
        "status": "not_provisioned"
      }
    ]
  }
}

Status Values

StatusMeaning
not_provisionedEnvironment has not been activated yet
provisioningSetup is in progress
activeReady to accept API requests
errorProvisioning failed — contact support

List Environments

Retrieve all provisioned environments for your tenant.

bash
curl https://balance-api.pacspace.io/dashboard/contracts \
  -H "Authorization: Bearer YOUR_JWT_TOKEN"

Response 200 OK

json
{
  "statusCode": 200,
  "data": [
    {
      "id": "ctr_abc123",
      "tenantId": "tnt_xyz789",
      "environment": "testnet",
      "status": "active",
      "provisionedAt": "2025-06-01T12:00:05.000Z"
    },
    {
      "id": "ctr_def456",
      "tenantId": "tnt_xyz789",
      "environment": "mainnet",
      "status": "active",
      "provisionedAt": "2025-06-15T09:00:10.000Z"
    }
  ]
}

  1. Register an account and verify your email
  2. Provision sandboxPOST /dashboard/contracts/provision with "environment": "testnet"
  3. Create an API keyPOST /dashboard/api-keys with "environment": "test"
  4. Start building — use the sandbox API key to test writes and reads
  5. Provision production — when ready, provision "environment": "mainnet"
  6. Create a production API keyPOST /dashboard/api-keys with "environment": "live"
  7. Go live — switch your application to the production key

Endpoints Summary

EndpointMethodDescription
/dashboard/contracts/provisionPOSTProvision a new environment
/dashboard/contracts/:tenantId/statusGETCheck environment status
/dashboard/contractsGETList all environments
Was this page helpful?

Last updated February 11, 2026