Sign a port URL

Preview. A URL that opens a private port without the token, until it expires. A browser that opens it gets a cookie for that port alone and keeps its access for 24 hours.

POST
/sandboxes/{sandbox_id}/ports/{port}/url

Authorization

headerAuthorizationBearer <token>

Your Munito API key.

Path Parameters

sandbox_id*string

The id of the sandbox.

port*integer

A TCP port in the sandbox.

Range1 <= value <= 65535

Request Body

application/json
  1. body
expires_in?integer

Seconds until the URL stops working: from 60 to 604800, 3600 by default. A browser that opens it keeps its access for a day.

Range60 <= value <= 604800
Default3600

Response Body

The signed URL and its end.

application/json
  1. response
object?string
Default"sandbox.signed_url"
url*string
expires_at*integer

Unix seconds.

curl -X POST 'https://api.munito.ai/sandboxes/v1/sandboxes/string/ports/1/url' \
  -H 'Content-Type: application/json' \
  -d '{}'
Example Response
{
  "object": "sandbox.signed_url",
  "url": "string",
  "expires_at": 0
}