---
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

---

[API](https://skmtc.net/langchain-ai/apis/langsmith.md) · [All operations](https://skmtc.net/langchain-ai/apis/langsmith/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/langchain-ai/langsmith/revisions/a0acb3a6a101/schema)
