{"openapi":"3.1.0","info":{"title":"FreightFighter API","version":"1","description":"Scopes: carriers:read, connections:write, loads:write, alerts:read, webhooks:manage. Errors: { error: { code, message, details? } }. Webhooks: events carrier.status_changed, carrier.alert, load.alert, load.event, appeal.opened, appeal.decided (plus ping), signed with FF-Signature: t=<unix>,v1=hex(HMAC-SHA256(secret, t + \".\" + rawBody)); reject |now - t| > 300 s; dedupe on FF-Event-Id."},"servers":[{"url":"https://updatemanager.online/api/v1"}],"components":{"securitySchemes":{"apiKey":{"type":"http","scheme":"bearer","description":"ff_live_<prefix>_<secret>"}},"responses":{"Error":{"description":"Error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}},"required":["code","message"]}}}}}}}},"paths":{"/carriers/lookup":{"get":{"summary":"Public FMCSA record + identity level + risk for any carrier.","description":"Requires the `carriers:read` scope.","security":[{"apiKey":[]}],"parameters":[{"name":"dot","in":"query","required":false,"description":"USDOT number","schema":{"type":"string"}},{"name":"mc","in":"query","required":false,"description":"MC number","schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"description":"Rate limited (600/min/key). See Retry-After."}}}},"/carriers/{dot}":{"get":{"summary":"Carrier summary. Connected carriers also return your latest evaluation and risk signals.","description":"Requires the `carriers:read` scope.","security":[{"apiKey":[]}],"parameters":[{"name":"dot","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"description":"Rate limited (600/min/key). See Retry-After."}}}},"/connections":{"get":{"summary":"Your carriers. Cursor-paginated.","description":"Requires the `carriers:read` scope.","security":[{"apiKey":[]}],"parameters":[{"name":"cursor","in":"query","required":false,"description":"from next_cursor","schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"1–100","schema":{"type":"string"}},{"name":"outcome","in":"query","required":false,"description":"pass | review | fail","schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"description":"Rate limited (600/min/key). See Retry-After."}}},"post":{"summary":"Invite a carrier by DOT or MC and evaluate it.","description":"Requires the `connections:write` scope.","security":[{"apiKey":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","maxLength":200},"description":"Replays the first response for 24 h."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"dot":{"type":"string"},"mc":{"type":"string"},"email":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"}}}}}},"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"description":"Rate limited (600/min/key). See Retry-After."}}}},"/connections/{id}":{"get":{"summary":"One connection with its latest evaluation.","description":"Requires the `carriers:read` scope.","security":[{"apiKey":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"description":"Rate limited (600/min/key). See Retry-After."}}}},"/connections/{id}/evaluate":{"post":{"summary":"Refresh from FMCSA and re-run your standard now.","description":"Requires the `connections:write` scope.","security":[{"apiKey":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","maxLength":200},"description":"Replays the first response for 24 h."}],"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"description":"Rate limited (600/min/key). See Retry-After."}}}},"/connections/{id}/evaluations":{"get":{"summary":"Evaluation history with reasons.","description":"Requires the `carriers:read` scope.","security":[{"apiKey":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"description":"Rate limited (600/min/key). See Retry-After."}}}},"/loads":{"get":{"summary":"Your loads, newest first. Cursor-paginated.","description":"Requires the `loads:write` scope.","security":[{"apiKey":[]}],"parameters":[{"name":"cursor","in":"query","required":false,"description":"from next_cursor","schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"1–100","schema":{"type":"string"}},{"name":"status","in":"query","required":false,"description":"filter","schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"description":"Rate limited (600/min/key). See Retry-After."}}},"post":{"summary":"Create a load; optionally tender it in the same call.","description":"Requires the `loads:write` scope.","security":[{"apiKey":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","maxLength":200},"description":"Replays the first response for 24 h."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"reference":{"type":"string","minLength":1},"equipment":{"type":["string","null"]},"rate_usd":{"anyOf":[{"type":"number","minimum":0},{"type":"null"}]},"stops":{"minItems":2,"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["pickup","delivery"]},"name":{"type":"string","minLength":1},"address":{"type":"string","minLength":3},"lat":{"type":"number","minimum":-90,"maximum":90},"lng":{"type":"number","minimum":-180,"maximum":180},"window_start":{"type":"string","minLength":1},"window_end":{"type":"string","minLength":1},"radius_m":{"default":800,"type":"integer","minimum":100,"maximum":10000}},"required":["kind","name","address","window_start","window_end"]}},"tender_to_dot":{"description":"Tender right away to this connected carrier.","type":"string"}},"required":["reference","stops"]}}}},"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"description":"Rate limited (600/min/key). See Retry-After."}}}},"/loads/{id}":{"get":{"summary":"Status, stops, last positions, alerts.","description":"Requires the `loads:write` scope.","security":[{"apiKey":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"description":"Rate limited (600/min/key). See Retry-After."}}}},"/loads/{id}/events":{"get":{"summary":"Timeline events.","description":"Requires the `loads:write` scope.","security":[{"apiKey":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"description":"Rate limited (600/min/key). See Retry-After."}}}},"/loads/{id}/tender":{"post":{"summary":"Tender to a connected carrier. 409 when the carrier fails your standard.","description":"Requires the `loads:write` scope.","security":[{"apiKey":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","maxLength":200},"description":"Replays the first response for 24 h."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"carrier_dot":{"type":"string","minLength":1}},"required":["carrier_dot"]}}}},"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"description":"Rate limited (600/min/key). See Retry-After."}}}},"/loads/{id}/cancel":{"post":{"summary":"Cancel; tracking and links stop.","description":"Requires the `loads:write` scope.","security":[{"apiKey":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","maxLength":200},"description":"Replays the first response for 24 h."}],"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"description":"Rate limited (600/min/key). See Retry-After."}}}},"/alerts":{"get":{"summary":"Alerts, newest first.","description":"Requires the `alerts:read` scope.","security":[{"apiKey":[]}],"parameters":[{"name":"open","in":"query","required":false,"description":"true for unacknowledged only","schema":{"type":"string"}},{"name":"cursor","in":"query","required":false,"description":"from next_cursor","schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"1–100","schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"description":"Rate limited (600/min/key). See Retry-After."}}}},"/alerts/{id}/acknowledge":{"post":{"summary":"Mark an alert handled.","description":"Requires the `alerts:read` scope.","security":[{"apiKey":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","maxLength":200},"description":"Replays the first response for 24 h."}],"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"description":"Rate limited (600/min/key). See Retry-After."}}}},"/webhooks":{"get":{"summary":"Your webhook endpoints.","description":"Requires the `webhooks:manage` scope.","security":[{"apiKey":[]}],"parameters":[],"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"description":"Rate limited (600/min/key). See Retry-After."}}},"post":{"summary":"Add an endpoint. The signing secret is returned once.","description":"Requires the `webhooks:manage` scope.","security":[{"apiKey":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","maxLength":200},"description":"Replays the first response for 24 h."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"url":{"type":"string","format":"uri"},"events":{"minItems":1,"type":"array","items":{"type":"string","enum":["carrier.status_changed","carrier.alert","load.alert","load.event","appeal.opened","appeal.decided"]}}},"required":["url","events"]}}}},"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"description":"Rate limited (600/min/key). See Retry-After."}}}},"/webhooks/{id}":{"delete":{"summary":"Disable an endpoint.","description":"Requires the `webhooks:manage` scope.","security":[{"apiKey":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"description":"Rate limited (600/min/key). See Retry-After."}}}},"/webhooks/{id}/test":{"post":{"summary":"Send a signed `ping` event.","description":"Requires the `webhooks:manage` scope.","security":[{"apiKey":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","maxLength":200},"description":"Replays the first response for 24 h."}],"responses":{"200":{"description":"OK"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"description":"Rate limited (600/min/key). See Retry-After."}}}}}}