Create a presigned URL
Create a temporary public URL for a specific sandbox port. The returned `token` is only returned once and is stored server-side as a SHA-256 hash. The URL resolves to `https://<token>.leap0.app` in production, or the matching environment-specific presigned domain in non-production stacks.
Create a temporary public URL for a specific sandbox port. The returned token
is only returned once and is stored server-side as a SHA-256 hash.
The URL resolves to https://<token>.leap0.app in production, or the matching
environment-specific presigned domain in non-production stacks.
Authorization
BearerAuth API key passed as a Bearer token in the Authorization header.
Alternatively, use the leap0-authorization header.
In: header
Path Parameters
Unique sandbox identifier.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Sandbox port exposed through the public URL.
1 <= value <= 65535Optional TTL in seconds. Defaults to 3600.
int641 <= valueResponse Body
application/json
application/json
application/json
application/json
curl -X POST "https://api.leap0.dev/v1/sandbox/string/presigned-url" \ -H "Content-Type: application/json" \ -d '{ "port": 8080 }'{ "id": "psu-abc123", "token": "string", "url": "https://abcdef1234567890.leap0.app", "sandbox_id": "string", "port": 1, "expires_at": "2019-08-24T14:15:22Z", "created_at": "2019-08-24T14:15:22Z"}{ "message": "string", "errors": [ { "field": "string", "error": "string" } ]}{ "message": "string"}{ "message": "string"}
