---
title: "Get Current Workspace Encrypted Secrets"
method: GET
path: "/api/v1/workspaces/current/secrets/encrypted"
tags: ["workspaces"]
---

# Get Current Workspace Encrypted Secrets

`GET /api/v1/workspaces/current/secrets/encrypted`

Get encrypted workspace secrets for use with Fleet and external services.

## Query parameters

- `service` 'agent_builder' | 'polly', required — Service requesting encrypted secrets
- `key_names` string[], nullable — Optional list of workspace secret keys to return
- `expand_iam_role` boolean — If true, expand AWS_IAM_ROLE_ARN into temporary credentials via STS

## Response `200`

Successful Response

- InternalSecretsResponse
  - `encrypted_secrets` string, required
  - `tenant_id` string, uuid, nullable

## Other responses

- `422` — Validation Error

## Changes

- **2026-04-13** `e86be67718ee` — 1 info
  - added the optional property `tenant_id` to the response with the `200` status

[Change history](https://skmtc.dev/langchain-ai/apis/langsmith/changes/api/v1/workspaces/current/secrets/encrypted/get.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-service-production.skmtc.workers.dev/v1/apis/langchain-ai/langsmith/revisions/a0acb3a6a101/schema)
