{"openapi":"3.1.0","info":{"title":"Intrinsic partner API","version":"1.0.0","description":"Book drayage capacity from fleets on Intrinsic at the Ports of Los Angeles and Long Beach. The fleet sets its rate and accepts each booking; Intrinsic doesn't broker or take a cut. Results arrive by signed webhook: booking.requested, booking.accepted, booking.declined, assignment.created, container.picked_up."},"servers":[{"url":"https://intrinsic.ml"}],"security":[{"bearer":[]}],"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","description":"A partner key from the fleet (ik_live_…)"}},"schemas":{"Booking":{"type":"object","required":["id","container","terminal","rateUsd","status","assignedTruck","createdAt"],"properties":{"id":{"type":"string","example":"bkg_3f1c2a9b8d7e"},"container":{"type":"string","description":"ISO 6346 container number","example":"CMAU5517027"},"terminal":{"type":"string","example":"pier400"},"reference":{"type":"string","description":"Your reference (PO, booking number)"},"rateUsd":{"type":"integer","description":"The fleet's rate for this move"},"status":{"type":"string","enum":["requested","accepted","declined"]},"assignedTruck":{"type":["string","null"],"description":"Set once a driver is assigned"},"note":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"decidedAt":{"type":"string","format":"date-time"}}},"CapacitySlot":{"type":"object","properties":{"terminal":{"type":"string","example":"pier400"},"terminalName":{"type":"string","example":"APM Terminals Pier 400"},"trucksAvailable":{"type":"integer"},"earliestPickupAt":{"type":"string","format":"date-time"},"maxDriveMin":{"type":"integer","description":"Most drive time any available driver has left"},"rateUsd":{"type":"integer"}}},"Error":{"type":"object","properties":{"error":{"type":"string"}}}}},"paths":{"/v1/capacity":{"get":{"summary":"Open capacity per terminal","description":"Available now, subject to the fleet accepting each booking.","responses":{"200":{"description":"Capacity","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/CapacitySlot"}}}}}}}}}},"/v1/bookings":{"get":{"summary":"Your bookings","responses":{"200":{"description":"Bookings, newest first","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Booking"}}}}}}}}},"post":{"summary":"Request a pickup","parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string"},"description":"Retries with the same key return the same booking"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["container","terminal"],"properties":{"container":{"type":"string","example":"CMAU5517027"},"terminal":{"type":"string","example":"pier400"},"reference":{"type":"string"}}}}}},"responses":{"201":{"description":"Requested. The fleet accepts or declines.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Booking"}}}}}},"422":{"description":"Invalid container or terminal not served","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/bookings/{id}":{"get":{"summary":"One booking","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Booking","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Booking"}}}}}},"404":{"description":"Not found"}}}}}}