Infisical icon

Infisical

Manage secrets and related resources in Infisical

Actions40

Secret Import → Create

AI-generated

Summary

Create a secret import by specifying source environment and path, destination path and project/environment.

Inputs

  • projectId (required) — The project to operate on, selected from list or provided as ID.
  • environment (required) — The target environment slug (e.g. dev, staging, prod).
  • path — Destination folder path where imported secrets will be placed.
  • importEnvironment (required) — Source environment slug to import secrets from.
  • importPath — Source folder path to import secrets from.
  • allowUnauthorizedCerts — Whether to skip SSL certificate validation.
  • proxy — HTTP proxy URL, optionally with authentication.
  • timeout — Request timeout in milliseconds.

Output shape

the created secret import object

Returns the imported secret import details; the response includes the import ID and other metadata.

Examples

Example 1: Import secrets from prod into a new folder

projectId: list (select project), environment: slug 'prod', path: '/', importEnvironment: 'prod', importPath: '/', allowUnauthorizedCerts: false

Example 2: Create import with batching enabled

projectId: list, environment: slug 'staging', path: '/secrets', importEnvironment: 'production', importPath: '/', requestOptions: { batching: { batchSize: 100 } }

Example 3: Create import using direct ID

projectId: '3c90c3cc-0d44-4b50-8888-8dd25736052a', environment: 'dev', path: '/', importEnvironment: 'prod', importPath: '/'

Links

Discussion