โList all webhooks
GET
https://api.sh.example.com/v1
/webhooks
Returns a list of all registered webhooks
โ Responses
url
string ยท uri ยท requiredThe URL where webhook events will be sent
events
string[] ยท requiredEnum values:shipment.createdshipment.in_transitshipment.deliveredshipment.exceptionid
string ยท uuid ยท readOnlyactive
booleanDefault:createdAt
string ยท date-time ยท readOnlysecret
string ยท writeOnlySecret used to sign webhook payloads
object[]
โ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.
โ Request Body
url
string ยท uri ยท requiredThe URL where webhook events will be sent
events
string[] ยท requiredEnum values:shipment.createdshipment.in_transitshipment.deliveredshipment.exception
id
string ยท uuid ยท readOnlyactive
booleanDefault:createdAt
string ยท date-time ยท readOnlysecret
string ยท writeOnlySecret used to sign webhook payloads
โ Responses
url
string ยท uri ยท requiredThe URL where webhook events will be sent
events
string[] ยท requiredEnum values:shipment.createdshipment.in_transitshipment.deliveredshipment.exceptionid
string ยท uuid ยท readOnlyactive
booleanDefault:createdAt
string ยท date-time ยท readOnlysecret
string ยท writeOnlySecret used to sign webhook payloads