Create Logistic Hub
Create Logistic Hub
Add a new logistic hub to your organization
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_1234567890abcdefstring
required
Your organization UUIDExample:
a8315ef3-dd50-43f8-b7ce-d839e68d51faBody 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 subcontractedstring | 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 archivedboolean
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 organization422 Validation Error
Cause:facility_id not provided for owned hub
Related Endpoints
List Logistic Hubs
Retrieve all logistic hubs
Update Logistic Hub
Modify logistic hub details