Issue a preview URL for a sandbox port
Issue a signed preview URL for a port on the sandbox. Returns a canonical URL for public sandboxes or a short-lived token URL otherwise.
Issue a signed preview URL for a port on the sandbox. Returns a canonical URL for public sandboxes or a short-lived token URL otherwise.
Authorization
apiKey API key starting with tektona_. Create one at app-dev.tektona.ai under API Keys.
In: header
Path Parameters
Sandbox ID (ULID)
In-VM port.
int641 <= value <= 65535Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Optional TTL in seconds. Bounds 60..86400. When absent and sandbox is public, returns the public URL with no token. When absent and sandbox is private, default 12h applies.
int640 <= value <= 86400Response Body
application/json
application/problem+json
curl -X POST "https://example.com/v1/sandboxes/string/ports/1/preview-url" \ -H "Content-Type: application/json" \ -d '{}'{ "expires_at": "2019-08-24T14:15:22Z", "kind": "public", "token": "string", "url": "string"}{ "detail": "Property foo is required but is missing.", "errors": [ { "location": "string", "message": "string", "value": null } ], "instance": "https://example.com/error-log/abc123", "status": 400, "title": "Bad Request", "type": "https://example.com/errors/example"}Get a sandbox's effective egress injection GET
List the value-less effective egress injection rules for a sandbox (matched domains and the secret keys they inject; values are never returned).
List a sandbox's listening ports GET
Scan the running sandbox for TCP sockets in the LISTEN state and return them with their owning process names.