Retrieve a Webhook
GET
/v1/webhooks/:id
Retrieves the webhook with the given ID.
curl "https://api.lemonsqueezy.com/v1/webhooks/1" \
-H 'Accept: application/vnd.api+json' \
-H 'Content-Type: application/vnd.api+json' \
-H 'Authorization: Bearer {api_key}'
Returns
Returns a Webhook object.
{
"jsonapi": {
"version": "1.0"
},
"links": {
"self": "https://api.lemonsqueezy.com/v1/webhooks/1"
},
"data": {
"type": "webhooks",
"id": "1",
"attributes": {
"store_id": 1,
"url": "https://mysite.com/webhooks/",
"events": [
"order_created",
"subscription_created",
"subscription_updated",
"subscription_expired"
],
"last_sent_at": "2022-11-22T07:38:06.000000Z",
"created_at": "2022-06-07T08:32:47.000000Z",
"updated_at": "2022-06-07T08:32:47.000000Z",
"test_mode": false
},
"relationships": {
"store": {
"links": {
"related": "https://api.lemonsqueezy.com/v1/webhooks/1/store",
"self": "https://api.lemonsqueezy.com/v1/webhooks/1/relationships/store"
}
}
},
"links": {
"self": "https://api.lemonsqueezy.com/v1/webhooks/1"
}
}
}