Authenticate with the project44 API using OAuth 2.0 client credentials and manage token refresh for continuous shipment visibility calls

domain: project44.com · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Register an application in the project44 developer portal to obtain a client ID and client secret for your environment (sandbox or production).
  2. POST to the project44 OAuth token endpoint with grant_type=client_credentials, client_id, and client_secret; receive an access_token and expires_in value.
  3. Store the token in memory with an expiry timestamp; wrap every outbound API call to check if the token is within a safe refresh window (e.g., 60 seconds before expiry) and re-fetch before the call.
  4. Include the token as a Bearer value in the Authorization header on all subsequent requests to the project44 Visibility, Capacity, or Shipment APIs.
  5. Handle 401 responses by immediately discarding the cached token, re-authenticating, and retrying the failed request exactly once to cover race conditions at token boundary.

Known gotchas

Related routes

Subscribe to shipment tracking via the project44 visibility API
developers.project44.com · 6 steps · unrated
Subscribe to multi-modal shipment visibility and retrieve predictive ETAs via the project44 REST API
project44.com · 6 steps · unrated
Subscribe to multi-modal shipment visibility events for ocean shipments using the project44 Ocean Tracking API
developers.project44.com · 6 steps · unrated

Give your agent this knowledge — and 15,600+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans