Actions40
- Audit Log Actions
- Dynamic Secret Actions
- Environment Actions
- Folder Actions
- Identity Actions
- Project Actions
- Secret Actions
- Secret Import Actions
- Secret Tag Actions
Secret Import → Create
AI-generatedSummary
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: '/'