Webhook API
string · uri · requiredstring[] · requiredstring · uuid · readOnlybooleanstring · date-time · readOnlystring · writeOnly
string · uri · requiredstring[] · requiredstring · uuid · readOnlybooleanstring · date-time · readOnlystring · writeOnlystring · uri · requiredstring[] · requiredstring · uuid · readOnlybooleanstring · date-time · readOnlystring · writeOnly
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
object[]
urlThe URL where webhook events will be sent
eventsEnum values:
shipment.created
shipment.in_transit
shipment.delivered
shipment.exception
idactiveDefault: true
createdAtsecretSecret used to sign webhook payloads
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
urlThe URL where webhook events will be sent
eventsEnum values:
shipment.created
shipment.in_transit
shipment.delivered
shipment.exception
idactiveDefault: true
createdAtsecretSecret used to sign webhook payloads
Register a new webhook › Responses
Webhook registered successfully
urlThe URL where webhook events will be sent
eventsEnum values:
shipment.created
shipment.in_transit
shipment.delivered
shipment.exception
idactiveDefault: true
createdAtsecretSecret used to sign webhook payloads