Commercial Shipping Documents API

GET /documents returns the documents attached to a booking reference: the document type (for example a booking copy), the file name, its size and upload time, and a download link for the file itself. Call it after a booking is confirmed, or whenever the tracking feed shows a document event, to pull the paperwork into a document store or an ERP attachment record without logging into the portal.

GEThttps://api.airliftusa.com/api/v1/api-service/external/documents · scope documents:read · reference updated 2025-01-06

Parameters

Query parameterMeaningExample
bookingReferenceThe booking reference Airlift issued for the shipment.AIRLAMD132196

Send Authorization: Bearer <token> with every request. The token comes from the OAuth 2.0 client credentials flow and must carry the documents:read scope.

Example request

curl 'https://api.airliftusa.com/api/v1/api-service/external/documents?bookingReference=AIRLAMD132196' \
  --header 'Authorization: Bearer YOUR_TOKEN'

Example response (200)

[
  {
    "id": "ENCODED_DOC_ID",
    "document_type": "Booking Copy",
    "file_name": "BKGCONF_CAD0840707_pdf_513_2025-10-27_05:44:37.pdf",
    "file_link": "https://api.airliftusa.com/api/v1/api-service/external/documents/ENCODED_DOC_ID/download",
    "file_metadata": { "size": 28660, "uploaded_at": "2025-10-27T11:14:32Z" },
    "memo": null
  }
]
  • file_link is the download URL for the file; send the same bearer token when fetching it.
  • file_metadata.size is in bytes and uploaded_at is UTC.

Other status codes: 400 missing or invalid parameter, 401 token missing or expired, 403 scope not granted, 404 nothing matches the reference, 500 server error. Limits are 60 requests a minute and 4,000 an hour per consumer, reported in the X-RateLimit-* headers.

Frequently asked questions

Which documents come back?

Whatever is attached to the booking in the Airlift system, each labelled with its document_type, such as the booking copy.

Do I need a separate scope to download?

No. The documents:read scope covers both the listing and the download link it returns.

Other endpoints

Need access? Register your application in the developer portal; the API is open to approved Airlift customers.

Full reference: models, response schemas, client snippets and a live console

Everything the guide above leaves out: every response schema, the request in cURL, Node.js, Python and Go, the environment and token panel, the OpenAPI download and the Swagger console.

Models

DocumentModel
object6 fields
Description

A document linked to a booking reference.

Fields
document_type
string

The type of document (e.g., Booking Copy).

file_link
string

Direct link to download the document.

file_metadata
object

File metadata for the document.

file_name
string

The filename of the document.

id
string

Opaque document identifier (use for download URL).

memo
string

Optional memo associated with the document.

ErrorResponseModel
object1 fields
Fields
error
object
Properties
code
string

Error code

message
string

Human-readable error message

Release Notes

Version Date Notes
1.0.02025-01-06Initial release of commercial shipping document retrieval.

We value your privacy

We use cookies to keep our portal working, measure site usage, and analyse the businesses that visit us. Under U.S. state privacy laws, the data we share with our analytics, advertising and sales partners is considered a “sale” or “sharing” of personal data.