Internal Access

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

Changed on

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.

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)
  • Auth
    HTTP bearer

Path parameters

project_idinteger required

The project being called

Request body

descriptionstring nullable

Why the grant exists, up to 200 characters.

sandbox_idstring required

Public id of one of your sandboxes.

target_environment_idinteger nullable

The environment of this project that may be called; omit for every environment, present and future.

Example request

{
  "description": "The coding agent calls the orders API",
  "sandbox_id": "sbx_a1b2c3d4e5f6"
}

Response

Grant created

created_atstring date-time required
created_byinteger nullable
descriptionstring nullable
idinteger required
sandbox_idstring required

The sandbox's public id.

sandbox_namestring required

The name the user gave the sandbox.

sandbox_statusstring required

running or stopped; a destroyed sandbox's grants are removed.

target_environment_idinteger nullable

null: every environment of the target project.

target_environment_namestring nullable
target_project_idinteger required
target_project_namestring required
target_project_slugstring required

Example response

{
  "sandbox_id": "sbx_a1b2c3d4e5f6"
}

Changes