Authentication

All API requests (except checkout) require a Bearer token in the Authorization header.

Header
Authorization: Bearer otg_live_xxxxxxxxxxxxxxxx
# or
Authorization: Bearer otg_test_xxxxxxxxxxxxxxxx

Key types

ParamTypeDescription
otg_live_…requiredstringProduction key. Charges 1 stop per stop in the request. Full features including address geocoding.
otg_test_…optionalstringSandbox key. Never charges. Coordinates only, max 10 stops/call. Create in Console → Sandbox.

Where to get keys

Security

  • Keys are stored hashed (SHA-256) — plaintext is shown only at creation
  • Revoke compromised keys immediately from the console
  • Prefer sandbox keys during development and CI