Administration

External credentials

Store API keys, OAuth tokens, and other authentication credentials securely — then reference them by name in flows and automations to authenticate outbound HTTP requests without embedding secrets in flow configurations.

What external credentials do

External credentials are a secure vault for the authentication details needed to call external APIs from flows and automations. Instead of putting an API key or access token directly into a flow step's configuration — where it would be visible to anyone who can view the flow — you store it once as a named credential and reference it by its API name in flow steps. The secret values are encrypted at rest and never exposed in the flow configuration.

Auth types

Five authentication types are supported:

  • Bearer Token — stores a single token sent as Authorization: Bearer <token> on outbound requests.
  • Basic Auth — stores a username and password, sent as HTTP Basic Authentication.
  • API Key — stores a key value, with configurable placement:
    • Header — sent as a request header with a configurable header name (e.g. X-Api-Key).
    • Query parameter — appended to the request URL as a query parameter with a configurable parameter name.
  • OAuth 2.0 Client Credentials — stores a Client ID, Client Secret, Token URL, and optional Scope. The system exchanges credentials for an access token automatically before each request. Tokens are cached and refreshed as needed.
  • OAuth 2.0 Authorization Code — stores a Client ID, Client Secret, Token URL, Auth URL, and Scope. Requires a one-time user authorization flow to obtain the initial access and refresh tokens (see OAuth setup below).

Creating a credential

Go to Setup () → External Credentials and click New. Provide:

  • Name — a human-readable label.
  • API Name — the programmatic identifier used to reference this credential in flows. Must start with a letter and contain only letters, numbers, and underscores. Unique per workspace. Cannot be changed after creation if any flow references it.
  • Auth Type — the authentication mechanism (see above).
  • Description — optional notes about what this credential is used for.
  • Secret fields — the secret values for the chosen auth type (token, password, client secret, etc.).
  • Config fields (non-secret) — header name, token URL, auth URL, scope, depending on the auth type.

OAuth 2.0 Client Credentials setup

After creating a Client Credentials credential, the system immediately attempts a token exchange using the provided Client ID, Client Secret, and Token URL. The connection status updates to Connected on success or Error on failure (with an error message). No further action is required — the token is stored encrypted and refreshed automatically.

OAuth 2.0 Authorization Code setup

Authorization Code credentials require a one-time user authorization step:

  1. Create the credential with Client ID, Client Secret, Auth URL, Token URL, and Scope. Status starts as Pending.
  2. Click Authorize on the credential detail page. Kraftter generates a signed authorization URL (with a 10-minute expiry) and redirects you to the provider's authorization page.
  3. Authorize the application at the provider. The provider redirects you back to Kraftter's OAuth callback URL with an authorization code.
  4. Kraftter exchanges the code for an access token and refresh token, stores them encrypted, and sets the status to Connected.

The access token is automatically refreshed using the stored refresh token before it expires. If the refresh fails, the status reverts to Error and you need to re-authorize.

Connection status

  • Pending — authorization has not yet been completed (Authorization Code type only).
  • Connected — credential is active and tokens are valid.
  • Error — last connection attempt failed. The error message is shown on the detail page.

Viewing stored secrets

Secret values (tokens, passwords, API keys) are never shown in plain text by default. To reveal them, click Reveal Stored Values in the credential's Stored Values section. The system requires an additional verification step:

  • If your account has TOTP (authenticator app) MFA enabled, enter the current TOTP code.
  • Otherwise, a 6-digit code is emailed to you; enter it to confirm.

Reveal attempts are rate-limited to 5 per 5-minute window per credential per user. A hint (last 4 characters) of each secret value is always visible without verification, to help confirm which credential is in use.

Using credentials in flows

In flow steps that make outbound HTTP requests, reference a credential by its API name. The flow step will resolve and apply the stored authentication automatically at runtime — no secret value is stored in the flow configuration itself. If a credential is deleted or deactivated, any flows that reference it will fail at runtime on the step that uses it.

Deleting credentials

Before a credential can be deleted, the system checks whether any active automation or flow step references it. If references exist, the delete is blocked. Remove the references from flows first, then delete the credential. Deleted credentials appear on the Metadata tab of Deleted Items, where they can be restored or deleted permanently.

This guide is part of the Kraftter documentation V1. Visual walkthroughs and examples are coming in a future update.