---
title: "Stop sharing a sandbox service URL"
method: DELETE
path: "/api/v2/sandboxes/boxes/{name}/service-urls"
tags: ["sandboxes"]
---

# Stop sharing a sandbox service URL

`DELETE /api/v2/sandboxes/boxes/{name}/service-urls`

## Request

- Base URL: `https://api.smith.langchain.com`
- URL: `https://api.smith.langchain.com/api/v2/sandboxes/boxes/{name}/service-urls`
- Auth: one of:
  - API key in header `X-API-Key` and API key in header `X-Tenant-Id`
  - HTTP bearer and API key in header `X-Tenant-Id`

Removes the sharing grant for one port, or for every port when port is omitted. A LangSmith login URL stops working immediately. A previously minted service token is not revoked and stays valid until it expires, but no new one can be issued from the removed grant.

## Path parameters

- `name` string, required

## Query parameters

- `port` integer

## Response `204`

deleted

## Other responses

- `400`: bad request
- `401`: missing or invalid authentication
- `403`: forbidden (insufficient permission)
- `404`: sandbox not found
- `500`: internal server error

## Changes

- **2026-10-16** `1a8ee9358d81`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/langchain-ai/apis/langsmith/changes/api/v2/sandboxes/boxes/:name/service-urls/delete.md)

---

[API](https://skmtc.dev/langchain-ai/apis/langsmith.md) - [All operations](https://skmtc.dev/langchain-ai/apis/langsmith/llms.txt) - [OpenAPI document](https://skmtc.dev/langchain-ai/apis/langsmith/revisions/7a01c01f75e8?raw)
