HTTP interceptor and API client for request modification, mocking, and debugging.
Claim your free access at GitHub Education Pack - look for Requestly.
- App: https://app.requestly.io
- Settings: https://app.requestly.io/settings
- Request Modification: Redirect URLs, modify headers
- API Mocking: Mock API responses without backend
- Request Blocking: Block specific requests
- API Client: Test APIs (Postman alternative)
- Session Recording: Debug production issues
- GraphQL Support: Schema introspection, auto-complete
Download from https://requestly.io/desktop/
// Rule: Redirect API to local
Source: https://api.production.com/*
Destination: http://localhost:3001/$1// Add auth header to all requests
Header: Authorization
Value: Bearer your_token_here// Return mock data without backend
URL: https://api.example.com/users
Response: {
"users": [
{ "id": 1, "name": "John" },
{ "id": 2, "name": "Jane" }
]
}Copy from templates/requestly/:
requestly-rules.json- Exportable rules
- Create rules in Requestly
- Select rules → Export as JSON
- Share with team or commit to repo
- Team members import the JSON
{
"name": "Local API Development",
"source": {
"operator": "Contains",
"value": "api.production.com"
},
"destination": "http://localhost:3001"
}{
"name": "Add CORS Headers",
"headers": [
{
"header": "Access-Control-Allow-Origin",
"value": "*",
"type": "response"
}
]
}{
"name": "Block Analytics",
"source": {
"operator": "Contains",
"value": "google-analytics.com"
},
"action": "block"
}{
"name": "Simulate Slow Network",
"source": {
"operator": "Contains",
"value": "/api/"
},
"delay": 2000
}- Open API Client tab
- Create new request
- Set method, URL, headers, body
- Send and inspect response
// Pre-request: Set dynamic values
pm.request.headers.add({
key: "X-Timestamp",
value: Date.now().toString()
});
// Post-request: Log response
console.log(pm.response.json());- Organize rules: Group by project or feature
- Use environments: Separate dev/staging/prod configs
- Share with team: Export and commit rules to repo
- Disable in production: Turn off rules when testing prod
- Mock during frontend dev: Don't wait for backend
- Enable Session Recording
- Reproduce the issue
- Share session link with team
- Debug network requests and responses