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

# store

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

Store (or overwrite) a secret and return its metadata.

```ts theme={null}
const meta = await client.secrets.store({ namespace: 'function_env', name: 'API_TOKEN', value: 'xyz' });
console.log(meta.id, meta.key_hint);
```

```typescript theme={null}
NotteSecrets.store(body: SecretStoreOptions): Promise<SecretMetadata>;
```

## Parameters

<ParamField body="body" type={"SecretStoreOptions"} required />

## Returns

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

## Related types

* [SecretMetadata](/typescript-sdk-reference/types/secretmetadata)
* [SecretStoreOptions](/typescript-sdk-reference/types/secretstoreoptions)


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