Retrieve
projects.webhook_endpoints.events.retrieve(strevent_id, EventRetrieveParams**kwargs) -> EventRetrieveResponse
GET/projects/{projectId}/webhook-endpoints/{webhookEndpointId}/events/{eventId}
Retrieve one delivery event of one of the project’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.projects.webhook_endpoints.events.retrieve(
event_id="eventId",
project_id="projectId",
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"
}
}