Skip to content
Wardcase Docs

Expose a sandbox port at a public URL

POST
/v1/sandboxes/{id}/ports
id
required
string
/^sbx_[A-Za-z0-9]+$/

Sandbox ids are lowercase: sbx_ followed by 16 characters from [a-z0-9]. Hostname labels derived from them are therefore safe to compare after lowercasing.

Idempotency-Key
string
<= 128 characters

Any string up to 128 characters. Replays within 24 hours return the original response.

object
port
required
integer
>= 1 <= 65535
access
string
default: token
Allowed values: public token

Exposed

object
id
required
string
sandbox_id
required
string
port
required
integer
access
required
string
Allowed values: public token
url
required

Public URL of the exposed port: https://<port>-<id-part>.wardcase.com. A first-level subdomain so Universal SSL covers it.

string format: uri
token

Present only in the create response when access is token, and never on an idempotent replay. Send it once as the token query parameter on the exposure URL; the edge then sets the cookie vv_exp_<exposure_id> holding the token and checks it against the exposure on every request.

string
created_at
required
string format: date-time

Not found

RFC 9457 problem document

object
type
required

https://docs.wardcase.com/errors/<slug>. The slug is a stable machine code (PROBLEM_TYPES in @vivarium/contracts).

string format: uri
title
required
string
status
required
integer
detail
string
instance
string
errors

Field-level validation errors

Array<object>
object
path
required
string
message
required
string

The resource is not in a state that allows this

RFC 9457 problem document

object
type
required

https://docs.wardcase.com/errors/<slug>. The slug is a stable machine code (PROBLEM_TYPES in @vivarium/contracts).

string format: uri
title
required
string
status
required
integer
detail
string
instance
string
errors

Field-level validation errors

Array<object>
object
path
required
string
message
required
string

The host reported an error

RFC 9457 problem document

object
type
required

https://docs.wardcase.com/errors/<slug>. The slug is a stable machine code (PROBLEM_TYPES in @vivarium/contracts).

string format: uri
title
required
string
status
required
integer
detail
string
instance
string
errors

Field-level validation errors

Array<object>
object
path
required
string
message
required
string

The host did not answer within the deadline

RFC 9457 problem document

object
type
required

https://docs.wardcase.com/errors/<slug>. The slug is a stable machine code (PROBLEM_TYPES in @vivarium/contracts).

string format: uri
title
required
string
status
required
integer
detail
string
instance
string
errors

Field-level validation errors

Array<object>
object
path
required
string
message
required
string