Public URLs ›
List host routes
GET
/v1/host-routesList host routes.
RequestTypeScript
- import { Agental } from "agental-sdk";
- const agental = new Agental();
- const routes = await agental.hostRoutes();
Answer200 OK
- {
- "routes": [{
- "id": string,
- "sandboxId": string,
- "port": integer,
- "title": string,
- "public": boolean,
- "hidden": boolean,
- … 5 more
- }],
- }
Host routes.
Headers
AuthorizationrequiredBearer key | An API key that may make this call. |
Returns
200 Host routes.
JSON1 field
routesHostRoute[]11 fields
idstring
sandboxIdstring
portinteger
titlestring
publicboolean
True gives the port a public address, reported as url.
More
False keeps it behind proxyPath and your token.hiddenboolean
proxyPathstring
Path on this API that reaches the port.
More
Needs your token.registeredtrue
listeningboolean
proxyavailablenot_configured
available while the sandbox is running and its ports can be reached.
urlstringnull
Public address of the port: HTTP and WebSocket only, no token needed, and hard to guess.
More
It answers while the sandbox is running. Null when the route is not public or public addresses are off.Errors and other answers
| 404 | Not found. |
Every error answers { "error": { "code", "message" } }; a key without the action a call needs answers 403 key_action_forbidden, naming it.