Skip to main content
Telemax webhooks push alert event payloads to a URL you control the moment an alert fires. No polling required.

How it works

  1. Create a webhook via POST /v2/api/webhooks. You receive a plaintext HMAC secret in the response — save it securely, it is returned only once.
  2. Link one or more alert configurations to the webhook (via alertIds on creation, or later via POST /v2/api/webhooks/{id}/link-alert). Alternatively, set isGlobal: true to receive all alerts for your company.
  3. When a linked alert fires, Telemax sends an HTTP POST to your URL with a signed JSON payload.

Payload shape

Type-specific data payloads

The data field carries additional context depending on alertType: Geofence
Ignition
Low battery
Speeding
For all other alert types, data is null.

Supported alert types

Webhooks can be linked to alert configurations with the following type IDs (as returned by GET /v2/api/companies/{id}/alerts): 1, 2, 5, 8, 9, 10. A maximum of 50 alert configurations can be linked to a single webhook.

Request headers

Every delivery includes two headers:

Verifying the signature

Compute HMAC-SHA256(secret, rawBody) and compare the hex digest to the value after sha256= in X-Telemax-Signature. Always compare using a constant-time function to prevent timing attacks.

Global vs alert-scoped webhooks

When multiple alert types are linked to one webhook, data will have different structures per delivery. The alertType field tells you which shape to expect. Consider using one webhook per alert type for simpler integration.

Delivery retries

Telemax retries failed deliveries (non-2xx response or connection error) with exponential backoff. Respond with a 2xx status as quickly as possible — perform any heavy processing asynchronously. Idempotency is guaranteed via X-Telemax-Delivery: the same UUID will not be delivered more than once per attempt window.

Managing webhooks

Create

POST /v2/api/webhooks

List

GET /v2/api/webhooks

Get

GET /v2/api/webhooks/

Update

PUT /v2/api/webhooks/

Delete

DELETE /v2/api/webhooks/

Link alert

POST /v2/api/webhooks//link-alert