Actions32
Sandbox → Get Preview URL
AI-generatedSummary
Generate a preview URL to access a specific port exposed inside a Daytona sandbox, optionally as a signed URL that embeds an authentication token valid for a specified duration.
Inputs
- Sandbox ID (required) — ID of the sandbox to generate the preview URL for
- Port (required) — Port number inside the sandbox to expose
- URL Type (required) — Type of preview URL to generate: 'signed' includes the auth token in the URL, while 'standard' returns the token separately (to send via the x-daytona-preview-token header).
- Expires In (Seconds) — Duration in seconds that the signed URL remains valid (only applies to signed URLs; maximum is 7 days)
Output shape
a single JSON object with the preview URL and related data
If 'URL Type' is 'signed', the returned JSON includes the signed URL embedding the token and related metadata. If 'standard', the URL and token are returned separately. The output always includes the sandbox ID, port, and URL type. No pagination applies. Errors are handled as node errors.