Skills, MCP and apps / Apps and webhooks
Read and resend webhook deliveries
Your service missed an event, or answered with an error, and you want to see what Source sent and what your service answered. Each request that Source sends is a delivery: read it in the deliveries table, then send it again when your service works.
2 min read
You need:
- Admin access to the repository.
- A webhook on the repository.
1. Open the deliveries
- Open the repository, then Settings, then Webhooks.
- On the row of the webhook, click Deliveries. The table shows the event, the state, the HTTP status, the tries and when the delivery was made.
- Click Details on a delivery. It shows the request body, the answer of your receiver and the error, if there is one.
In a terminal:
src webhook deliveries <id>
src webhook deliveries <id> --json event,action,status,statusCode,error
src webhook list shows the id of each webhook.
2. Read the state
| State | What it means |
|---|---|
| Delivered | Your receiver answered with a 2xx status. |
| Pending | The delivery waits for its next try. |
| Failed | All 8 tries failed. |
A failed try is tried again 1 minute, 5 minutes, 30 minutes, 2 hours, 6 hours, 12 hours and 24 hours after the delivery was made. Source keeps the last 50 finished deliveries of each webhook.
3. Send a delivery again
Your receiver was down, and you fixed it. Send the missed delivery again:
- On the web, click Redeliver on the delivery, in the deliveries table.
- In a terminal, run
src webhook redeliver <id> <delivery-id>.
Source sends the same body as a new delivery, with a new delivery id. The webhook must be on.
Done
The deliveries show what Source sent and what your service answered. A delivery that failed is tried again, and you can send it again yourself.