Public URLs ›
Proxy host route
GET
/v1/host-routes/{id}/proxyProxy host route.
Requestcurl
- curl https://agental.io/v1/host-routes/sbx_2a9a47e50daec64a/proxy \
- -H "Authorization: Bearer $AGENTAL_API_KEY"
Answer200 OK
No JSON body.
Proxied response from 127.0.0.1 on the registered port.
Path
idrequiredstring |
Headers
AuthorizationrequiredBearer key | An API key that may make this call. |
Returns
200 Proxied response from 127.0.0.1 on the registered port.
Errors and other answers
| 404 | Not found. |
| 501 | This sandbox's ports cannot be proxied through the API. |
| 503 | The route is registered and nothing is listening. |
Every error answers { "error": { "code", "message" } }; a key without the action a call needs answers 403 key_action_forbidden, naming it.