Webhooks
List webhooks
client.webhooks.list(WebhookListParams { teamId } params?, RequestOptionsoptions?): WebhookListResponse { data }
GET/v2/webhooks/{teamId}
Create a webhook
client.webhooks.create(WebhookCreateParams { teamId, name, url, 2 more } params, RequestOptionsoptions?): WebhookWithSecret { secret, verification }
POST/v2/webhooks/{teamId}
Get a webhook
client.webhooks.get(stringwebhookID, WebhookGetParams { teamId } params?, RequestOptionsoptions?): Webhook { id, created_at, enabled, 8 more }
GET/v2/webhooks/{teamId}/{webhookId}
Update a webhook
client.webhooks.update(stringwebhookID, WebhookUpdateParams { teamId, description, enabled, 2 more } params, RequestOptionsoptions?): WebhookUpdateResponse { verification }
PATCH/v2/webhooks/{teamId}/{webhookId}
Delete a webhook
client.webhooks.delete(stringwebhookID, WebhookDeleteParams { teamId } params?, RequestOptionsoptions?): void
DELETE/v2/webhooks/{teamId}/{webhookId}
Re-run verification
client.webhooks.verify(stringwebhookID, WebhookVerifyParams { teamId } params?, RequestOptionsoptions?): WebhookVerifyResponse { verification }
POST/v2/webhooks/{teamId}/{webhookId}/verify
Send a test event
client.webhooks.ping(stringwebhookID, WebhookPingParams { teamId, data, event } params?, RequestOptionsoptions?): WebhookPingResponse { dispatched, event, webhook_id }
POST/v2/webhooks/{teamId}/{webhookId}/ping
List team deliveries
client.webhooks.listDeliveries(WebhookListDeliveriesParams { teamId, cursor, limit, 2 more } params?, RequestOptionsoptions?): WebhookListDeliveriesResponse { data, next_cursor }
GET/v2/webhooks/{teamId}/deliveries
WebhooksDeliveries
List webhook deliveries
client.webhooks.deliveries.list(stringwebhookID, DeliveryListParams { teamId, after, before, 4 more } params?, RequestOptionsoptions?): DeliveryListResponse { data, next_cursor }
GET/v2/webhooks/{teamId}/{webhookId}/deliveries
Get a delivery
client.webhooks.deliveries.get(stringdeliveryID, DeliveryGetParams { teamId, webhookId } params, RequestOptionsoptions?): WebhookDeliveryDetail { attempt_history }
GET/v2/webhooks/{teamId}/{webhookId}/deliveries/{deliveryId}