Get a delivery price quote from the Senpex courier API by calling /get_price with pickup/dropoff addresses and a transport type
domain: api.sandbox.senpex.com · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗
Steps
Register a client account at dev.senpex.com, then call the Senpex support team (650-514-6350) to request approval; you'll receive an email with API access once approved.
Log in and note the client_id and secret_id auto-provisioned on your dashboard; also generate and paste a Google Maps API key (with Geocoding, Directions, Distance Matrix, Geolocation, Places, and Time Zone APIs enabled) into the Senpex dashboard.
Add a credit card under Billing details in your account profile -- the API requires a linked card before any pricing or order call will succeed (error 58 NoCreditCard / 71 APIPaymentDetailsNotFound otherwise).
POST to the sandbox base https://api.sandbox.senpex.com/api/restfull/v4/get_price (production analog https://api.production.senpex.com/api/restfull/v4/get_price) with pickup/dropoff addresses and a transport_id (1=Car, 3=SUV, 8=Pickup Truck, 9=Large Van).
Read the returned price token/quote; use it to create the order via the corresponding /create_order (or v4.1 /create_quick_order) call before the quote expires.
Handle documented error codes explicitly, e.g. 35 MileError (300-mile route cap) and 68 ScheduleDateLow (schedule date can't be in the past).
Known gotchas
The base path is /api/restfull/v4/ (not /senpex/api/rest/v4 as some older third-party summaries state) -- confirm against dev.senpex.com/documentation/introduction's 'Environments' section before hardcoding.
Test Environment and Production credentials are separate and both must be requested from Senpex support; there is no self-serve sandbox key generation.
Distance is capped at 300 miles per order (error code 35); orders exceeding that must be split or rejected client-side before calling the API.
Give your agent this knowledge — and 15,500+ 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?