Authentication
Requires a valid access token in the Authorization header.
Path Parameters
The UUID of the tunnel to retrieve request logs for. Must belong to the authenticated user.
Query Parameters
ISO 8601 timestamp to retrieve logs after this time (exclusive). Defaults to returning the most recent logs if not specified.
Maximum number of logs to return. Must be between 1 and 500. Defaults to 200.
Response
Returns an array of request log entries ordered by ingestion time (most recent first).
ISO 8601 timestamp when the log entry was ingested by the API.
ISO 8601 timestamp when the request started.
HTTP method (e.g., “GET”, “POST”, “PUT”).
Request path (e.g., “/api/users”).
HTTP status code (e.g., 200, 404, 500).
Request duration in milliseconds.
Number of bytes in the response body, or null if unavailable.
Whether the request resulted in an error.
Protocol used: either "http" or "ws" (WebSocket).
Request logs are retained for 24 hours. Logs older than 24 hours are automatically pruned.
Use the after parameter to paginate through logs by passing the ingestedAt timestamp of the last log from the previous response.
Example Request
curl -X GET "https://api.rs-tunnel.example.com/v1/tunnels/550e8400-e29b-41d4-a716-446655440000/requests?limit=100" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"
Example Response
[
{
"ingestedAt": "2024-03-15T10:32:45.123Z",
"startedAt": "2024-03-15T10:32:44.890Z",
"method": "GET",
"path": "/api/users",
"statusCode": 200,
"durationMs": 42.5,
"responseBytes": 1024,
"error": false,
"protocol": "http"
},
{
"ingestedAt": "2024-03-15T10:32:45.100Z",
"startedAt": "2024-03-15T10:32:44.850Z",
"method": "POST",
"path": "/api/orders",
"statusCode": 500,
"durationMs": 150.2,
"responseBytes": null,
"error": true,
"protocol": "http"
},
{
"ingestedAt": "2024-03-15T10:32:44.980Z",
"startedAt": "2024-03-15T10:32:44.700Z",
"method": "GET",
"path": "/ws",
"statusCode": 101,
"durationMs": 1250.8,
"responseBytes": 8192,
"error": false,
"protocol": "ws"
}
]
Error Responses
Human-readable error message.
Additional error details, if available.
Common Errors
- 400 INVALID_TUNNEL_ID: Tunnel identifier is missing or malformed
- 400 INVALID_INPUT: Invalid
after timestamp format
- 404 TUNNEL_NOT_FOUND: The tunnel does not exist or does not belong to the authenticated user
- 401 UNAUTHORIZED: Missing or invalid access token