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
Retrieve
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){
"webhookEvent": {
"id": "id",
"attempts": [
{
"responseStatusCode": 0,
"sentAt": "sentAt"
}
],
"createdAt": "createdAt",
"endpointId": "endpointId",
"payload": {},
"sentAt": "sentAt",
"status": "created",
"type": "*",
"updatedAt": "updatedAt"
}
}Returns Examples
{
"webhookEvent": {
"id": "id",
"attempts": [
{
"responseStatusCode": 0,
"sentAt": "sentAt"
}
],
"createdAt": "createdAt",
"endpointId": "endpointId",
"payload": {},
"sentAt": "sentAt",
"status": "created",
"type": "*",
"updatedAt": "updatedAt"
}
}