# Secrets

## GET /cubbyhole/{path}

> Retrieve the secret at the specified location.

```json
{"openapi":"3.0.2","info":{"title":"Enclaive Vault API","version":"1.3.2"},"servers":[{"url":"http://localhost:8200/v1","description":"Local Vault Server"}],"paths":{"/cubbyhole/{path}":{"get":{"operationId":"cubbyhole-read","summary":"Retrieve the secret at the specified location.","tags":["secrets"],"parameters":[{"name":"list","in":"query","description":"Return a list if `true`.","schema":{"type":"string"}}],"responses":{"200":{"description":"Secret retrieved successfully.","content":{"application/json":{}}},"403":{"description":"Permission denied.","content":{"application/json":{}}},"404":{"description":"Secret not found.","content":{"application/json":{}}}}}}}}
```

## POST /cubbyhole/{path}

> Store a secret at the specified location.

```json
{"openapi":"3.0.2","info":{"title":"Enclaive Vault API","version":"1.3.2"},"servers":[{"url":"http://localhost:8200/v1","description":"Local Vault Server"}],"paths":{"/cubbyhole/{path}":{"post":{"operationId":"cubbyhole-write","summary":"Store a secret at the specified location.","tags":["secrets"],"requestBody":{"required":true,"content":{"application/json":{}}},"responses":{"200":{"description":"Secret written successfully.","content":{"application/json":{}}},"400":{"description":"Bad request.","content":{"application/json":{}}},"403":{"description":"Permission denied.","content":{"application/json":{}}}}}}}}
```

## DELETE /cubbyhole/{path}

> Deletes the secret at the specified location.

```json
{"openapi":"3.0.2","info":{"title":"Enclaive Vault API","version":"1.3.2"},"servers":[{"url":"http://localhost:8200/v1","description":"Local Vault Server"}],"paths":{"/cubbyhole/{path}":{"delete":{"operationId":"cubbyhole-delete","summary":"Deletes the secret at the specified location.","tags":["secrets"],"responses":{"204":{"description":"Secret deleted successfully. No content is returned."},"403":{"description":"Permission denied.","content":{"application/json":{}}},"404":{"description":"Secret not found.","content":{"application/json":{}}}}}}}}
```


---

# 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://docs.enclaive.cloud/virtual-hsm/api/secrets.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.
