TestingAPIs is still being built. If something breaks, email support@testingapis.com.

Capture any request sent to a bin

GETPOSTPUTPATCHDELETEHEADOPTIONShttps://api.testingapis.com/api/webhooks/{binId}Sign in to see this endpoint's URL

Accepts 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 2

NameTypeDescription
binIdrequiredpath · stringBin id from POST /api/webhooks/bins.Bin id from POST ….
statusquery · 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.

Example body
{"event": "order.created", "id": 42}

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" \
  -H "Content-Type: application/json" \
  -d '{"event": "order.created", "id": 42}' \
  -H "X-TestingApis-Key: YOUR_API_KEY"
Response200 OK
{
  "received": true,
  "binId": "cbaa7309f444",
  "requestId": "req_bff48fcc8d8a",
  "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.