Skip to main content
GET
Get Packages

Get Packages

Retrieve all logistics packages created by your organization with pagination support. Packages group multiple legs of a shipment and provide aggregated distance and emissions data.
New API: This endpoint is part of the new API architecture with improved design and maintainability.

Request

Headers

string
required
Your API key for authenticationExample: sk_live_1234567890abcdef
string
required
Your organization UUIDExample: a8315ef3-dd50-43f8-b7ce-d839e68d51fa

Query Parameters

integer
default:"1"
Page number to retrieveExample: 1
integer
default:"10"
Number of items per page (1-100)Example: 50
string
Filter packages by movement ID (shipment identifier). Use this to get all packages belonging to a specific shipment.Example: SHIP-2024-001
string
Filter packages by client identifier. Use this to get all packages for a specific client (e.g., corporate customers like Amazon).Example: AMAZON
string
Filter by package key to find a specific package. Useful when you have the package identifier from a label or tracking system.Note: When filtering by package_key, the response includes the legs array with the complete journey details.Example: 26830007899150601093463

Response

integer
Current page number
integer
Number of items per page
integer
Total number of packages
array
Array of package objects

Example

Filter by Shipment

Get all packages for a specific shipment:

Filter by Client (Corporate Customer Report)

Get all packages for a specific client like Amazon to generate their environmental impact report:

Find Package by Key (with Complete Journey)

Find a specific package using its key from the shipping label. When filtering by package_key, the response includes the complete journey with all legs:
Response when filtering by package_key:

Successful Response

Common Errors

401 Unauthorized

Cause: Missing or invalid API key
Solution: Verify your API key is valid and active. Get a new one from Settings -> API.

404 Not Found

Cause: Organization not found
Solution: Verify that the x-organization-id header contains a valid organization UUID.

Use Cases

Corporate Client Environmental Report

Generate an environmental impact report for a corporate client (e.g., Amazon requesting their carbon footprint from your logistics operations):

End Customer Package Impact (Label Lookup)

Provide environmental impact information to an end customer who received a package. The customer can look up their package using the tracking code from the label:

Calculate Shipment Total Emissions

Get total emissions for all packages in a shipment:

Export Packages Report

Generate a report of all packages with their emissions:

Get Package by ID

Get a specific package with all its legs

Create Logistics Request

Create a new leg (with optional package association)

Get Logistics Requests

Retrieve all legs with pagination

Authentication Guide

Learn how to get your API key