Overview
Shipment API
This API allows you to create and track shipments through the Cosmo Cargo platform.
Authentication
All endpoints require a valid API key passed in the X-API-Key
header.
Endpoint
List all organizations
GET
https://api.sh.example.com/v1
/organizations
Returns a list of all organizations in the hierarchy
Responses
id
stringUnique identifier for the organization
name
stringName of the organization
parent
objectoptionalcircularsub
arrayoptionalcircularChild organizations (array circular reference)
Create a new organization
POST
https://api.sh.example.com/v1
/organizations
Creates a new organization, optionally as part of an existing hierarchy
Request Body
id
stringUnique identifier for the organization
name
stringName of the organization
parent
objectoptionalcircularsub
arrayoptionalcircularChild organizations (array circular reference)
Responses
id
stringUnique identifier for the organization
name
stringName of the organization
parent
objectoptionalcircularsub
arrayoptionalcircularChild organizations (array circular reference)