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

# Elenca secret

> Elenca i secret di credenziali upstream memorizzati. Solo nomi e maschere.

**`GET`** `https://api-datahub.octoparse.com/v1/secrets`

Autenticazione: API key obbligatoria (`Authorization: Bearer <API Key>`).

Elenca i secret di environment memorizzati per app api-kind (`runtime.env`). Il plaintext è write-only: ogni read restituisce solo una maschera.

## Richiesta

### Esempio di richiesta

```bash theme={null}
curl   -H "Authorization: Bearer $OCTOPARSE_API_KEY"   "https://api-datahub.octoparse.com/v1/secrets"
```

## Risposta

### 200 successo

```json theme={null}
{
  "data": {
    "items": [
      {
        "name": "EXAMPLE_API_KEY",
        "mask": "sk-****abcd",
        "updated_at": "2026-09-01T08:00:00+00:00"
      }
    ]
  }
}
```

Il payload è wrappato in `data`. Campi:

<ResponseField name="items" type="array" required>
  Voci dei secret.

  <Expandable title="item">
    <ResponseField name="name" type="string" required>
      Nome del secret, a cui le app fanno riferimento come `env.<name>`.
    </ResponseField>

    <ResponseField name="mask" type="string" required>
      Valore mascherato. Il plaintext non viene mai restituito.
    </ResponseField>

    <ResponseField name="updated_at" type="string" required>
      Ultimo aggiornamento, ISO 8601.
    </ResponseField>
  </Expandable>
</ResponseField>

### Errori

| HTTP | `code`         | `category`  | Descrizione                    |
| ---- | -------------- | ----------- | ------------------------------ |
| 401  | `unauthorized` | `forbidden` | API key mancante o non valida. |

Le risposte di errore usano `{"error": {code, category, message, retryable}}`. Vedi <a href="/docs/it/datahub/api/reference/introduction#errors">Errori</a>.

## Librerie client

Gli SDK Python e JavaScript non wrappano ancora questo endpoint. Chiama REST direttamente.
