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

# Allow another project to call this project's internal addresses

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

## 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`
- Auth: HTTP bearer

Workloads of the calling project (or of one environment of it) may then
call this project's `*.temps.local` addresses (or one environment's)
through the internal proxy. Workers apply it with their next route sync,
within seconds.

## Path parameters

- `project_id` integer, required

## Request body

- CreateInternalAccessGrantRequest
  - `caller_environment_id` integer, nullable: Only this environment of the calling project; omit for every environment, present and future.
  - `caller_project_id` integer, required: The project whose workloads may call.
  - `description` string, nullable: Why the grant exists, up to 200 characters.
  - `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

- InternalAccessGrantResponse: One grant: who (a project, or one environment of it) may call what (this project, or one environment of it).
  - `caller_environment_id` integer, nullable: `null`: every environment of the caller project.
  - `caller_environment_name` string, nullable
  - `caller_project_id` integer, required
  - `caller_project_name` string, required
  - `caller_project_slug` string, required
  - `created_at` string, date-time, required
  - `created_by` integer, nullable
  - `description` string, nullable
  - `id` integer, required
  - `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 either project
- `404`: Project or environment not found
- `409`: Already granted, or too many grants
- `500`: Internal server error

## Changes

- **2026-11-12** `e052e98bb073`: 1 info
  - endpoint added

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