Sync Credential to Infisical
AI-generatedSummary
Writes a credential to Infisical under the selected root path and credential name. Choose a supported credential type and enter its fields in the form, or provide a credential type name and fields as JSON; the node can validate the data against the n8n credential schema when n8n API credentials are configured.
Inputs
- Project ID (required) — Infisical project that will store the credential.
- Environment (required) — Infisical environment slug, such as dev, staging, or prod.
- Root Path — Base path in Infisical; the credential is stored in a subfolder named for Credential Name. Defaults to /.
- Credential Name (required) — Name used for the Infisical folder that holds this credential.
- Input Mode — Choose Form to enter fields for a listed credential type, or JSON to provide a credential type name and a JSON object of fields.
- Credential Type (required) — In Form mode, select the n8n credential type from the available list; the displayed fields vary by type.
- Credential Type (JSON) (required) — In JSON mode, enter the n8n credential type name, such as openAiApi or postgresApi.
- Credential Fields (JSON) (required) — In JSON mode, provide an object mapping credential field names to values.
- Credential fields — In Form mode, enter the fields shown for the selected type, including any conditional fields. Secret fields are written as Infisical secrets; empty strings are retained, while null or undefined fields are skipped.
Output shape
A single n8n item containing the operation result.
The implementation creates the credential folder if needed, then upserts its fields as Infisical secrets. If n8n API credentials are configured and the credential schema is reachable, the operation validates the data against that schema; otherwise, validation is skipped.
Examples
Example 1: Sync an OpenAI API credential
Set the Infisical project, environment, root path, and folder name; choose Form mode and OpenAI, then enter the API key and any optional organization ID or base URL.
Example 2: Sync a credential type not listed in the form
Choose JSON mode, enter its n8n credential type name, and provide a JSON object containing the credential fields.
