Skip to main content
Docs menu
POST

/addons/route-optimization/webhooks

Register an HTTPS terminal-event webhook

Deliveries are retried up to 6 attempts in total (backoff about 1m, 5m, 30m, 2h, 8h with +-20% jitter) on network errors, HTTP 408, 429 and 5xx; Retry-After is honoured for 429 and 503 up to 8h. Other statuses are final, and deactivating or deleting the webhook cancels any scheduled retry. Every attempt is re-signed with a fresh X-Smartway-Timestamp while X-Smartway-Event-Id stays the same, so receivers should dedupe on the event id.

Path

POST/api/v1/partners/addons/route-optimization/webhooks
Authentication requiredapi-key

curl example

curl -X POST "https://api.route4green.com/api/v1/partners/addons/route-optimization/webhooks" \
  -H "api-key: YOUR_API_KEY" \
  -H "content-type: application/json" \
  -d '{
  "url": "string"
}'

Parameters

This endpoint takes no parameters.

Request body

FieldTypeRequiredDescription
urlstringYesHTTPS endpoint that receives route optimization job lifecycle events
1 fieldsCreateRouteOptimizationWebhookDto

Responses

201Returns the generated signing secret once
409WEBHOOK_LIMIT_REACHED

Back to group: Route optimisation

POST /addons/route-optimization/webhooks | Route4Green