URL-Based Routing
The Bloom proxy uses a simple pass-through URL format. Simply prepend your proxy domain to any API URL:Examples
| Target API URL | Proxy URL |
|---|---|
https://api.openai.com/v1/chat/completions | https://iam.bloomtechnologies.app/https://api.openai.com/v1/chat/completions |
https://google.serper.dev/search | https://iam.bloomtechnologies.app/https://google.serper.dev/search |
https://api.github.com/user | https://iam.bloomtechnologies.app/https://api.github.com/user |
- Extracts the base URL (e.g.,
https://api.openai.com/v1) - Matches it to your configured integrations
- Routes the request with proper authentication
Request Validation Flow
For each request, the proxy performs these validation steps:Extract Target URL
Extracts the full target URL from the proxy path (e.g., “https://api.openai.com/v1/chat/completions”)
Match Integration
Matches the base URL to a configured integration (e.g., “https://api.openai.com/v1” → OpenAI integration)
Example Flow
When you make a request tohttps://iam.bloomtechnologies.app/https://api.openai.com/v1/chat/completions:
Step 1: URL Parsing
Step 1: URL Parsing
Proxy extracts the target URL: “https://api.openai.com/v1/chat/completions”
Base URL: “https://api.openai.com/v1”
Path: “chat/completions”
Step 2: Integration Lookup
Step 2: Integration Lookup
Finds your integration by matching base URL “https://api.openai.com/v1”
Step 3: Scope Validation
Step 3: Scope Validation
Checks if your agent has scopes configured for this integration
Step 4: Permission Check
Step 4: Permission Check
Validates the POST method and “chat/completions” path are allowed
Step 5: Proxy Request
Step 5: Proxy Request
Uses your stored OpenAI API key to make the actual request
Step 6: Response
Step 6: Response
Returns the response back to your agent
Common Routing Patterns
Benefits of URL-Based Routing
No Configuration Changes
Use any API without manually configuring service names. Just add your integration’s credentials.
Works with Any SDK
Change the
baseURL parameter in any SDK to point to the proxy - no other code changes needed.Self-Documenting
The URL itself shows which API is being called - no need to memorize service names.
Instant Integration
Add a new API integration and start using it immediately without waiting for new routing rules.