## Retrieve

`teams.webhook_endpoints.events.retrieve(strevent_id, EventRetrieveParams**kwargs)  -> EventRetrieveResponse`

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

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

### Parameters

- `team_id: str`

- `webhook_endpoint_id: str`

- `event_id: str`

### Returns

- `class EventRetrieveResponse: …`

  - `webhook_event: WebhookEvent`

    - `id: str`

    - `attempts: List[WebhookEventAttempt]`

      - `response_status_code: float`

      - `sent_at: str`

    - `created_at: str`

    - `endpoint_id: str`

    - `payload: object`

    - `sent_at: str`

    - `status: Literal["created", "failed", "retrying", "success"]`

      - `"created"`

      - `"failed"`

      - `"retrying"`

      - `"success"`

    - `type: Literal["*", "asset.download.completed", "asset.download.created", 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"`

    - `updated_at: str`

### Example

```python
import os
from scenario_sdk import Scenario

client = Scenario(
    api_key=os.environ.get("SCENARIO_SDK_API_KEY"),  # This is the default and can be omitted
    api_secret=os.environ.get("SCENARIO_SDK_API_SECRET"),  # This is the default and can be omitted
)
event = client.teams.webhook_endpoints.events.retrieve(
    event_id="eventId",
    team_id="teamId",
    webhook_endpoint_id="webhookEndpointId",
)
print(event.webhook_event)
```

#### Response

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