TrustColdDevelopers
Start›Security

Security

How to keep the key, the webhook secret and your integration safe.

Run this from your browser — add your free test keys.

Key points

  • Server side only — Never ship the key in a mobile app, browser code, or Git. Call TrustCold from your backend.
  • HTTPS only — Plain HTTP is not served for the API. Webhook URLs must be https on port 443.
  • Expiry — A key issued by TrustCold lasts 3 years. A login token lasts 7 days. After that: 401.
  • Leak — Ask TrustCold admin to revoke the key at once. Rotate the webhook secret yourself.

The key can create and cancel trips for your account. Treat it like a password.

Your side

DoDo not
Keep the key in your server's secrets manager or environment variablesPut it in a mobile app, browser JavaScript, a public repository, or a support ticket
Call https:// onlySend the key over http://
Send it in the Authorization headerPut it in the URL, the query string or the JSON body: URLs end up in logs
Hide Authorization in your logs and error reportsLog full request headers
Use a separate key per system (production, staging)Share one key between teams or environments
Check every webhook signature and timestampTrust a webhook because it "looks right"

Lifetime and revocation

  • A key issued by TrustCold admin lasts 3 years. A login token (from POST /login) lasts 7 days. After that the API answers 401. Note the key's issue date and ask TrustCold for a new key a few weeks before it ends.
  • TrustCold admin can revoke a key at any time. It stops working immediately.
  • A key only ever sees its own client's trips. Another client's trip is 404, never 403.
If a key leaks: tell TrustCold now so the key is revoked, issue a new one, and rotate the webhook secret with POST /webhook/rotate-secret. Then look for trips you did not create.

What TrustCold does

  • HTTPS with HSTS. Webhook URLs must be public HTTPS hosts: private, loopback and cloud-metadata addresses are refused, redirects are not followed, and the address is checked again on every delivery.
  • Webhook secrets are stored encrypted and shown to you once.
  • Signed webhooks with a timestamp, so a captured request cannot be replayed later.
  • Rate limits per key and per IP (numbers), and idempotent creates so a retry never books twice.
  • You never send a price, a driver or a plate. TrustCold decides them.

Found a vulnerability? Please report it through the contact page before disclosing it.