Skip to content

Get Started

The APIs require an existing TruckMate installation and are licensed separately.

Similar to TruckMate, the API Server is either self-hosted or hosted as a single-tenant solution by Trimble Transportation. Please see the Getting Started page for API server set-up instructions.

Best Practices for Building Reliable REST Integrations

Section titled “Best Practices for Building Reliable REST Integrations”

Building a new integration using REST APIs requires more than simply wiring up endpoints. A well-designed integration must be reliable, scalable, maintainable, and resilient to failure. Following established REST best practices ensures systems remain performant under load, easy to evolve, and operationally stable.

This article outlines key principles and practical guidance for building high-quality REST integrations.

Large payloads, excessive query limits, and broad data fetches are common causes of degraded performance.

  • Request only the fields you actually need.
  • Use pagination instead of large result sets.
  • Avoid large limit values that return thousands of records per call.
  • Prefer multiple small requests over fewer, extremely large ones.

Small, fast requests reduce server load, improve responsiveness, and protect system stability under sustained traffic.

APIs should never require clients to retrieve entire datasets.

  • Always implement pagination for list endpoints.
  • Use filtering and query parameters to reduce result sizes.
  • Support incremental data access patterns (e.g., timestamps).

Efficient pagination prevents excessive memory usage, slow responses, and cascading failures.

Transient failures are normal in distributed systems. Integrations must be resilient, not brittle.

  • Use exponential backoff for retries.
  • Avoid aggressive retry loops.

Treat 429 (Too Many Requests) and 5xx responses as signals to slow down.

Smart retry logic prevents retry storms that amplify outages and protects both client and server stability.

Functional success alone is not sufficient.

  • Perform load and stress testing.

Testing failure modes ensures predictable behavior under real-world conditions.

Strong REST integrations are built on small requests, stateless design, resilience and disciplined API contracts. Systems that follow these principles scale predictably, recover gracefully, and remain stable even under sustained load.

When integrations violate these practices—especially by issuing repeated, large, high-cost requests—they introduce significant risk to platform stability and reliability.

Designing thoughtfully from the start avoids operational incidents, improves performance, and lowers long-term maintenance costs.

API ServiceLicense KeyBase URLDescription
TruckMate REST API69000/tmA comprehensive set of endpoints and methods, allowing transactional integration with major TruckMate product areas.
Master Data69001/masterDataAllows external systems to create, retrieve, update or delete TruckMate configuration data.
Finance API69200/financeAllows external systems to create, retrieve, or update Truckmate financial information such as invoices, payments, GL entries, and more. (Available in version 2024.3 and later.)

When using the TruckMate REST APIs the calling application must pass along a Bearer Token to prove their identity to the On-Premise API server. Bearer Tokens are the predominant type of access token used with OAuth 2.0. A Bearer Token must be set in the Authorization header of every request.

TruckMate REST APIs offer 2 methods for authentication.

  • TruckMate API Key generated in one of TruckMate’s Window applications
  • Login endpoint to generate a time sensitive JWT token

TruckMate REST APIs offer 5 methods of authorization which allow varying access to endpoints and data

  • TruckMate User API Key generated within the Security Configuration application on the TruckMate API Credentials tab.
  • Login endpoint to generate a time sensitive JWT token
  • Client API Key
  • Vendor API Key
  • TID