# List key store providers

> Source: https://truto.one/docs/api-reference/admin/key-stores/providers/

`GET /key-store-provider`

Resource: **Key stores**

The stores Truto supports, with the `config` and `credentials` fields each one takes, so a form can be built from them.

## Response body

- **`result`** _(array<object>)_
  - **`name`** _(string)_
    The `provider` value.
  - **`label`** _(string)_
  - **`description`** _(string)_
  - **`config_fields`** _(array<object>)_
    - **`name`** _(string)_
    - **`label`** _(string)_
    - **`type`** _(string)_
      `password` values are masked and never returned. `textarea` takes multi-line text. `select` takes one of `options`.
      Allowed: `text`, `password`, `textarea`, `select`
    - **`required`** _(boolean)_
    - **`placeholder`** _(string)_
    - **`help_text`** _(string)_
    - **`immutable`** _(boolean)_
      Can't change once the key store exists.
    - **`options`** _(array<object>)_
      For a `select`, the values it accepts.
      - **`label`** _(string)_
      - **`value`** _(string)_
    - **`default`** _(string)_
      Used when the field is left out or empty.
    - **`pattern`** _(string)_
      A regular expression the whole value must match.
    - **`pattern_message`** _(string)_
      Why a value that doesn't match `pattern` is refused.
    - **`min_length`** _(integer)_
    - **`max_length`** _(integer)_
  - **`credential_fields`** _(array<object>)_
    - **`name`** _(string)_
    - **`label`** _(string)_
    - **`type`** _(string)_
      `password` values are masked and never returned. `textarea` takes multi-line text. `select` takes one of `options`.
      Allowed: `text`, `password`, `textarea`, `select`
    - **`required`** _(boolean)_
    - **`placeholder`** _(string)_
    - **`help_text`** _(string)_
    - **`immutable`** _(boolean)_
      Can't change once the key store exists.
    - **`options`** _(array<object>)_
      For a `select`, the values it accepts.
      - **`label`** _(string)_
      - **`value`** _(string)_
    - **`default`** _(string)_
      Used when the field is left out or empty.
    - **`pattern`** _(string)_
      A regular expression the whole value must match.
    - **`pattern_message`** _(string)_
      Why a value that doesn't match `pattern` is refused.
    - **`min_length`** _(integer)_
    - **`max_length`** _(integer)_

## Code examples

### curl

```bash
curl -X GET 'https://api.truto.one/key-store-provider' \
  -H 'Authorization: Bearer <your_api_token>' \
  -H 'Content-Type: application/json'
```

### JavaScript

```javascript
const response = await fetch('https://api.truto.one/key-store-provider', {
  method: 'GET',
  headers: {
    'Authorization': 'Bearer <your_api_token>',
    'Content-Type': 'application/json',
  },
});

const data = await response.json();
console.log(data);
```

### Python

```python
import requests

url = "https://api.truto.one/key-store-provider"
headers = {
    "Authorization": "Bearer <your_api_token>",
    "Content-Type": "application/json",
}
params = {
}

response = requests.get(url, headers=headers, params=params)
print(response.json())
```
