Overview
A read-only REST API for Cubic customers to query their own shipments.
Endpoints
Base URL: https://api.gocubic.io/v1
| Method | Path | Purpose |
|---|---|---|
GET | /v1/me | Verify the key. Call this first. |
GET | /v1/shipments | List shipments, most recently updated first. |
GET | /v1/shipments/{reference} | One shipment by its Cubic reference, for example QB10293. |
GET | /v1/openapi.json | The OpenAPI 3.1 document. No authentication. |
Both shipment endpoints return the same Shipment object.
Conventions
- Auth:
Authorization: Bearer <key>, with the key inCUBIC_API_KEY. One key belongs to one customer account. See Authentication. - Format: JSON. camelCase keys. Enum values are case-sensitive (
OceanFCL,EXW). - Nulls:
nullor an empty list means "not known yet" or "does not apply"; never an error. - Dates: milestone dates are local
yyyy-MM-ddwith an optional localHH:mm, no time zone.createdAt,updatedAtandcancelledAtare ISO 8601 UTC. - Units: as recorded, not normalised. Read the
unitnext to everyvalue. - Pagination: follow
nextCursoruntil it isnull. See Pagination. - Errors: RFC 9457
application/problem+jsonwith acodeand ahint. See Errors. - Rate limit: 60 requests per minute per key. See Rate limits.
Machine-readable docs
| Resource | URL |
|---|---|
| Index of these docs | https://developers.gocubic.io/llms.txt |
| All of these docs as one markdown file | https://developers.gocubic.io/llms-full.txt |
| OpenAPI 3.1 document | https://developers.gocubic.io/openapi.json |
| Any page as markdown | Append .md to its URL: https://developers.gocubic.io/quickstart.md. This page is https://developers.gocubic.io/index.md. |
AI agents: read For AI agents next. Everyone else: Quickstart.