Start›Quick start
Quick start
From zero to a booked trip in five calls.
Key points
- 1. Get a key — Ask TrustCold admin for a client key. It is shown once.
- 2. Check it — GET /connection returns 200 with your client.
- 3. Quote — POST /quote returns the fare TrustCold will charge.
- 4. Book — POST /trips with an Idempotency-Key. Open payment_url if present.
Five calls from nothing to a booked trip. Replace CLIENT_KEY with your key. Every example has PHP, Node and Python tabs.
Try it without risk. Ask TrustCold for a test key. It works on every endpoint and is valid for 90 days, but trips you create are simulated: nothing is booked, no driver is sent and nothing is charged. Created trips move from
pending to en_route to completed by themselves within a few minutes, and webhook tests are really delivered to your URL. Responses carry the header X-TrustCold-Mode: test, trip ids start in the 900000000 range, and GET /connection returns "mode": "test". Use the Add test keys button on any page to run requests from your browser.1. Check the key
curl https://trustcoldeg.com/api/v1/b2b/connection \
-H "Authorization: Bearer CLIENT_KEY" \
-H "Accept: application/json"200 means the key works. 401 means it is wrong, revoked or expired.
2. List vehicle types
curl https://trustcoldeg.com/api/v1/b2b/vehicle-types \
-H "Authorization: Bearer CLIENT_KEY" \
-H "Accept: application/json"Use a code whose available is true.
3. Ask for the fare
curl -X POST https://trustcoldeg.com/api/v1/b2b/quote \
-H "Authorization: Bearer CLIENT_KEY" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{"vehicle_type":"reefer_tank","from_governorate":"القاهرة","from_area":"مدينة نصر","to_governorate":"الإسكندرية","to_area":"سموحة"}'4. Book the trip
curl -X POST https://trustcoldeg.com/api/v1/b2b/trips \
-H "Authorization: Bearer CLIENT_KEY" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: ORDER-10025" \
-d '{"vehicle_type":"reefer_tank","trip_date":"2026-12-20","from_governorate":"القاهرة","from_area":"مدينة نصر","to_governorate":"الإسكندرية","to_area":"سموحة"}'201 returns the trip. If payment_url is not null, send the customer to that TrustCold page to pay the deposit. Never collect card details yourself.
5. Get status pushed to you
curl -X PUT https://trustcoldeg.com/api/v1/b2b/webhook \
-H "Authorization: Bearer CLIENT_KEY" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{"url":"https://partner.example/trustcold/hooks"}'Save the
secret from this response: it is shown once. Then read Verify signatures and Go-live checklist.Next
- Security — where to keep the key.
- Errors and Rate limits.
- OpenAPI and Postman files.