Find all
Parameter | Default | Values / Description |
---|---|---|
filter[eventId] | number | |
page[size] | 50 | Maximum number of results |
page[number] | 1 | Page number |
- JavaScript
- curl
const Confetti = require('confetti')
const confetti = new Confetti({ apiKey: 'your-key' })
const webhooks = await confetti.webhooks.findAll()
Result
[
{
"type": "ticket.attending",
"url": "http://foo.com/bar",
"provider": "zapier",
"status": "active",
"createdAt": "2020-02-29T15:12:12.435Z",
"updatedAt": "2020-02-29T15:12:12.435Z",
"id": "1"
},
{
"type": "ticket.attending",
"url": "http://foo.com/bar",
"provider": "zapier",
"status": "active",
"createdAt": "2020-02-29T15:12:12.435Z",
"updatedAt": "2020-02-29T15:12:12.435Z",
"id": "1"
}
]
curl "https://api.confetti.events/webhooks"
-H "Authorization: apikey your-key"
Result
{
"data": [
{
"id": "1",
"type": "webhook",
"attributes": {
"type": "ticket.attending",
"url": "http://foo.com/bar",
"provider": "zapier",
"status": "active",
"createdAt": "2020-02-29T15:12:12.435Z",
"updatedAt": "2020-02-29T15:12:12.435Z"
}
},
{
"id": "1",
"type": "webhook",
"attributes": {
"type": "ticket.attending",
"url": "http://foo.com/bar",
"provider": "zapier",
"status": "active",
"createdAt": "2020-02-29T15:12:12.435Z",
"updatedAt": "2020-02-29T15:12:12.435Z"
}
}
]
}