An API key or an MCP client can see that your destinations exist, what type each one is and its non-secret settings, but never a database password, a webhook header or any other stored secret. The REST API and the MCP tools build a destination's config from a fixed list of public fields per destination type, and a webhook's address comes back as its scheme and host only, because the path and the query of a URL can carry a token. Listings of API keys never include a key's hash or its secret.
So you can hand a key to a script, a BI tool or an AI agent: it can read your workspace but not the credentials etlmcp uses to deliver your data.
What a destination looks like through the API
List destinations in the REST API and the MCP tool list_destinations return the same thing, because both call one shared function. The reference pages show the full response shape; this page covers the config object.
etlmcp keeps a destination's settings and its secrets in two separate parts, and the secret part is stored encrypted. The listing behind both the API and MCP reads each destination without decrypting its secret at all: it only learns whether one is saved. Only the settings part is read for config, and even then only the fields each destination type declares as public:
| Destination type | Fields that can appear in config |
Never returned |
|---|---|---|
| PostgreSQL | host, port, dbname, user, schema, table |
the password |
| Webhook | url, reduced to scheme and host |
the headers you saved, such as an Authorization header |
| CSV | none: config is empty |
nothing is stored |
A field that is not on the type's public list is left out, even if it sits in the settings. A field that is on the list but was never set is left out too, rather than returned empty.
The response is then shaped by the published model before it leaves: the REST API declares it as its response model, and the MCP server validates every tool result against the same model and drops any key the model does not name. The model's own description of config says that passwords, headers and keys are never returned.
How a webhook URL is shortened
A webhook address often holds a secret of its own, such as a token in the path or a ?key= query parameter that the receiving service checks. So the API keeps only two parts of the URL: the scheme and the host name. Everything else is dropped:
- the path and the query string;
- any user name or password written into the URL before the host;
- the port number.
A webhook saved with the host hooks.example.com, a port, a path and a token in the query shows up as that host behind its scheme, with nothing after it. That is enough to tell your webhooks apart and to see where each one delivers, without exposing what the receiver uses to trust the request. If the stored value cannot be read as a URL with both a scheme and a host, url comes back as null.
The headers you attach to a webhook are a secret field, stored encrypted and never part of config. See how etlmcp encrypts stored credentials.
What else a key can and cannot do
The shared code behind the REST API and the MCP tools only reads and starts runs. It does not create connections, edit a pipeline, touch billing or return a destination secret, so no call made with an API key can change a destination's password or read it back. Every call is bound to the key's workspace: an id from another workspace is answered exactly as if it did not exist.
Error messages are cleaned too. When a PostgreSQL connection or query fails, or a webhook request cannot be sent, etlmcp keeps only the first line of the driver's message and replaces every saved password or header value in it with ***, word by word as well as whole, before it stores the message. The other delivery errors are fixed wording with no secret in them. That cleaned message is what a failed run's error field shows through Get a run or get_run. For what is kept out of server logs, see what etlmcp keeps out of its logs.
What an API key listing shows
Keys are managed from the API page of the app, while you are signed in; an API key cannot list or create keys. The listing shows each key's name, workspace, display prefix, scopes, creator, creation time, last use and revocation time. It never includes the key's hash or its secret. etlmcp does not store the secret at all, only a SHA-256 hash of it, and the full secret appears once, in the response that creates the key, which is marked not to be cached. API keys covers creating, using and revoking them.
When etlmcp asks for a secret again
If you point a PostgreSQL destination at another host, port or user, or a webhook at another scheme, host or port, etlmcp asks for the secret again rather than send the saved one there; see why etlmcp asks for the password again.