Infisical icon

Infisical

Interact with Infisical secrets management API

Environment → Get By Slug

AI-generated

Summary

Retrieves an Infisical project environment by its slug. Requires an Infisical version that supports the get-by-slug endpoint; older self-hosted instances may return 404.

Inputs

  • Project ID (required) — ID of the Infisical project containing the environment.
  • Environment Slug (required) — Environment slug, such as dev, staging, or prod.

Output shape

A single environment record per input item.

Uses the API response's environment field when present; otherwise returns the response body. Each output is paired with its input item.

Links

Discussion