---
title: "Issue a short-lived port-scoped access credential"
method: POST
path: "/sandbox-sessions/{sessionId}/access"
tags: ["Sandboxes"]
---

# Issue a short-lived port-scoped access credential

`POST /sandbox-sessions/{sessionId}/access`

## Request

- Base URL: `https://api.volcano.dev`
- URL: `https://api.volcano.dev/sandbox-sessions/{sessionId}/access`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer
  - HTTP bearer

## Path parameters

- `sessionId` string, uuid, required

## Request body

- SandboxAccessRequest
  - `port` integer, required
  - `expires_in_seconds` integer

## Response `200`

Issue a short-lived port-scoped access credential

- SandboxAccess
  - `url` string, uri, required
  - `token` string, required
  - `expires_at` string, date-time, required

## Other responses

- `default`: Request refused or unavailable. Errors include invalid input (400), unauthenticated (401), forbidden (403), not found (404), conflicting retry (409), capacity exhausted (429), and temporarily unavailable (503). Code `feature_unavailable` with 404 means sandboxes are not available in this environment.

## Changes

- **2026-10-05** `d350e7525428`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/kong/apis/volcano-api/changes/sandbox-sessions/:sessionId/access/post.md)

---

[API](https://skmtc.dev/kong/apis/volcano-api.md) - [All operations](https://skmtc.dev/kong/apis/volcano-api/llms.txt) - [OpenAPI document](https://skmtc.dev/kong/apis/volcano-api/revisions/84c4488f91e9?raw)
