## Retrieve

**get** `/teams/{teamId}/webhook-endpoints/{webhookEndpointId}/events/{eventId}`

Retrieve one delivery event of one of the team's webhook endpoints

### Path Parameters

- `teamId: string`

- `webhookEndpointId: string`

- `eventId: string`

### Returns

- `webhookEvent: object { id, attempts, createdAt, 6 more }`

  - `id: string`

  - `attempts: array of object { responseStatusCode, sentAt }`

    - `responseStatusCode: number`

    - `sentAt: string`

  - `createdAt: string`

  - `endpointId: string`

  - `payload: unknown`

  - `sentAt: string`

  - `status: "created" or "failed" or "retrying" or "success"`

    - `"created"`

    - `"failed"`

    - `"retrying"`

    - `"success"`

  - `type: "*" or "asset.download.completed" or "asset.download.created" or 16 more`

    Every event a webhook endpoint can subscribe to: a project endpoint takes the
    job lifecycle events, a team endpoint takes the alert events.

    - `"*"`

    - `"asset.download.completed"`

    - `"asset.download.created"`

    - `"asset.download.failed"`

    - `"generation.completed"`

    - `"generation.created"`

    - `"generation.failed"`

    - `"inference.cancelled"`

    - `"inference.completed"`

    - `"inference.created"`

    - `"inference.failed"`

    - `"model.download.completed"`

    - `"model.download.created"`

    - `"model.download.failed"`

    - `"model.training.cancelled"`

    - `"model.training.completed"`

    - `"model.training.failed"`

    - `"model.training.started"`

    - `"team.credit.threshold.crossed"`

  - `updatedAt: string`

### Example

```http
curl https://api.cloud.scenario.com/v1/teams/$TEAM_ID/webhook-endpoints/$WEBHOOK_ENDPOINT_ID/events/$EVENT_ID \
    -u "$SCENARIO_SDK_API_KEY:SCENARIO_SDK_API_SECRET"
```

#### Response

```json
{
  "webhookEvent": {
    "id": "id",
    "attempts": [
      {
        "responseStatusCode": 0,
        "sentAt": "sentAt"
      }
    ],
    "createdAt": "createdAt",
    "endpointId": "endpointId",
    "payload": {},
    "sentAt": "sentAt",
    "status": "created",
    "type": "*",
    "updatedAt": "updatedAt"
  }
}
```
