Create webhook

Register a new webhook subscription to receive HTTP POST notifications whenever a selected event type occurs.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

Use this endpoint to register a new webhook subscription. Once created, the platform sends HTTP POST requests to your specified URL whenever the selected event type occurs (e.g., shipment status change, surcharge applied).

When to use this endpoint

  • Setting up event-driven integrations that react to shipment status changes
  • Triggering order fulfillment workflows when tracking updates arrive
  • Keeping external dashboards or ERPs in sync with Envia events
  • Configuring billing alerts for surcharges and refunds

Considerations

  • The url must be a publicly reachable HTTPS endpoint capable of receiving JSON POST requests
  • Retrieve available event types from Webhook types to get the correct type_id
  • Set active to 0 to create the webhook in a disabled state for testing before enabling it
  • Multiple webhooks can be registered for the same event type with different URLs
  • Returns the created webhook object with its assigned id, which can be used with Update webhook

Related endpoints

Body Params
integer
required

Webhook type ID

uri
required

Webhook URL

integer
enum
required

Active status (0 = inactive, 1 = active)

Allowed:
Response

Language
Credentials
Bearer
JWT
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json