# Settings and API Keys

### API Keys

API keys let applications read prompts through the SDK.

#### Creating a Key

Click **Create key** and provide:

| Field       | Notes                                                        |
| ----------- | ------------------------------------------------------------ |
| Name        | A human label, such as `production`, `ci`, or `local-dev`.   |
| Environment | `pv_live_` for live prompts or `pv_test_` for staging reads. |

Copy the key when it is shown. PromptVault does not show the full key again after creation.

#### Listing Keys

Each key row shows:

| Column      | Meaning                                        |
| ----------- | ---------------------------------------------- |
| Name        | Human label.                                   |
| Prefix      | Short visible prefix used to identify the key. |
| Environment | `live` or `test`.                              |
| Created     | Creation time.                                 |
| Last used   | Best-effort usage timestamp.                   |
| Status      | `Active` or `Revoked`.                         |

#### Revoking

Revoking a key prevents future SDK reads with that key. Existing application processes should be restarted or reconfigured with a replacement key.

### Enable Staging

The staging toggle controls whether the editor offers a Staging save target and whether the Versions tab shows staging controls.

| State    | Effect                                                                         |
| -------- | ------------------------------------------------------------------------------ |
| Disabled | Editor offers Draft and Live. `pv_test_` keys fall back to live.               |
| Enabled  | Editor offers Draft, Staging, and Live. `pv_test_` keys read staging when set. |

Toggling staging does not delete existing prompt versions.

### Sign Out

The **Sign out** action ends the current dashboard session.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://aiso.gitbook.io/promptvault/documentation/dashboard/settings-and-api-keys.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
