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

Changes

Changed in 2 of the 48 revisions of this API.6

    • added the optional property / to the response with the status

      response-optional-property-added

    • added the optional property / to the response with the status

      response-optional-property-added

    • added the optional property / to the response with the status

      response-optional-property-added

    • added the optional property / to the response with the status

      response-optional-property-added

    • added the optional property / to the response with the status

      response-optional-property-added

    This revision also has 6 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

    • endpoint added

      endpoint-added