Where a credential lives
A credential is stored on a user, an organization or a blob, and the settings of each have a Credentials section that lists, adds, edits and deletes them. Reaching a target’s credentials takesadmin on it. Storing, editing or
removing one also needs a person behind the request, because it hands a target the keys to another system: that puts
it on the access perimeter, so a service account’s own key
is refused even where its membership says admin. The one exception is replacing the body of a
writable credential, which the identity whose runs read it may do.
A credential’s type says how the outside system takes its secret, never which system it is. API key (api_key, a
body {"api_key": "..."}) fits any service that authenticates with one key, OpenAI, Anthropic, Gemini, Pinecone,
Firecrawl and Tavily among them. Generic (generic, any JSON object) fits anything else. The body is checked
against the type’s shape when it is stored, so a malformed one is refused then rather than at the first run that needs
it. Which service a credential serves is said where it is used: on a model provider’s vendor entry, or by the vector or
web component it is plugged into. The editor offers every credential of the type a port accepts, and a key in the wrong
slot fails at its first call with that service’s own error.
It also carries an alias,
unique among the credentials on its target, and an optional description; both tell credentials apart and say
nothing about the secret. Create Credential,
Update Credential and
Delete Credential are the routes.


A credential's secret is never shown again once it is stored.
How a run uses one
A definition never holds a credential’s id. A component that calls an outside service names the credential it needs by alias, and the platform resolves that alias when a run reaches the component, against the target of whoever started the run: the person’s own user when they start it signed in, the key’s target when an API key starts it, and whoever created the schedule for a scheduled fire. Components lists the components that call outside services. So the credential a run uses belongs to whoever ran it, never to whoever wrote the definition. A shared workflow never runs with its author’s credentials: one that names an alias works only where the person or key running it holds a credential of that alias. If the alias names no credential there, the component fails with an error event naming the alias and takes itsfailure route; it never calls the service without one.
A model provider names one
credential per vendor and loads only the one it calls, so a provider that lists three vendors runs where only one
credential exists, as long as the model it runs is that vendor’s.
Writable credentials
A credential is read-only by default: its secret is set when a person stores it and changes only when a person edits it. A person withadmin on its target can mark a credential writable when creating it, or later with
Update Credential. Only then may the identity whose runs read the credential
replace its body, with role write or higher and using its own key: a service account’s
own key for the account’s credentials, an organization key for the organization’s, and a blob key for the blob’s.
That limit, the body alone and only while the credential is writable, holds for a service account’s own key at any
role, and for any key minted at write. An organization or blob key minted at admin passes as the person who minted
it, so it can also change the description and the flag, and replace the body of a credential that is not writable.
Mint a key for a refresher at write. A request outside the limit is refused with 403.
This is for a secret that expires and is renewed by a run, such as an access token. The pattern has four steps:
- A read-only credential holds the long-lived secret. One node, the refresher, is wired to it and to the writable
credential, and to a credential holding a BlobHub API key of the identity that may write, minted at
write. - The refresher exchanges the long-lived secret for a short-lived token with the outside service.
- The refresher writes the token into the writable credential with that API key. It reads the writable credential’s
idfrom the row it is wired to. - Every other node reads the writable credential by alias, as with any credential.
Not returned by the API
No credential route returns the secret, and the API offers no way to read one back once it is stored. A model provider hands code no credential. A code component wired to another kind of provider that has a credential port is where that stops holding: its Python can read the provider’s credential inside its run, which is what the generic provider is for, and whatever that code writes, an output or a session object, can carry the secret with it. The basic agent (genai.agent.basic) shows its model a placeholder in place of each string field of a tool’s credential.
The agent fills the values in only in the request it sends to the tool, never in what it sends to the model, and its
events and outputs carry [REDACTED] in place of a credential value of at least 8 characters. A tool that refuses
its credential is not hidden: the agent posts one component.warning, Tool <name> answered HTTP <status>, and the
run goes on.
List Credentials returns each credential’s id, type (not its provider), alias and
description, whether it is writable, and when and by whom it was last updated, and deleting one confirms only that it
is gone. A secret you no longer have is replaced by updating the credential’s body or storing a new credential, not
recovered.
