## Get a delivery `client.Webhooks.Deliveries.Get(ctx, webhookID, deliveryID, query) (*WebhookDeliveryDetail, error)` **get** `/v2/webhooks/{teamId}/{webhookId}/deliveries/{deliveryId}` A single delivery plus its full attempt timeline (including async retries). ### Parameters - `webhookID string` - `deliveryID string` - `query WebhookDeliveryGetParams` - `TeamID param.Field[string]` ### Returns - `type WebhookDeliveryDetail struct{…}` A delivery plus its full attempt timeline. - `AttemptHistory []WebhookDeliveryDetailAttemptHistory` - `Attempt int64` 1-based attempt number. - `CreatedAt Time` - `Status WebhookDeliveryDetailAttemptHistoryStatus` - `const WebhookDeliveryDetailAttemptHistoryStatusSuccess WebhookDeliveryDetailAttemptHistoryStatus = "success"` - `const WebhookDeliveryDetailAttemptHistoryStatusFailed WebhookDeliveryDetailAttemptHistoryStatus = "failed"` - `Error string` Failure reason, when status is failed. - `RequestBody string` Body sent to the endpoint (delivery only); may be truncated. - `ResponseBody string` Body returned by the endpoint; may be truncated. - `StatusCode int64` ### 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"), ) webhookDeliveryDetail, err := client.Webhooks.Deliveries.Get( context.TODO(), "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e", "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e", micro.WebhookDeliveryGetParams{ }, ) if err != nil { panic(err.Error()) } fmt.Printf("%+v\n", webhookDeliveryDetail) } ``` #### Response ```json { "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", "attempt_history": [ { "attempt": 0, "created_at": "2019-12-27T18:11:19.117Z", "status": "success", "error": "error", "request_body": "request_body", "response_body": "response_body", "status_code": 0 } ] } ```