Webhooks
Set the webhook
PUT
Sets the URL and/or format. The signing secret is made on first use and kept when the URL changes; rotateSecret makes a new one.
header
AuthorizationBearer <token>Authorization: Bearer lsk_live_…
application/json- body
url?stringAn https URL.
Format
uriformat?stringValue in
"lastscanned""17track"rotateSecret?booleanThe webhook.
application/json- response
url?string|nullsecret?|Signs every request: Lastscanned-Signature: t=<unix>,v1=<HMAC-SHA256 of "t.body">.
format?stringValue in
"lastscanned""17track"curl -X PUT 'https://api.lastscanned.com/v1/webhook' \ -H 'Content-Type: application/json' \ -d '{ "url": "https://example.com/hooks/tracking", "format": "lastscanned"}'Example Response
{ "url": "string", "secret": "string", "format": "lastscanned"}