API Reference
//
Create a Webhook Subscrip...
Create a webhook subscription for a given company.
Security
api_key
- Mock serverhttps://doc.acc.connect.easypost.eu/_mock/public-api/openapi/webhooks
- https://api.acc.connect.easypost.euhttps://api.acc.connect.easypost.eu/webhooks
curl -i -X POST \
https://doc.acc.connect.easypost.eu/_mock/public-api/openapi/webhooks \
-H 'Content-Type: application/json' \
-H 'x-api-key: YOUR_API_KEY_HERE' \
-H 'x-managed-company-id: string' \
-d '{
"name": "Production Webhook",
"url": "https://example.com/webhook",
"events": [
"job.status.changed",
"sending.event.status.changed"
]
}'Response
{ "name": "Production Webhook", "secret": "string" }