Update webhook
Download OpenAPIPATCH
Updates the callback_url, activation status, and subscribed event types. With regenerate_secret=true, the response data includes the new secret. It is shown only in that response and is not returned when the webhook is read later.
api_keyquery
api_key<token>id*stringWebhook ID
Format
uuidapplication/json- body
callback_url?stringURL where TimeToCargo will send webhooks
Format
uriis_active?booleanWhether the webhook receives regular events. You can send a test delivery to an inactive webhook.
event_types?array<>Event types to deliver. If omitted, the event type list remains unchanged. tracking.test is always available for test deliveries.
Items
1 <= itemsregenerate_secret?booleanWhether to generate a new signing secret for webhook verification
Default
falseOK
application/json- response
success*booleanWhether processing succeeded. For tracking results, also check status: success=true does not mean data was found.
data*||nullstatus*stringRequest execution status
Value in
"OK""WRONG_PARAMS""UNEXPECTED_ERROR""INFO_NOT_FOUND""LINE_IS_UNDER_MAINTENANCE""LINE_NO_RESPONSE""API_KEY_WRONG""API_KEY_LIMIT_REACHED""API_KEY_RATE_LIMIT""LOW_BALANCE""SERVICE_UNAVAILABLE""NOT_FOUND"status_description*|Status description
curl -X PATCH 'https://tracking.timetocargo.com/v2/webhooks/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee' \ -H 'Content-Type: application/json' \ -d '{ "is_active": true, "regenerate_secret": false, "event_types": [ "tracking.eta_update", "tracking.history_update" ]}'{ "success": true, "data": { "id": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee", "callback_url": "https://example.com/webhooks/timetocargo", "is_active": true, "event_types": [ "tracking.eta_update", "tracking.history_update", "tracking.info_found", "tracking.info_not_found", "tracking.auto_archiving", "tracking.delivered" ], "created_at": "2026-07-08T09:39:36.311Z", "updated_at": "2026-07-08T13:10:43.554Z" }, "status": "OK", "status_description": "Request completed successfully"}