API · Webhooks Beta
Signature verification
Header X-Uplaceno-Potpis: t=<unix>,v1=<hex> (two v1= values may appear when rotating secrets). Signature = HMAC-SHA256 of endpoint secret over "<t>.<raw body>" (body as received bytes).
Acceptance rules
- Reject
tolder than 5 minutes (small clock skew allowed). - For the same
id_dogadjaja, process only once (idempotent); HTTP retries reuse the same ID. - Respond with
2xxquickly and process asynchronously; event order is not guaranteed.
Node.js, Python, PHP
Code samples above match the Serbian page (same algorithms). Parse the raw body before JSON; verify against live and sandbox secrets separately.