{"openapi":"3.1.0","info":{"title":"Transportli car shipping API","version":"1.0.0","description":"Get a price range for a car shipping route, create a real shipping request, and read the real carrier bids. Prices are whole US dollars and are what the customer pays in total. An estimate is never a committed price; real bids come from carriers after a request is created. Booking and payment stay with the customer.","contact":{"name":"Transportli","url":"https://transportli.com/contact-us/","email":"support@transportli.com"}},"servers":[{"url":"https://app.transportli.com"}],"security":[{"bearer":[]}],"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","description":"API key: tl_live_... for real requests, tl_test_... for the sandbox (no carrier is contacted, sample bids are created)."}}},"paths":{"/api/v1/estimates":{"post":{"summary":"Price range for a route (lowest, medium, highest)","security":[{},{"bearer":[]}],"description":"No key needed (20 calls a minute per IP); a key raises the limit. Same numbers a customer sees when a listing is created in the Transportli app.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["pickup","delivery"],"properties":{"pickup":{"type":"object","description":"Give a 5-digit zip, or city and state, or lat and lon.","properties":{"zip":{"type":"string","example":"33101"},"city":{"type":"string","example":"Miami"},"state":{"type":"string","example":"FL"},"lat":{"type":"number"},"lon":{"type":"number"}}},"delivery":{"type":"object","description":"Give a 5-digit zip, or city and state, or lat and lon.","properties":{"zip":{"type":"string","example":"33101"},"city":{"type":"string","example":"Miami"},"state":{"type":"string","example":"FL"},"lat":{"type":"number"},"lon":{"type":"number"}}},"vehicles":{"type":"array","maxItems":6,"items":{"type":"object","description":"A type, or a make and a model, is required.","properties":{"year":{"type":"integer","example":2019},"make":{"type":"string","example":"Honda"},"model":{"type":"string","example":"Civic"},"type":{"type":"string","enum":["sedan","suv","pickup","van"]},"running":{"type":"boolean","default":true}}},"description":"Default: one running sedan."},"trailer":{"type":"string","enum":["open","enclosed"],"default":"open"}}}}}},"responses":{"200":{"description":"Estimate","content":{"application/json":{"schema":{"type":"object","properties":{"lowest":{"type":"integer","example":760},"medium":{"type":"integer","example":890},"highest":{"type":"integer","example":1190},"currency":{"type":"string","example":"USD"},"miles":{"type":"integer","example":1280}}}}}},"422":{"description":"Error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"429":{"description":"Error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}}}}},"/api/v1/requests":{"post":{"summary":"Create a real shipping request","description":"Creates the same request the website form creates. With a live key that is not trusted, the customer gets an email and carriers are alerted after they confirm. Trusted live keys alert carriers at once. Test keys create a sandbox request with three sample bids. Send an Idempotency-Key header to make retries safe.","parameters":[{"name":"Idempotency-Key","in":"header","schema":{"type":"string","maxLength":64}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["customer","pickup","delivery","vehicles"],"properties":{"customer":{"type":"object","required":["first_name","email"],"properties":{"first_name":{"type":"string"},"last_name":{"type":"string"},"email":{"type":"string"},"phone":{"type":"string"}}},"pickup":{"type":"object","description":"Give a 5-digit zip, or city and state, or lat and lon.","properties":{"zip":{"type":"string","example":"33101"},"city":{"type":"string","example":"Miami"},"state":{"type":"string","example":"FL"},"lat":{"type":"number"},"lon":{"type":"number"}}},"delivery":{"type":"object","description":"Give a 5-digit zip, or city and state, or lat and lon.","properties":{"zip":{"type":"string","example":"33101"},"city":{"type":"string","example":"Miami"},"state":{"type":"string","example":"FL"},"lat":{"type":"number"},"lon":{"type":"number"}}},"vehicles":{"type":"array","minItems":1,"maxItems":6,"items":{"type":"object","description":"A type, or a make and a model, is required.","properties":{"year":{"type":"integer","example":2019},"make":{"type":"string","example":"Honda"},"model":{"type":"string","example":"Civic"},"type":{"type":"string","enum":["sedan","suv","pickup","van"]},"running":{"type":"boolean","default":true}}}},"trailer":{"type":"string","enum":["open","enclosed"],"default":"open"},"timing":{"type":"string","enum":["asap","few_days","this_week","flexible"],"default":"flexible"},"pickup_date":{"type":"string","format":"date"},"notes":{"type":"string","maxLength":500},"external_ref":{"type":"string","maxLength":80}}}}}},"responses":{"200":{"description":"Idempotent replay"},"201":{"description":"Created"},"401":{"description":"Error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"422":{"description":"Error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"429":{"description":"Error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}}}}},"/api/v1/requests/{id}":{"get":{"summary":"A request with its estimate and bids","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","example":"TL-K7M2PQ"}}],"responses":{"200":{"description":"Request"},"404":{"description":"Error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}}}}},"/api/v1/requests/{id}/quotes":{"get":{"summary":"Real carrier bids (lowest, medium, highest of the bids so far, plus each bid)","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Bids","content":{"application/json":{"schema":{"type":"object","properties":{"request_id":{"type":"string"},"status":{"type":"string"},"test":{"type":"boolean"},"quotes":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer"},"carrier":{"type":"object","properties":{"name":{"type":"string"},"verified":{"type":"boolean"},"insured":{"type":"boolean"},"rating":{"type":"number","nullable":true},"reviews":{"type":"integer"},"completed_jobs":{"type":"integer"}}},"price":{"type":"integer","description":"Total the customer pays, whole US dollars (carrier price plus Transportli security deposit)."},"was_price":{"type":"integer","nullable":true},"currency":{"type":"string"},"pickup_window":{"type":"object","properties":{"from":{"type":"string","format":"date"},"to":{"type":"string","format":"date"}}},"transit_days":{"type":"integer"},"transit_days_are_business_days":{"type":"boolean"},"status":{"type":"string"},"created_at":{"type":"string","format":"date-time"}}}},"summary":{"type":"object","properties":{"count":{"type":"integer"},"lowest":{"type":"integer","nullable":true},"medium":{"type":"integer","nullable":true},"highest":{"type":"integer","nullable":true},"currency":{"type":"string"}}}}}}}},"404":{"description":"Error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}}}}},"/api/v1/requests/{id}/cancel":{"post":{"summary":"Cancel a request that is not booked yet","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Cancelled"},"404":{"description":"Error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"409":{"description":"Error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}}}}}},"webhooks":{"quote.created":{"post":{"summary":"A carrier sent a bid (also quote.updated)","description":"Sent to the webhook URL on your key. Header X-Transportli-Signature: t=<unix time>,v1=<hex HMAC-SHA256 of \"<t>.<raw body>\" with your webhook secret>. Reject events older than 5 minutes. Delivery is best effort; the quotes endpoint is the source of truth.","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string"},"created":{"type":"string"},"data":{"type":"object","properties":{"request_id":{"type":"string"},"quote":{"type":"object","properties":{"id":{"type":"integer"},"carrier":{"type":"object","properties":{"name":{"type":"string"},"verified":{"type":"boolean"},"insured":{"type":"boolean"},"rating":{"type":"number","nullable":true},"reviews":{"type":"integer"},"completed_jobs":{"type":"integer"}}},"price":{"type":"integer","description":"Total the customer pays, whole US dollars (carrier price plus Transportli security deposit)."},"was_price":{"type":"integer","nullable":true},"currency":{"type":"string"},"pickup_window":{"type":"object","properties":{"from":{"type":"string","format":"date"},"to":{"type":"string","format":"date"}}},"transit_days":{"type":"integer"},"transit_days_are_business_days":{"type":"boolean"},"status":{"type":"string"},"created_at":{"type":"string","format":"date-time"}}}}}}}}}},"responses":{"200":{"description":"Return any 2xx"}}}}}}