> ## Documentation Index
> Fetch the complete documentation index at: https://docs.notte.cc/llms.txt
> Use this file to discover all available pages before exploring further.

# get

<Tip>
  Read [the Notte skill](https://notte.cc/skill.md) and follow its setup instructions when setting up Notte or building browser automation. This is the shared source for CLI setup, authentication, and the browser-to-code workflow.
</Tip>

[Source: node-sdk/src/secrets.ts](https://github.com/nottelabs/notte/blob/main/node-sdk/src/secrets.ts)

Read the value of a secret by name within a namespace.

```ts theme={null}
const { value } = await client.secrets.get('API_TOKEN', 'function_env');
```

```typescript theme={null}
NotteSecrets.get(name: string, namespace: SecretNamespace): Promise<SecretValueResponse>;
```

## Parameters

<ParamField body="name" type={"string"} required />

<ParamField body="namespace" type={"SecretNamespace"} required />

## Returns

```typescript theme={null}
Promise<SecretValueResponse>
```

## Related types

* [SecretNamespace](/typescript-sdk-reference/types/secretnamespace)
* [SecretValueResponse](/typescript-sdk-reference/types/secretvalueresponse)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.