List
client.projects.webhookEndpoints.list(stringprojectID, RequestOptionsoptions?): WebhookEndpointListResponse { webhookEndpoints }
GET/projects/{projectId}/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 webhookEndpoints = await client.projects.webhookEndpoints.list('projectId');
console.log(webhookEndpoints.webhookEndpoints);{
"webhookEndpoints": [
{
"id": "id",
"createdAt": "createdAt",
"enabled": true,
"enabledEvents": [
"*"
],
"nbFailedCalls": 0,
"nbTotalCalls": 0,
"ownerId": "ownerId",
"ownerType": "project",
"updatedAt": "updatedAt",
"url": "url",
"description": "description"
}
]
}Returns Examples
{
"webhookEndpoints": [
{
"id": "id",
"createdAt": "createdAt",
"enabled": true,
"enabledEvents": [
"*"
],
"nbFailedCalls": 0,
"nbTotalCalls": 0,
"ownerId": "ownerId",
"ownerType": "project",
"updatedAt": "updatedAt",
"url": "url",
"description": "description"
}
]
}