Inspect a bin and the requests it captured
GET
https://api.testingapis.com/api/webhooks/bins/{id}Shows up to 50 requests, newest first. Each includes method, path, query, headers, body and client IP.
Parameters 1
| Name | Type | Description |
|---|---|---|
idrequired | path · string | Bin id. |
Responses
- 200
- The bin and its captured requests.
- 404
- No bin with that id.
Example
Request
curl -X GET "https://api.testingapis.com/api/webhooks/bins/cbaa7309f444"Response200 OK
{
"id": "cbaa7309f444",
"name": "docs-demo",
"createdAt": "2026-09-30T18:26:35Z",
"url": "https://api.testingapis.com/api/webhooks/cbaa7309f444",
"requestCount": 0,
"requests": []
}Code examples
JavaScript (fetch)
const response = await fetch("https://api.testingapis.com/api/webhooks/bins/cbaa7309f444");
console.log(response.status, await response.text());Python (requests)
import requests
response = requests.request(
"GET",
"https://api.testingapis.com/api/webhooks/bins/cbaa7309f444",
allow_redirects=False,
)
print(response.status_code, response.text)Java (HttpClient)
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class Main {
public static void main(String[] args) throws Exception {
HttpClient client = HttpClient.newBuilder()
.followRedirects(HttpClient.Redirect.NEVER)
.build();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://api.testingapis.com/api/webhooks/bins/cbaa7309f444"))
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.statusCode() + " " + response.body());
}
}