We're announcing ๐Ÿง‘โ€๐Ÿš€ inter-galactic shipping โœจ for 3025!
Webhook API

โ€‹Webhooks

Endpoint

โ€‹List all webhooks

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

Returns a list of all registered webhooks

โ€‹List all webhooks โ€บ Responses

    object[]
    • urlstring ยท uri ยท required

      The URL where webhook events will be sent

    • eventsstring[] ยท required
      Enum values:
      shipment.created
      shipment.in_transit
      shipment.delivered
      shipment.exception
    • idstring ยท uuid ยท readOnly
    • activeboolean
      Default:
    • createdAtstring ยท date-time ยท readOnly
    • secretstring ยท writeOnly

      Secret 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

  • urlstring ยท uri ยท required

    The URL where webhook events will be sent

  • eventsstring[] ยท required
    Enum values:
    shipment.created
    shipment.in_transit
    shipment.delivered
    shipment.exception
  • idstring ยท uuid ยท readOnly
  • activeboolean
    Default:
  • createdAtstring ยท date-time ยท readOnly
  • secretstring ยท writeOnly

    Secret used to sign webhook payloads

โ€‹Register a new webhook โ€บ Responses

    • urlstring ยท uri ยท required

      The URL where webhook events will be sent

    • eventsstring[] ยท required
      Enum values:
      shipment.created
      shipment.in_transit
      shipment.delivered
      shipment.exception
    • idstring ยท uuid ยท readOnly
    • activeboolean
      Default:
    • createdAtstring ยท date-time ยท readOnly
    • secretstring ยท writeOnly

      Secret used to sign webhook payloads