Advanced Route Configuration
Take full control of your API routing with advanced configuration options including header injection, body injection, method-specific behaviors, and secret injection.Header Injection
Automatically add or modify headers on all requests forwarded to your backend.Static Headers
Add fixed headers to every request:- Edit route → Config tab → Header Injection section
- Add headers in JSON format
- Save
Secret Injection in Headers
Inject encrypted secrets as headers using the{{secret:name}} syntax:
- Retrieves secret from encrypted vault
- Decrypts at request time
- Injects into header
- Never logs the actual value
{{secret_id:uuid}} syntax.
Multiple Secrets
Use multiple secrets in a single header configuration:Body Injection
Inject fields into JSON request bodies. This merges your injected fields with the client’s original request body.Static Fields
Add fixed fields:Secret Injection in Body
Inject secrets into request bodies:Nested Field Injection
Inject into nested structures:Method-Specific Configuration
Configure different behaviors per HTTP method. This lets you use different credentials and settings for reads vs. writes.Setup
- Edit route → Config tab → Method Configurations section
- Add configuration for each method
- Configure headers, body, secrets per method
Example: Read/Write Separation
GET requests — read-only key:Benefits
- Security: Use different credentials per action
- Rate Limiting: Restrict writes more than reads
- Auditing: Track who performs each action type
- Compliance: Enforce stricter rules on destructive operations
Environment Overrides
Configure different target URLs, headers, and secrets per environment. This is managed from the Environment tab on the route detail page.How It Works
Base route (production):NULL values inherit from the base configuration.
See Environments for a full guide.
Best Practices
1. Always Use Secrets for Sensitive Data
❌ Bad:2. Use Method-Specific Configs
Different security for different operations:3. Test in Staging First
Always verify configuration changes in a staging environment before deploying to production.4. Keep Header Injection Simple
Only inject headers your backend actually needs. Don’t add unnecessary headers that could cause conflicts.Next Steps
Method-Specific Config
Deep dive into method configs
Secret Management
Learn about secrets
Rate Limiting
Configure rate limits
Request Signing
Add signature verification
📊 Statistics
- Level: advanced
- Time: 15 minutes
🏷️ Tags
advanced, configuration, headers, body-injection, secrets