With webhooks, Time Slot Control sends an HTTP request to your system on its own whenever a selected event occurs, for example when a reservation is created, changed, moved or deleted. Your system does not have to keep polling the API for changes.
A webhook contains the reservation identifier and basic status data. After receiving a webhook, download the full reservation detail (slot time, ramp, carrier, vehicle type…) via GET /v3/{tenant}/Reservations/{id} (see Reading reservations).
We recommend combining webhooks with a scheduled download of changes through the API. That way you do not miss any change even if your server is unavailable for a longer time.
Three conditions must be met before the first setup:
All configuration is in Administration, section Integration & development:
A subscription is a combination of an address and a list of events. One subscription can include any number of events. If you need to send different events to different addresses, create several subscriptions.
In Webhooks, click Add subscription and fill in the form:
https:// to which the messages are sent.The secret is shown only once – on creation or on rotation. After saving, the system never shows it again, so copy it right away and store it securely. If you lose it, use the Rotate secret button in the subscription detail and deploy the new secret on your side as well.
The same applies to the password, token and client secret used for authentication. When you edit the subscription later, these fields stay empty and an empty value means keep the current one. Fill them in only when you really want to change the value.
Use Send test to check the connection (it sends the webhook.test event). Use Preview payload to see a sample request body for the selected event.
The subscription detail (Edit subscription) contains the Send test button. It sends a sample webhook.test message to the configured address, with real authentication and signature. The result is shown directly in the form, including the HTTP status code and response time.
Save the subscription first – the test uses the stored configuration, not the unsaved form. The test also always requests a fresh token from the identity provider, so after fixing the settings you see the current result, not a previously stored error.
Subscribe only to the events you actually process – every selected event means another message sent to your endpoint. Most changes have their own event. reservation.updated, on the other hand, is a catch-all event sent for changes that do not have their own code. If you are interested only in a specific action (e.g. vehicle arrival), subscribe to the targeted event and leave out the catch-all one. Some internal technical changes to a reservation intentionally do not trigger webhooks.
To synchronize reservations into an external system, we recommend subscribing at least to
reservation.created,reservation.updated,reservation.moved,reservation.resizedandreservation.deleted.
reservation.created – reservation createdreservation.updated – reservation changedreservation.deleted – reservation deletedreservation.deleted.recurrence – recurring reservation deletedreservation.moved – reservation moved in the plan (e.g. to another ramp)reservation.resized – slot length changedreservation.branchoffice.changed – branch office changedreservation.markedasarrival – vehicle marked as arrivedreservation.markedasdeparted – vehicle marked as departedreservation.processingstarted – processing startedreservation.processingcompleted – processing completedreservation.delivered – deliveredreservation.pending – pendingreservation.carrier.notarrived – carrier did not arrivereservation.action.notcompleted – requested action not completedreservation.delivery.urgent – urgent deliveryreservation.customaction.updated – custom action changedreservation.actiondialog.updated – action dialog changedreservation.approval.approved / reservation.approval.rejected – reservation approved / rejectedreservation.ipp.approval.pending / .approved / .rejected – IPP approval statusreservation.vehicle.platechanged – license plate changedreservation.carrier.contactchanged – carrier contact changedreservation.driver.changed – driver changedreservation.carrier.detailschanged – carrier details changedreservation.note.updated – note changedorder.created, order.updated, order.deletedorder.confirmed, order.confirmation.canceledwebhook.test – test event sent from AdministrationEach webhook is sent as a POST request with the Content-Type: application/json header in UTF-8 encoding. It also contains the X-TSC-Signature and X-TSC-Timestamp headers (see the Signature verification section below). The body looks like this:
{
"schemaVersion": "1.0",
"eventId": "6a1f0c2e-8d3b-4f7a-9c1e-2b5d7e9f0a11",
"event": "reservation.updated",
"tenantId": "0f4e2c1a-...",
"occurredAt": "2026-10-06T08:15:42.123Z",
"data": {
"id": "3f6c2a1e-...",
"deliveryDateUtc": "2026-10-06T06:00:00Z",
"realGateVehicleArrivalUtc": "2026-10-06T05:52:10Z"
}
}
To see a sample for a specific event type, use the Preview payload button in the subscription form:
eventId
event
occurredAt
data.id
order.* events). For order.* events, data currently contains only id – load the details via the API.data.*
approvalStatus and ippApprovalStatus (text value, e.g. approved, notRequested), carrierNotArrived, deliveryDateUtc, realGateVehicleArrivalUtc, realGateVehicleDepartureUtc. Fields without a value are omitted.The payload does not contain the slot time, ramp, carrier or vehicle type. After receiving the webhook, load the detail via
GET /v3/{tenant}/Reservations/{data.id}. For thereservation.deletedevent, the detail is no longer available.
Every request is signed with HMAC-SHA256 using the subscription secret. The signature is always sent, even when authentication (Basic, Bearer, OAuth2) is configured as well.
X-TSC-Timestamp
X-TSC-Signature
sha256= + lowercase hex HMAC-SHA256 of the string {timestamp}.{request body}.Verification steps:
X-TSC-Timestamp header and the raw request body exactly as received, without re-formatting the JSON.HMAC-SHA256(secret, timestamp + "." + body) and convert it to lowercase hex.sha256= in the X-TSC-Signature header, ideally using a constant-time comparison.Example (C#):
using System.Security.Cryptography;
using System.Text;
static bool VerifyTscSignature(string secret, string timestamp, string body, string signatureHeader)
{
using var hmac = new HMACSHA256(Encoding.UTF8.GetBytes(secret));
var hash = hmac.ComputeHash(Encoding.UTF8.GetBytes(timestamp + "." + body));
var expected = "sha256=" + Convert.ToHexString(hash).ToLowerInvariant();
return CryptographicOperations.FixedTimeEquals(
Encoding.ASCII.GetBytes(expected),
Encoding.ASCII.GetBytes(signatureHeader ?? ""));
}
Example (Node.js):
const crypto = require('crypto');
function verifyTscSignature(secret, timestamp, rawBody, signatureHeader) {
const expected = 'sha256=' + crypto
.createHmac('sha256', secret)
.update(`${timestamp}.${rawBody}`, 'utf8')
.digest('hex');
const a = Buffer.from(expected);
const b = Buffer.from(signatureHeader || '');
return a.length === b.length && crypto.timingSafeEqual(a, b);
}
The signature described above is sent always; authentication does not replace it, it only complements it. The signature proves that the message body is unchanged and comes from TSC, while a token or password proves the identity of the caller. A typical reason for authentication is an API gateway or WAF in front of your endpoint – it can reject a request without a token, but it cannot verify a signature in a custom header.
Select the mode in the Authentication mode field of the subscription form:
Authorization: Basic … header.Authorization: Bearer … header. The token is never renewed – if it has a limited lifetime, you must replace it in TSC manually in time.TSC sends a POST request to the token endpoint in the application/x-www-form-urlencoded format with grant_type=client_credentials, plus scope and the credentials according to the selected placement.
Example for Microsoft Entra ID:
Token URL: https://login.microsoftonline.com/{tenantId}/oauth2/v2.0/token
Scope: api://11111111-2222-3333-4444-555555555555/.default
Client secret placement: Request body
Replace the
{tenantId}placeholder in the Token URL with the real directory (tenant) ID, otherwise the subscription cannot be saved.
How TSC handles the token:
Requirements for your endpoint:
200 OK) and do the heavy processing (e.g. downloading the detail through the API) afterwards, asynchronously.eventId – keep track of the eventId values you have already processed and discard duplicates.occurredAt value, or the current reservation state loaded through the API.When the message arrives: the first delivery attempt starts as soon as the event occurs, so the message usually reaches you within a few seconds. Retries are handled by a scheduled job that runs every 10 minutes. The delay of a given attempt is therefore the minimum time, and the actual sending happens at the first job run after the delay has passed.
Response evaluation:
A message is delivered in at most five attempts, with delays of 2, 4, 8 and 16 minutes between them. When all attempts are used up, it gets the Dead letter status and is not sent any more.
If your endpoint responds, for example, with 401 because of misconfigured authentication, the message becomes undeliverable right on the first attempt and no retry follows. (In the OAuth2 mode, TSC first tries once more with a fresh token.) After fixing the configuration, resend the messages manually from the Webhook delivery log.
The Administration → Webhook delivery log page lists the individual messages sent. You can filter them by subscription and status. Each record shows the status, event type, number of attempts, last HTTP status code, time of the last attempt and the text of the last error.
The Resend button returns the message to the queue. Use it after an outage on your side has been resolved or after fixing the authentication settings.
Before looking for the cause, check the Webhook delivery log – the status, HTTP status code and text of the last error usually tell you the most.
invalid_client{tenantId} with the real directory (tenant) ID. Otherwise the subscription cannot be saved.eventId.X-TSC-Timestamp age check.eventId.The following values are fixed in TSC and cannot be changed in the subscription settings.
If you have questions about the configuration or the content of individual events, contact TSC support.