---
title: "Allow one of your sandboxes to call this project's internal addresses"
method: POST
path: "/projects/{project_id}/internal-access/sandboxes"
tags: ["Internal Access"]
---

# Allow one of your sandboxes to call this project's internal addresses

`POST /projects/{project_id}/internal-access/sandboxes`

## Request

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

The sandbox may then call this project's `<environment>.<project>.temps.local`
addresses (or one environment's) with plain `http://`, through its egress
proxy, in every egress mode. The internal proxy applies it with its next
route snapshot, within seconds. Destroying the sandbox removes the grant.

## Path parameters

- `project_id` integer, required

## Request body

- CreateInternalAccessSandboxGrantRequest
  - `description` string, nullable: Why the grant exists, up to 200 characters.
  - `sandbox_id` string, required: Public id of one of your sandboxes.
  - `target_environment_id` integer, nullable: The environment of this project that may be called; omit for every environment, present and future.

## Response `201`

Grant created

- InternalAccessSandboxGrantResponse: One sandbox allowed to call this project (or one environment of it).
  - `created_at` string, date-time, required
  - `created_by` integer, nullable
  - `description` string, nullable
  - `id` integer, required
  - `sandbox_id` string, required: The sandbox's public id.
  - `sandbox_name` string, required: The name the user gave the sandbox.
  - `sandbox_status` string, required: `running` or `stopped`; a destroyed sandbox's grants are removed.
  - `target_environment_id` integer, nullable: `null`: every environment of the target project.
  - `target_environment_name` string, nullable
  - `target_project_id` integer, required
  - `target_project_name` string, required
  - `target_project_slug` string, required

## Other responses

- `400`: Invalid grant
- `401`: Unauthorized
- `403`: Insufficient permissions on the project
- `404`: Project, environment or sandbox not found
- `409`: Already granted, or too many grants
- `500`: Internal server error

## Changes

- **2026-11-14** `3d5be996525d`: 1 info
  - endpoint added
- **2026-11-14** `101ef74660bc`: 1 breaking
  - api path removed without deprecation
- **2026-11-13** `9093c4f2c4cd`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/projects/:project_id/internal-access/sandboxes/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)
