v48

latestOpenAPI 3.1.0raw.githubusercontent.com2026-05-275867561.6 MB
sandboxes

Generate a service access token

Create a short-lived JWT for accessing an HTTP service running on a specific port inside a sandbox. Returns a browser_url (sets auth cookie via redirect), a service_url (for use with the X-Langsmith-Sandbox-Service-Token header), the raw token, and its expiry.

post/v2/sandboxes/boxes/{name}/service-url

Path parameters

namestring required

Sandbox display name

Request body

expires_in_secondsinteger
portinteger

Response

OK

browser_urlstring
expires_atstring
service_urlstring
tokenstring