Infisical icon

Infisical

Manage secrets and related resources in Infisical

Actions40

Secret → Get

AI-generated

Summary

Retrieves one Infisical secret by name from the selected project, environment, and folder path, returning the secret object.

Inputs

  • Secret Name (required) — The secret key to retrieve, such as DATABASE_URL.
  • Project (required) — Select a project from the list or enter its ID.
  • Environment (required) — Select an environment or enter its slug, such as dev or prod.
  • Secret Path — Folder path containing the secret; defaults to /.
  • Request Options — Optional HTTP settings for batching, SSL certificate validation, proxy, and request timeout.

Output shape

A single secret object

The node requests the secret by its URL-encoded name and returns the response's secret property. Request Options are node-level HTTP settings.

Examples

Example 1: Retrieve DATABASE_URL from the root folder of a project’s dev environment.

Set Secret Name to DATABASE_URL, choose the project and dev environment, and leave Secret Path as /.

Links

Discussion