curl --request GET \
--url https://api.example.com/v1/sandboxes/{sandboxId}/endpoints/{port}{
"200": {},
"401": {},
"403": {},
"404": {},
"500": {},
"endpoint": "<string>",
"headers": {},
"X-Request-ID": "<string>"
}Get public access endpoint for a service running in the sandbox
curl --request GET \
--url https://api.example.com/v1/sandboxes/{sandboxId}/endpoints/{port}{
"200": {},
"401": {},
"403": {},
"404": {},
"500": {},
"endpoint": "<string>",
"headers": {},
"X-Request-ID": "<string>"
}Get the public access endpoint URL for accessing a service running on a specific port within the sandbox. The service must be listening on the specified port inside the sandbox for the endpoint to be available.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/alibaba/OpenSandbox/llms.txt
Use this file to discover all available pages before exploring further.
false{endpoint-host}/sandboxes/{sandboxId}/port/{port}Example: endpoint.opensandbox.io/sandboxes/abc123/port/8080curl -X GET http://localhost:8080/v1/sandboxes/sandbox-abc123/endpoints/8080 \
-H "OPEN-SANDBOX-API-KEY: your-api-key"
{
"endpoint": "endpoint.opensandbox.io/sandboxes/sandbox-abc123/port/8080",
"headers": {
"X-Sandbox-Token": "token-value"
}
}
headers field of the response. These headers are required for authentication and routing to the correct sandbox.
curl http://endpoint.opensandbox.io/sandboxes/sandbox-abc123/port/8080 \
-H "X-Sandbox-Token: token-value"
use_server_proxy=true for additional security layersuse_server_proxy=true is specified, the returned endpoint URL will route through a server-side proxy for additional security and monitoring capabilities.
curl -X GET "http://localhost:8080/v1/sandboxes/sandbox-abc123/endpoints/8080?use_server_proxy=true" \
-H "OPEN-SANDBOX-API-KEY: your-api-key"