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

# Manage API keys (Provisioned Mode)

## Manage API keys in Provisioned Mode

You can secure your endpoint with API keys in Provisioned Mode and manage (add or change) them through the UI or CLI.

### Using web console

You can add an API key using a VESSL secret. You can either use an existing generic secret or create a new one. To learn more about secrets, please refer to the [Add secrets](/guides/organization/secrets) documentation.

<div style={{ marginBottom: '120px', position: 'relative', paddingTop: '400px' }}>
  <iframe src="https://demo.arcade.software/glgHac7hO2RIMZtZgUlN?embed&embed_mobile=inline&embed_desktop=inline&show_copy_link=true" frameBorder="0" loading="lazy" webkitAllowFullScreen="" mozAllowFullScreen="" title="Dashboards" style={{ position: 'absolute', top: '0px', left: '0px', width: '100%', height: '500px', colorScheme: 'light' }} />
</div>

You can use existing generic secret or create a new one. To learn more about secrets, please refer to the [Add secrets](/guides/organization/secrets) documentation.

### Using CLI

You can add api key using VESSL secret with the following command.

```bash theme={null}
vessl service set-access-token --service=[service-name] [--secret=[secret]]
```

Example:

```bash theme={null}
$ vessl service set-access-token --service=my-first-service
[?] How do you want to set access token?: By linking an existing secret
 > By linking an existing secret
   By creating a new secret and linking it
[?] Select a secret to link as the access token: MY_SECRET
 > MY_SECRET

```
