Capture any request sent to a bin
GETPOSTPUTPATCHDELETEHEADOPTIONS
https://api.testingapis.com/api/webhooks/{binId}/{rest}Sign in to see this endpoint's URLAccepts GET, POST, PUT, PATCH, DELETE, HEAD and OPTIONS. Text bodies are stored as UTF-8; other bodies are stored as base64. Bodies over 256KB are truncated (bodyTruncated: true). No outbound calls are ever made.
Parameters 3
| Name | Type | Description |
|---|---|---|
binIdrequired | path · string | Bin id from POST /api/webhooks/bins.Bin id from POST …. |
restrequired | path · string | Optional extra path after the bin id, e.g. orders/created. It is recorded as subPath. |
status | query · integer (int32) | Status code to reply with (200-599, default 200). 204 and 304 reply without a body. Default: 200. |
Request body
Optional. application/json. Any payload; it is captured in the bin.
Responses
- 200
- Request captured (or the status chosen with status).
- 400
- status is out of range.
- 404
- No bin with that id.
Example
Request
curl -X POST "https://api.testingapis.com/api/webhooks/cbaa7309f444/github/push" \
-H "Content-Type: application/json" \
-H "X-TestingApis-Key: YOUR_API_KEY"Response200 OK
{
"received": true,
"binId": "cbaa7309f444",
"requestId": "req_ff264204fa37",
"message": "Request captured"
}Sign in to see the details
The parameters, request and response examples and the live Try it panel for this endpoint are for signed-in members. Accounts are free and take a few seconds to create.