Webhooks
Signature, parameters, an example call and the sample response for every method in this group, generated from the contract.
lid.webhooks.list
your webhook endpoints
Key permission: none (read)
lid.webhooks.list(input?, options?)
const result = await lid.webhooks.list();{
"data": [
{
"id": "e353a303-77a4-4ff3-a874-6f06c4c74e16",
"url": "https://webhook.site/79b8e74c-f058-446a-8922-a01855b948c7",
"events": [
"purchase.completed"
],
"active": true,
"failureCount": 0,
"lastDeliveryAt": "2026-09-25T14:56:41.836Z",
"createdAt": "2026-09-25T14:56:40.984Z"
}
],
"events": [
"purchase.completed",
"conversion.approved",
"prize.claimed",
"subscription.created",
"bounty.submission.created"
]
}lid.webhooks.create
register a URL for Lid to notify (returns the signing secret once)
Key permission: catalogo (catalog)
lid.webhooks.create(input, options?)
| Name | Type | Required | Source |
|---|---|---|---|
url | string | Required | body |
events | 'purchase.completed' | 'conversion.approved' | 'prize.claimed' | 'subscription.created' | 'bounty.submission.created'[] | Required | body |
const result = await lid.webhooks.create({
url: '…',
events: ['purchase.completed'],
});{
"endpoint": {
"id": "340c2c05-fd26-4063-bd49-acccfadfa8c4",
"url": "https://webhook.site/79b8e74c-f058-446a-8922-a01855b948c7",
"events": [
"purchase.completed",
"conversion.approved"
],
"active": true,
"failureCount": 0,
"lastDeliveryAt": null,
"createdAt": "2026-09-26T17:06:00.790Z"
},
"secret": "[redacted]",
"message": "Guardá este secret: se muestra una sola vez. Verificá x-lid-signature = sha256=hex(hmac_sha256(secret, `${x-lid-timestamp}.${rawBody}`))."
}lid.webhooks.delete
stop notifying that endpoint
Key permission: catalogo (catalog)
lid.webhooks.delete(input, options?)
| Name | Type | Required | Source |
|---|---|---|---|
id | string | Required | path |
const result = await lid.webhooks.delete({
id: '…',
});{
"id": "340c2c05-fd26-4063-bd49-acccfadfa8c4",
"deleted": true
}lid.webhooks.deliveries
recent deliveries with their status code, for debugging
Key permission: none (read)
lid.webhooks.deliveries(input, options?)
| Name | Type | Required | Source |
|---|---|---|---|
id | string | Required | path |
limit | number | Optional | query |
const result = await lid.webhooks.deliveries({
id: '…',
});{
"data": [
{
"id": "57179ecf-3828-495f-b58c-3936b11965f3",
"event": "webhook.test",
"statusCode": 200,
"success": true,
"attempts": 1,
"error": null,
"createdAt": "2026-09-26T17:06:01.570Z"
}
]
}lid.webhooks.test
fire a test event at that endpoint
Key permission: catalogo (catalog)
lid.webhooks.test(input, options?)
| Name | Type | Required | Source |
|---|---|---|---|
id | string | Required | path |
const result = await lid.webhooks.test({
id: '…',
});{
"enqueued": true,
"event": "webhook.test"
}