List
client.teams.webhookEndpoints.events.list(stringwebhookEndpointID, EventListParams { teamId, paginationToken } params, RequestOptionsoptions?): EventListResponse { items, nextPaginationToken }
GET/teams/{teamId}/webhook-endpoints/{webhookEndpointId}/events
List the delivery events of one of the team’s webhook endpoints
List
import Scenario from '@scenario-labs/sdk';
const client = new Scenario({
apiKey: process.env['SCENARIO_SDK_API_KEY'], // This is the default and can be omitted
apiSecret: process.env['SCENARIO_SDK_API_SECRET'], // This is the default and can be omitted
});
const events = await client.teams.webhookEndpoints.events.list('webhookEndpointId', {
teamId: 'teamId',
});
console.log(events.items);{
"items": [
{
"id": "id",
"endpointId": "endpointId",
"status": "created",
"type": "*",
"updatedAt": "updatedAt"
}
],
"nextPaginationToken": "nextPaginationToken"
}Returns Examples
{
"items": [
{
"id": "id",
"endpointId": "endpointId",
"status": "created",
"type": "*",
"updatedAt": "updatedAt"
}
],
"nextPaginationToken": "nextPaginationToken"
}