---
title: "listSecretPresets"
---

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

# listSecretPresets

Path: agenthold API › secrets

`GET /secrets/presets`

URL: `/api/v1/secrets/presets`

## Authentication

Requires one of the following:

- `session`, apiKey, in cookie
- `token`, http bearer, header `Authorization`

## Code samples

### cURL

```bash
curl --request GET \
  --url '<base-url>/api/v1/secrets/presets' \
  --cookie 'agenthold_session=<agenthold_session>'
```

### TypeScript

```typescript
const url = '<base-url>/api/v1/secrets/presets';
const options = {
  method: 'GET',
  headers: {cookie: 'agenthold_session=<agenthold_session>'}
};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "<base-url>/api/v1/secrets/presets"

headers = {"cookie": "agenthold_session=<agenthold_session>"}

response = requests.get(url, headers=headers)

print(response.text)
```

## Responses

### 200

Injection rule presets for common providers.

#### Example

```json
[
  {
    "id": "string",
    "name": "string",
    "rule": {
      "hosts": [
        "string"
      ],
      "header": "string",
      "template": "string"
    },
    "envVar": "string",
    "description": "string"
  }
]
```

- `id` (`listSecretPresets.response.200.id`; string, required)
- `name` (`listSecretPresets.response.200.name`; string, required)
- `rule` (`listSecretPresets.response.200.rule`; object, required)
  - `hosts` (`listSecretPresets.response.200.rule.hosts`; array of string, required) — Exact host names or "*.example.com".
  - `header` (`listSecretPresets.response.200.rule.header`; string, required)
  - `template` (`listSecretPresets.response.200.rule.template`; string, required) — Header value; {{.Value}} is the secret. Function: base64.
- `envVar` (`listSecretPresets.response.200.envVar`; string, required)
- `description` (`listSecretPresets.response.200.description`; string, required)


Source: https://agenthold.dev/api/list-secret-presets/index.md
