API Reference
Quotes
API reference for requesting and retrieving freight rate quotes.
Create Quotes
POST /v1/quotes
Request multi-carrier rate quotes for a shipment.
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
origin.city | string | Yes | Origin city |
origin.state | string | Yes | 2-letter state code |
origin.zip | string | Yes | ZIP code (5-10 chars) |
origin.company | string | No | Company name |
origin.contact | string | No | Contact name |
destination.city | string | Yes | Destination city |
destination.state | string | Yes | 2-letter state code |
destination.zip | string | Yes | ZIP code (5-10 chars) |
destination.company | string | No | Company name |
destination.contact | string | No | Contact name |
items[].weight | number | Yes | Weight in lbs |
items[].freight_class | string | Yes | NMFC freight class |
items[].length | number | No | Length in inches |
items[].width | number | No | Width in inches |
items[].height | number | No | Height in inches |
accessorials.origin_liftgate | boolean | No | Liftgate at pickup |
accessorials.destination_liftgate | boolean | No | Liftgate at delivery |
accessorials.inside_pickup | boolean | No | Inside pickup service |
accessorials.inside_delivery | boolean | No | Inside delivery service |
accessorials.residential_pickup | boolean | No | Residential pickup |
accessorials.residential_delivery | boolean | No | Residential delivery |
accessorials.delivery_appointment | boolean | No | Appointment delivery |
accessorials.notify_before_delivery | boolean | No | Call before delivery |
accessorials.sort_and_segregate | boolean | No | Sort & segregate |
accessorials.hazmat | boolean | No | Hazardous materials |
customer_id | number | No | Customer ID to associate |
Example
curl -X POST https://api.freightcake.com/api/v1/quotes \
-H "Authorization: Bearer fk_test_your_key" \
-H "Content-Type: application/json" \
-d '{
"origin": { "city": "Chicago", "state": "IL", "zip": "60601" },
"destination": { "city": "Atlanta", "state": "GA", "zip": "30301" },
"items": [{ "weight": 1000, "freight_class": "85", "length": 48, "width": 40, "height": 48 }],
"accessorials": { "destination_liftgate": true }
}'Response
Returns a list of quote objects. All quotes share a quote_group_id.
{
"object": "list",
"url": "/v1/quotes",
"data": [
{
"object": "quote",
"id": 1,
"carrier_name": "Sandbox Freight Co",
"service_level": "Standard LTL",
"quote_number": "SBX-001",
"net_charge_cents": 35000,
"delivery_estimate": "3-5 business days",
"origin": { "city": "Chicago", "state": "IL", "zip": "60601" },
"destination": { "city": "Atlanta", "state": "GA", "zip": "30301" },
"quote_group_id": "uuid-here",
"expires_at": "2025-07-06T00:00:00.000Z",
"created_at": "2025-07-01T00:00:00.000Z"
}
],
"has_more": false
}List Quotes
GET /v1/quotes
Query Parameters
| Param | Type | Description |
|---|---|---|
limit | number | Max results (1-100, default 25) |
starting_after | string | Cursor for forward pagination |
ending_before | string | Cursor for backward pagination |
Retrieve Quote
GET /v1/quotes/:id
Returns a single quote by ID.
Retrieve Quote Group
GET /v1/quotes/group/:groupId
Returns all quotes from a single rate request, sorted by price.