POST
/
api
/
v1
/
secret-imports

Authorizations

Authorization
string
headerrequired

An access token in Infisical

Body

application/json
workspaceId
string
required

The ID of the project you are working in.

environment
string
required

The slug of the environment to import into.

path
string
default: /

The path to import into.

import
object
required
isReplication
boolean
default: false

When true, secrets from the source will be automatically sent to the destination. If approval policies exist at the destination, the secrets will be sent as approval requests instead of being applied immediately.

Response

200 - application/json
message
string
required
secretImport
object
required

Was this page helpful?