Notifications to your system (webhooks)
Receive a signed POST when one of your dealership's cars changes or a quote comes in, and verify it comes from Cliquéalo.
Instead of asking every few minutes whether something changed, add an https address of your system in the console and
choose what to be notified about. How many addresses you can have depends on your plan.
Add an address
In the console, go to «Avisos a tu sistema» and tap «Nueva dirección» ("New address"). When you save it we
show you the signing secret (whsec_…) only once: store it on your server.
Events
| Event | When it arrives |
|---|---|
publicacion.actualizada | A car's price, photos, details, or status changed. campos says what changed |
publicacion.vendida | A car was marked as sold |
publicacion.archivada | A car was archived |
publicacion.plataforma_actualizada | The other platform a car is on changed |
cotizacion.creada | A quote with a customer's details came in, through any channel |
We notify you about changes made from anywhere: the panel, Mercado Libre, your system, or the Cliquéalo team. If several things change in the same operation, you get a single notification.
What your system receives
POST /notifications/cliquealo HTTP/1.1
content-type: application/json
x-cliquealo-signature: t=1795000000,s=5f0c…
x-cliquealo-event: publicacion.actualizada
x-cliquealo-delivery: 3f2b0c1e-8a7d-4c6b-9e5f-1a2b3c4d5e6f{ "id": "3f2b0c1e-8a7d-4c6b-9e5f-1a2b3c4d5e6f", "evento": "publicacion.actualizada", "creado_en": "2026-11-26T17:00:00.000Z", "datos": { "publicacion_id": "…", "slug": "toyota-corolla-2023", "estado": "publicado", "precio_centavos": 34000000, "moneda": "MXN", "kilometraje": 16000, "campos": ["precio"] } }The id is the same on every retry: store it so you don't process the same notification twice. Read the car's full
details with GET /inventario/{slug}.
Verify the signature
s is the HMAC-SHA256, in hexadecimal, of t, a dot, and the body exactly as it arrived, keyed with your full
signing secret. Reject the notification if the signature doesn't match or if t is more than 5 minutes old.
import { createHmac, timingSafeEqual } from "node:crypto";
export function verifySignature(body, header, secret, toleranceSeconds = 300) {
const parts = Object.fromEntries(header.split(",").map((p) => p.trim().split("=")));
const t = Number(parts.t);
if (!Number.isInteger(t) || !/^[0-9a-f]{64}$/.test(parts.s ?? "")) return false;
if (Math.abs(Math.floor(Date.now() / 1000) - t) > toleranceSeconds) return false;
const expected = createHmac("sha256", secret).update(`${t}.${body}`).digest();
return timingSafeEqual(expected, Buffer.from(parts.s, "hex"));
}Read the body as text before parsing it as JSON: if you serialize it again, the signature won't match.
Responses and retries
- Respond 2xx within 10 seconds; process the notification afterward if it takes longer.
- If you respond 5xx, 408, or 429, or don't respond, we retry after 30 seconds, 2 minutes, 10 minutes, 30 minutes, and 2 hours. After that the notification shows «Falló» ("Failed") in the console.
- If you respond with another 4xx (or a redirect), we don't retry: we take it as a rejection.
- We only send to
httpsaddresses with a valid certificate, on the internet.
In the console, each address shows its latest deliveries, your system's response, and the attempts.