A production path a developer team can use in an afternoon.
terrabox-sdk 1.0.0 exposes deployment, execution, revocation, dashboard retrieval,
mTLS configuration, and client-side encrypted data-source registration.
pip package: terrabox-sdk==1.0.0
auth: bearer API key + mTLS
tenant data: AES-256-GCM before upload
from uuid import UUID
from terrabox_sdk import TerraboxClient
client = TerraboxClient(
"https://api.terrabox.example",
api_key="tbx_live_keyid_secret",
require_https=True,
client_cert_path="/secure/tenant/client.pem",
client_key_path="/secure/tenant/client-key.pem",
ca_cert_path="/secure/tenant/ca.pem",
)
tenant_id = UUID("00000000-0000-0000-0000-000000000001")
agent = client.deploy_agent(
tenant_id=tenant_id,
name="fraud-prod",
template_id="fraud_detector",
)
result = client.execute_agent(
agent["agent_id"],
{
"transaction_id": "txn_001",
"amount": 1250.0,
"merchant_country": "AU",
"device_seen_before": False,
},
)
dashboard = client.agent_dashboard(agent["agent_id"])
client.revoke_agent(agent["agent_id"], reason="rotation")