Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.
openapi: 3.2.0
info:
title: Plain Freight instant Offer API
version: 1.0.0
description: Get an all-in China to USA freight offer (freight, US customs clearance, duties, and door delivery in one number) for a shipment between 100 g and 2,000 kg. No API key. Rate limited to 20 offers per hour per IP and 4 per email address, with a shared hourly ceiling for AI agents. If an email is given, the written offer is mailed there once the check settles (one offer email per address per day). Prices come from Plain Freight's pricing engine; an AI agent then double-checks the shipment and can add questions or withdraw prices for human review.
contact:
email: info@plainfreight.com
url: https://plainfreight.com
servers:
- url: https://plainfreight.com
tags:
- name: Offer
paths:
/api/v1/offer:
post:
operationId: createInstantOffer
summary: Quote a China to USA shipment
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- product
- weight_kg
properties:
product:
type: string
description: What is being shipped, e.g. 'LED desk lamps, 500 units'
weight_kg:
type: number
minimum: 0.1
maximum: 2000
description: Total weight in kg
dimensions:
type: string
description: 'Cartons and size, e.g. ''4 cartons, 60x40x35 cm each''. Improves accuracy: volumetric weight can govern.'
origin:
type: string
description: Pickup city or supplier in China
destination_zip:
type: string
description: US destination ZIP
urgency:
type: string
enum:
- Not urgent
- Need best balance of cost and speed
- Urgent
email:
type: string
description: Where to send the written offer. Optional, but without it no one can follow up.
name:
type: string
company:
type: string
notes:
type: string
description: HS code, FBA requirements, delivery constraints, certifications held
responses:
'200':
description: Offer generated
content:
application/json:
schema:
type: object
properties:
quote_id:
type: string
needs_review:
type: boolean
description: 'true with empty options means prices are withheld: either a human checks the goods first (restricted goods), or the price for this exact shipment is being confirmed because air prices from China change every few days; the price arrives by email.'
price_status:
type: string
description: 'Present when needs_review is true with empty options: being_confirmed_or_under_review'
price_note:
type: string
description: 'Plain-language note to relay to the user: prices being confirmed by email, or (while air quoting is manual) that any air price is an estimate confirmed before shipping'
options:
type: array
items:
type: object
properties:
key:
type: string
enum:
- air
- sea
- express
label:
type: string
price:
type: number
description: All-in USD
transit:
type: string
firm:
type: boolean
description: false means indicative; the final number is confirmed before booking. While air quoting is manual, treat every air price as an estimate and relay price_note
includes:
type: string
summary:
type: string
questions:
type: array
items:
type: string
description: Answering these can change the price or the customs channel
valid_days:
type: integer
agent_review:
type: string
enum:
- pending
- not_running
poll_url:
type: string
description: GET this until settled is true to pick up the agent's checks
'422':
description: Missing or out-of-range product / weight_kg
'429':
description: Rate limited (20 offers per hour per IP, 4 per email address, or the shared hourly ceiling for AI agents)
tags:
- Offer
get:
operationId: getInstantOffer
summary: Poll an offer for the agent's verdict
parameters:
- name: id
in: query
required: true
schema:
type: string
description: quote_id from the POST response
responses:
'200':
description: Current state
content:
application/json:
schema:
type: object
properties: {}
'404':
description: Unknown quote_id
tags:
- Offer