v50

latestOpenAPI 3.1.0raw.githubusercontent.com2024-10-175745153.1 KB
webhook

Resend a webhook

Use this API to resend the same webhook request. This is useful when developing and debugging, allowing you to easily repeat the same webhook to check or fix the behaviour in your handler.

post/webhook/{id}/log/{logId}/resend

Path parameters

idstring required
logIdstring required

Response

Success

idstring required
webhookIdstring required

ID of the webhook this request was made for

eventstring

The event type that triggered the webhook request

createdAtnumber

Timestamp (in milliseconds) at which webhook request object was created

durationnumber

The time taken (in seconds) to make the webhook request

successboolean

Whether the webhook request was successful

Example response

{
  "id": "de7818e7-610a-4057-8f6f-b785dc1e6f88",
  "webhookId": "de7818e7-610a-4057-8f6f-b785dc1e6f88",
  "event": "stream.started",
  "createdAt": 1587667174725,
  "duration": 0.5,
  "success": true,
  "request": {
    "url": "https://my-service.com/webhook",
    "method": "POST",
    "headers": {
      "User-Agent": "livepeer.studio"
    },
    "body": "{\"event\": \"stream.started\"}"
  }
}