Key Types
Test vs. Live Environments
TLDP provides two fully isolated environments so you can build and validate your integration without touching production data. Test environment- Uses keys prefixed with
_test_(e.g.tybrite_sk_test_…) - All API responses include
"Tybrite-Environment: sandbox"in the response headers - No real money moves and no real courier jobs are dispatched
- Sandbox shipments, orders, and quotes are completely separate from live data
- Rate limits are lower: 30 requests per minute per API key
- Uses keys prefixed with
_live_(e.g.tybrite_sk_live_…)\ - All API responses include
"Tybrite-Environment: production"in the response headers - Real payments are processed and real courier workflows are triggered
- Rate limits: 120 requests per minute per API key
Confirming Your Environment
Inspect the response headers on any API call to verify which environment is active:Rolling a Leaked Key
If a secret key is ever exposed — committed to a repository, logged to an external service, or shared inadvertently — roll it immediately. Rolling issues a new key and permanently invalidates the old one.1
Open the Dashboard
Navigate to Settings → API Keys in the TLDP Dashboard.
2
Identify the Compromised Key
Locate the key you need to invalidate. You can identify it by its last four characters or its creation timestamp.
3
Click Roll Key
Select Roll next to the key. TLDP immediately revokes the old key and generates a replacement with the same environment and permissions.
4
Update Your Configuration
Replace the old key value in every environment where it was set (CI secrets, server environment variables, secret managers) before your next deployment.
5
Verify Traffic
Monitor your API logs for any
401 Unauthorized responses that indicate a service still using the revoked key.Best Practices
Separate keys per service
Issue a distinct API key for each backend service or deployment environment. This limits blast radius if a key leaks and lets you roll one service without affecting others.
Use environment variables
Store keys in environment variables or a secrets manager (e.g. AWS Secrets Manager, HashiCorp Vault). Never hard-code key values in source files.
Restrict key usage in the Dashboard
Where possible, scope keys to specific IP ranges or API endpoints using the key restrictions panel in Settings → API Keys.
Audit key usage regularly
Review the API Logs in the Dashboard periodically to spot unexpected usage patterns that could indicate an unauthorised caller.