## List team deliveries `client.Webhooks.ListDeliveries(ctx, params) (*WebhookListDeliveriesResponse, error)` **get** `/v2/webhooks/{teamId}/deliveries` Account-wide delivery feed across all of the team's webhooks, newest first. ### Parameters - `params WebhookListDeliveriesParams` - `TeamID param.Field[string]` Path param - `Cursor param.Field[string]` Query param: Opaque cursor from a previous response's `next_cursor`. - `Limit param.Field[int64]` Query param: Page size (1–100, default 25). - `Status param.Field[WebhookListDeliveriesParamsStatus]` Query param: Filter by outcome. - `const WebhookListDeliveriesParamsStatusSuccess WebhookListDeliveriesParamsStatus = "success"` - `const WebhookListDeliveriesParamsStatusFailed WebhookListDeliveriesParamsStatus = "failed"` - `Type param.Field[WebhookListDeliveriesParamsType]` Query param: Filter by run type. Defaults to `delivery` (event deliveries). Pass `all` to include verification handshakes. - `const WebhookListDeliveriesParamsTypeDelivery WebhookListDeliveriesParamsType = "delivery"` - `const WebhookListDeliveriesParamsTypeVerification WebhookListDeliveriesParamsType = "verification"` - `const WebhookListDeliveriesParamsTypeAll WebhookListDeliveriesParamsType = "all"` ### Returns - `type WebhookListDeliveriesResponse struct{…}` - `Data []WebhookDelivery` - `CreatedAt Time` - `DeliveryID string` - `Status WebhookDeliveryStatus` - `const WebhookDeliveryStatusSuccess WebhookDeliveryStatus = "success"` - `const WebhookDeliveryStatusFailed WebhookDeliveryStatus = "failed"` - `Type WebhookDeliveryType` - `const WebhookDeliveryTypeDelivery WebhookDeliveryType = "delivery"` - `const WebhookDeliveryTypeVerification WebhookDeliveryType = "verification"` - `WebhookID string` - `Attempts int64` Number of attempts made so far (including async retries). - `Event string` Event name (e.g. `webhook.test`); `verification` for handshake runs. - `StatusCode int64` HTTP status of the latest attempt; null on a transport error. - `TeamID string` - `UpdatedAt Time` - `URL string` - `NextCursor string` Pass as `cursor` to fetch the next page; null when there are no more. ### Example ```go package main import ( "context" "fmt" "github.com/micro-so/micro-sdk-go" "github.com/micro-so/micro-sdk-go/option" ) func main() { client := micro.NewClient( option.WithAPIKey("My API Key"), option.WithTeamID("My Team ID"), ) response, err := client.Webhooks.ListDeliveries(context.TODO(), micro.WebhookListDeliveriesParams{ }) if err != nil { panic(err.Error()) } fmt.Printf("%+v\n", response.Data) } ``` #### Response ```json { "data": [ { "created_at": "2019-12-27T18:11:19.117Z", "delivery_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e", "status": "success", "type": "delivery", "webhook_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e", "attempts": 0, "event": "event", "status_code": 0, "team_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e", "updated_at": "2019-12-27T18:11:19.117Z", "url": "url" } ], "next_cursor": "next_cursor" } ```