Get request history
GET/v2/endpoints/:endpoint/requests
Retrieves a paginated, searchable list of HTTP requests received by the mock server. Each request log contains metadata about the incoming request, the generated response, and how Beeceptor processed it.
Purpose
The Request History API enables:
- Debugging API integrations by inspecting request/response payloads
- Auditing API traffic patterns and usage
- Verifying webhook deliveries and payload contents
- Analyzing which mock rules matched incoming requests
How Request Logging Works
When a request arrives at a Beeceptor endpoint, the following information is captured:
- Request Metadata: HTTP method, path, timestamp, source IP
- Request Details: Headers, body content, HTTP version
- Processing Information: Which rule matched (if any), processing time, behavior type
- Response Details: Status code, headers, body content
- Callout Information: If the request was proxied, details of the upstream request/response
Behavior Types
Each logged request includes a behavior field indicating how it was processed:
| Behavior | Description |
|---|---|
mock-rule | Matched a user-defined mock rule |
proxy | Forwarded to upstream proxy target |
callout | Triggered an HTTP callout (sync or async) |
grpc | Processed as a gRPC request |
wsdl | Matched a SOAP/WSDL operation |
graphql | Processed as a GraphQL request |
tunnel | Forwarded to local machine via tunnel |
oas | Generated response from OpenAPI specification |
Response Modes
Compact Mode (Default)
Returns basic request information optimized for listing and overview:
id,date,method,path,status,timeTakenrule: Whether a rule matched and which rule IDbehavior: How the request was processed
Verbose Mode (mode=verbose)
Returns complete request and response details for debugging:
- All compact mode fields
request: Full request body, headers, HTTP versionresponse: Full response body, headers, HTTP versioncallout: If proxied, includes target request/response detailsmultipartData: Metadata for file uploads (file content available via download endpoint)
Pagination
Uses cursor-based pagination for efficient traversal of large datasets:
- Default page size: 20 requests
- Maximum page size: 100 requests
- Results are sorted by date descending (newest first)
- Use the
cursorfrom the response to fetch the next page - Continue until
pagination.hasMoreisfalse
Filtering Capabilities
Multiple filters can be combined to narrow down results:
Time-Based Filters:
dateFrom/dateTo: ISO 8601 timestamps for absolute date rangedateRange: Relative duration (e.g., '1h', '24h', '7d')
Request Filters:
method: HTTP method (GET, POST, PUT, DELETE, PATCH)path: Path substring or regex patternstatus: Response status code (200-599)requestBody: Search within request body and multipart field namesresponseBody: Search within response body
Processing Filters:
behavior: How the request was handledruleMatched: Whether a mock rule matched (true/false)isMultipart: Requests with file uploads
Multipart/Form-Data Handling
For requests containing file uploads:
- File metadata (field name, file name, content type, size) is included in verbose mode
- Actual file content is stored separately and available via the download endpoint
- Search by field name or file name using the
requestBodyfilter
Data Retention
- Request history is retained for up to 10 days
- Older requests are automatically purged
- Use the DELETE endpoint to manually clean up old requests
Sensitive Data Handling
If header masking is enabled in endpoint settings:
- Sensitive headers (Authorization, API keys, etc.) are redacted
redacted: trueflag indicates data was masked
Request
Responses
- 200
- 400
- 401
- 404
Request history retrieved successfully. Response format:
- Without
requestIdpath parameter: Returns paginated array with cursor-based pagination - With
requestIdpath parameter: Returns single RequestLog object directly
Bad Request - Invalid query parameters or filter values
Unauthenticated - API key is missing or invalid.
Not Found - Returned when fetching by requestId and request not found