Get a source's webhook events
GET
/v1/sources/:id/webhook_events
curl "https://api.summerbase.com/v1/sources/:id/webhook_events" \ -H "Authorization: Bearer sb_..."const response = await fetch("https://api.summerbase.com/v1/sources/:id/webhook_events", { headers: { Authorization: "Bearer sb_...", },})const data = await response.json()The events a webhook endpoint at the source’s webhook_url has to
select, for one installed by hand. None for a source whose provider
posts no webhooks.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
The source’s slug — stripe — or its Summerbase id.
Example
0198f1a3-0b7c-7e25-9f41-6a2d8c3e5b19Response
Section titled “Response”Returns the names of the events a webhook endpoint for this source has to select, in events. The list is empty for a source whose provider sends no webhooks.
Media typeapplication/json
object
events
required
The provider’s names for the events, as its webhook settings list them.
Array<string>
Example
{ "events": [ "string" ]}