datasets

Share a dataset publicly and return its share token.

Anyone with the share token can view the dataset, its examples, and its experiments, including their runs and feedback, without signing in. When the dataset is already shared, returns its existing share token. Fails with 403 when the organization disables public sharing.

put/api/v1/datasets/{dataset_id}/share

Request

  • Base URL
    https://api.smith.langchain.com
  • URL
    https://api.smith.langchain.com/api/v1/datasets/{dataset_id}/share
  • Auth
    • API key in header X-API-Key
    • or API key in header X-Tenant-Id
    • or HTTP bearer

Path parameters

dataset_idstring uuid required

Query parameters

share_projectsboolean

Deprecated and has no effect. A shared dataset always shows its experiments.

Response

Successful Response

dataset_idstring uuid required
share_tokenstring uuid required

Changes

    • info

      query request parameter share_projects was deprecated

    • breaking

      the / response's property type changed from object to string for status

    • breaking

      removed the required property // from the response with the status

    • breaking

      removed the required property // from the response with the status

    • breaking

      removed the required property // from the response with the status