---
title: "Issue the same scoped service variables used by a deployment runtime for the project attached to this sandbox."
method: POST
path: "/v1/sandboxes/{id}/runtime-environment"
tags: ["Sandboxes"]
---

# Issue the same scoped service variables used by a deployment runtime for the project attached to this sandbox.

`POST /v1/sandboxes/{id}/runtime-environment`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/v1/sandboxes/{id}/runtime-environment`
- Auth: HTTP bearer

## Path parameters

- `id` string, required

## Response `200`

Runtime variables issued

- SandboxRuntimeEnvironmentResponse: Live project runtime variables issued to a sandbox. Values are deliberately absent from Debug output and must not be cached or persisted by Temps.
  - `variables` object, required

## Other responses

- `400`: Sandbox has no attached project
- `403`: Plaintext secret access is not permitted
- `404`: Sandbox or project environment not found
- `409`: Linked services expose ambiguous variables
- `503`: Runtime credential provider unavailable

## Changes

- **2026-09-09** `961c884b4940`: 1 info
  - endpoint added
- **2026-09-07** `e2dec7aec75d`: 1 breaking
  - api path removed without deprecation
- **2026-09-07** `7a3103561bd0`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/v1/sandboxes/:id/runtime-environment/post.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
