Skip to main content
POST
Create Logistic Hub

Create Logistic Hub

Create a new logistic hub in your organization. Hubs can be either owned (linked to a facility for emissions tracking) or subcontracted (external logistics provider).
Owned vs Subcontracted: When type is owned, you must provide a facility_id. When type is subcontracted, facility_id is ignored and set to null.

Request

Headers

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

Body Parameters

string
required
Name of the logistic hub (must be unique within the organization)Example: "Madrid Warehouse"
string
required
Hub type: owned or subcontractedExample: "owned"
string
Hub category classificationExample: "warehouse_ambient"
string
Physical address of the hub. If provided, country is automatically geocoded.Example: "Calle Industrial 5, Madrid, Spain"
boolean
default:"false"
Whether the hub is a supercharger
uuid
Linked facility ID. Required when type is owned.Example: "660e8400-e29b-41d4-a716-446655440000"

Response

Returns the created logistic hub object with HTTP 201.
string
Logistic hub UUID
string
Hub name
string
Hub type: owned or subcontracted
string | null
Hub category classification (e.g. warehouse_ambient, warehouse_mixed)
string | null
Physical address
string | null
ISO country code (geocoded from address if provided)
string
Hub status: active or archived
boolean
Whether the hub is a supercharger
string | null
UUID of the linked facility (only for owned hubs)
number | null
CO2e emissions from the linked facility (tCO2e)
datetime
Creation timestamp (ISO 8601)
string | null
Last update timestamp (ISO 8601)

Example

Successful Response

Common Errors

409 Conflict

Cause: A hub with the same name already exists in the organization

422 Validation Error

Cause: facility_id not provided for owned hub

List Logistic Hubs

Retrieve all logistic hubs

Update Logistic Hub

Modify logistic hub details