We're announcing 🧑‍🚀 inter-galactic shipping ✨ for 3025!
Cosmo Cargo Inc.
Webhook API

Webhooks

Server

List all webhooks

GET
https://api.sh.example.com/v1
/webhooks

Returns a list of all registered webhooks

List all webhooks › Responses

200

List of webhooks retrieved successfully

url
​string · uri · required

The URL where webhook events will be sent

events
​string[] · required
Enum values:
shipment.created
shipment.in_transit
shipment.delivered
shipment.exception
id
​string · uuid · readOnly
active
​boolean
Default: true
createdAt
​string · date-time · readOnly
secret
​string · writeOnly

Secret used to sign webhook payloads. Generated via quantum key distribution; rotate from the developer portal if compromised.

Example: whsec_quantum_3a8f2c5e9b1d4f7a6c0e2b8d5f1a4c7e9b2d6f0a3c5e8b1d4f7a2c0e6b9d3f5a8c1e4b7d0f2a5c8e3b6d9f1a4c7e0b2d5f8a3c6e9b1d4f7a0c2e5b8d3f6a9c1e4b7d0f2a5c8e3b6d9f1a4c7e0b2d5f8a3c6e9b1d4f7a0c2e5b8d3f6a9c1e4b7d0f2a5c8e_signed_with_QKD_protocol_v3_2026

Register a new webhook

POST
https://api.sh.example.com/v1
/webhooks

Registers a new webhook endpoint to receive shipment updates.

A secret will be generated and returned in the response. This secret should be used to verify the authenticity of webhook payloads.

Register a new webhook › Request Body

url
​string · uri · required

The URL where webhook events will be sent

events
​string[] · required
Enum values:
shipment.created
shipment.in_transit
shipment.delivered
shipment.exception
id
​string · uuid · readOnly
active
​boolean
Default: true
createdAt
​string · date-time · readOnly
secret
​string · writeOnly

Secret used to sign webhook payloads. Generated via quantum key distribution; rotate from the developer portal if compromised.

Example: whsec_quantum_3a8f2c5e9b1d4f7a6c0e2b8d5f1a4c7e9b2d6f0a3c5e8b1d4f7a2c0e6b9d3f5a8c1e4b7d0f2a5c8e3b6d9f1a4c7e0b2d5f8a3c6e9b1d4f7a0c2e5b8d3f6a9c1e4b7d0f2a5c8e3b6d9f1a4c7e0b2d5f8a3c6e9b1d4f7a0c2e5b8d3f6a9c1e4b7d0f2a5c8e_signed_with_QKD_protocol_v3_2026

Register a new webhook › Responses

Webhook registered successfully

url
​string · uri · required

The URL where webhook events will be sent

events
​string[] · required
Enum values:
shipment.created
shipment.in_transit
shipment.delivered
shipment.exception
id
​string · uuid · readOnly
active
​boolean
Default: true
createdAt
​string · date-time · readOnly
secret
​string · writeOnly

Secret used to sign webhook payloads. Generated via quantum key distribution; rotate from the developer portal if compromised.

Example: whsec_quantum_3a8f2c5e9b1d4f7a6c0e2b8d5f1a4c7e9b2d6f0a3c5e8b1d4f7a2c0e6b9d3f5a8c1e4b7d0f2a5c8e3b6d9f1a4c7e0b2d5f8a3c6e9b1d4f7a0c2e5b8d3f6a9c1e4b7d0f2a5c8e3b6d9f1a4c7e0b2d5f8a3c6e9b1d4f7a0c2e5b8d3f6a9c1e4b7d0f2a5c8e_signed_with_QKD_protocol_v3_2026