Environment Overview
Production (Mainnet)
Live environment connected to real satellite screening pipelines, the Hedera DLT mainnet, and EU TRACES NT. Use only when submitting actual commodity shipment data.Base URL:
https://live.agribackup.comKey prefix: sk_live_Sandbox (Testnet)
Isolated test environment with simulated satellite screening and no real blockchain interaction. Safe for development, CI pipelines, and QA validation.Base URL:
https://sandbox.agribackup.comKey prefix: sk_test_What the Sandbox Does (and Does Not) Do
The sandbox mirrors the full API surface of production — every endpoint, every request schema, every response shape. The key differences are:- No real satellite screening. Polygon verification calls return simulated results. You can trigger pass and fail scenarios using test fixture coordinates documented in the developer portal.
- No real Hedera DLT anchoring. Blockchain transactions are simulated; no Hedera mainnet fees are incurred and no real consensus timestamps are generated.
- No TRACES NT submission. DDS declarations do not reach EU regulatory systems.
- Isolated data. Sandbox resources (polygons, batches, declarations, suppliers) are completely separate from production. A polygon ID created in sandbox will never resolve in production.
- Webhooks are fully functional. Webhook delivery, signing, and retry logic behave identically to production, making the sandbox ideal for testing your webhook handler.
Sandbox API keys are prefixed
sk_test_. Generate them from the Sandbox section of the AgriBackup developer dashboard — they are a separate credential from your live keys and are never interchangeable.Switching Environments
Automatic Inference from Key Prefix
You do not need to set a base URL manually in most cases. All official AgriBackup SDKs inspect the key prefix (sk_live_ vs sk_test_) and route requests to the correct environment automatically.
Python SDK
Node.js SDK
Java SDK
Environment Variables Pattern
Store your keys in environment variables and load them into your application at runtime. This practice prevents accidental credential leaks and makes switching environments a one-line configuration change.Verifying Your Active Environment
To confirm which environment a key resolves to before running any operations, call the diagnostics endpoint:environment field indicating production or sandbox. Use this as a sanity check in your integration bootstrap sequence.