Docs
Public URLs ›

Proxy host route

GET/v1/host-routes/{id}/proxy

Proxy host route.

Requestcurl
  1. curl https://agental.io/v1/host-routes/sbx_2a9a47e50daec64a/proxy \
  2. -H "Authorization: Bearer $AGENTAL_API_KEY"
Answer200 OK

No JSON body.

Proxied response from 127.0.0.1 on the registered port.

Path

idrequired
string

Headers

Authorizationrequired
Bearer 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.