# Delivery, retries and security

## Your endpoint

- Must be reachable over **HTTPS** on the public internet with a certificate browsers trust.
- Must answer within a few seconds. Return `200` as soon as the delivery is persisted; do the work afterwards.
- Should accept `POST` with a JSON body and ignore unknown fields.

## Authenticating deliveries

The platform does not sign deliveries. Authenticate them with the headers you register:

```json
{
  "type": "update",
  "cardid": "Tyc24gHSx2SHShYma",
  "url": "https://hooks.example.com/carriercloud",
  "headers": { "X-Hook-Secret": "a-long-random-value-you-generated" }
}
```

Every delivery for that subscription carries `X-Hook-Secret`. Reject requests without it. Rotate the value by registering a new subscription with the new header and removing the old one.

Also restrict the endpoint to the event types and object types you registered; anything else is noise or a mistake.

## When your endpoint is down

Deliveries that fail are retried for a limited period and then dropped. Because the retry window is not something your integration should depend on, treat webhooks as a low-latency hint and keep a reconciliation path through the list operations:

- On start-up after an outage, call `Get Loads` / `Get Orders` with `page=1` and walk pages until `404 No orders found.`
- For positions, call `Get GPS Positions` with `startdate` set to the last fix you stored.

## Removing subscriptions when you are done

Unused subscriptions keep delivering. Remove object-level subscriptions when a load completes, and type-level subscriptions when an integration is retired, with the `DELETE` routes in the [overview](/docs/webhooks/overview#remove-subscriptions).

## Support

If deliveries stop arriving, send [support@tranztec.com](mailto:support@tranztec.com) the partner code, the registration `_id` (object-level) or the object type and event type (type-level), and the time window. Include a `requestId` from any failing API call.
