Skip to content
Get started

Retrieve

GET/teams/{teamId}/webhook-endpoints/{webhookEndpointId}/events/{eventId}

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

Path ParametersExpand Collapse
teamId: string
webhookEndpointId: string
eventId: string
ReturnsExpand Collapse
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"
One of the following:
"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.

One of the following:
"*"
"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

Retrieve

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"
{
  "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"
  }
}