Request authentication
Send your API key in the x-api-key header on each protected request. Key prefixes are inspected before database verification, so live keys are blocked on the sandbox host and test keys are blocked on the live host with 403 Invalid host for API key.
curl --location 'https://hub-sandbox-api.truxx.ae/api/Trips/get-estimated-price' \
--header 'Content-Type: application/json' \
--header 'x-api-key: truxx_sk_test_6d0f0e50dc9a428ba54d65d7754b4aec' \
--data '{
"fromLat": 24.4667,
"fromLng": 54.3667,
"toLat": 25.2048,
"toLng": 55.2708,
"vehicleTypeId": 1,
"departureTime": "2026-03-18T05:36"
}'