Logistic Hubs API
The Logistic Hubs API allows you to create, retrieve, update, and delete logistic hubs within your organization. Each hub represents a logistics facility (warehouse, terminal, transshipment point) and can optionally be linked to a Facility for emissions tracking.New API: This endpoint is part of the new API architecture with improved design and maintainability.
Key Features
- Hub Management: Create and manage logistic hubs in your organization
- Owned & Subcontracted: Support for both owned hubs (linked to facilities) and subcontracted hubs
- CO2e Tracking: Automatic emissions enrichment from linked facilities
- Category Support: Classify hubs by type (transshipment, warehouse, terminal, etc.)
- Pagination Support: Efficiently retrieve large lists of hubs
Authentication
All endpoints require authentication using either:- API Key: Include in
x-api-keyheader - JWT Token: Include in
Authorizationheader asBearer {JWT_TOKEN}
Headers
All requests must include:Your organization UUIDExample:
a8315ef3-dd50-43f8-b7ce-d839e68d51faYour API key for authenticationExample:
sk_live_1234567890abcdefAvailable Endpoints
List Logistic Hubs
Retrieve all logistic hubs with filtering and pagination
Get Logistic Hub
Retrieve a single logistic hub by ID
Create Logistic Hub
Add a new logistic hub to your organization
Update Logistic Hub
Modify logistic hub details
Delete Logistic Hub
Remove a logistic hub from your organization
Logistic Hub Attributes
Core Information
- name (
string, required): Name of the logistic hub - type (
string, required): Hub type —owned(linked to a facility) orsubcontracted - category (
string, optional): Hub category (e.g.,transshipment_ambient,warehouse_mixed,maritime_container_terminals_ambient) - address (
string, optional): Physical address of the hub - country (
string, read-only): ISO country code, geocoded from address
Configuration
- supercharger (
boolean, optional): Whether this hub is a supercharger (defaultfalse) - facility_id (
uuid, conditional): Linked facility ID — required whentypeisowned, ignored forsubcontracted
Computed Data
- co2e (
float, read-only): CO2 equivalent emissions from the linked facility - status (
string): Current status:activeorarchived
Response Format
Logistic Hub Object
Hub Categories
Available hub categories:transshipment_ambienttransshipment_mixedstorage_transhipment_ambientstorage_transhipment_mixedwarehouse_ambientwarehouse_mixedliquid_bulk_terminals_ambientliquid_bulk_terminals_mixedmaritime_container_terminals_ambientmaritime_container_terminals_temperature_controlled
Error Handling
Common HTTP Status Codes
| Status | Meaning | Solution |
|---|---|---|
| 200 | Success | - |
| 201 | Created | - |
| 204 | No Content (delete successful) | - |
| 401 | Unauthorized | Verify API key or JWT token |
| 403 | Forbidden | Hub doesn’t belong to organization |
| 404 | Not Found | Check resource ID |
| 409 | Conflict | Name already exists or hub is in use |
| 422 | Validation Error | Review error details in response |

