GET
/
api
/
v3
/
secrets
/
raw
/
{secretName}
curl --request GET \
  --url https://app.infisical.com/api/v3/secrets/raw/{secretName} \
  --header 'Authorization: Bearer <token>'
{
  "secret": {
    "id": "<string>",
    "_id": "<string>",
    "workspace": "<string>",
    "environment": "<string>",
    "version": 123,
    "type": "<string>",
    "secretKey": "<string>",
    "secretValue": "<string>",
    "secretComment": "<string>"
  }
}

This endpoint requires you to disable end-to-end encryption. For more information, you should consult this note.

Authorizations

Authorization
string
headerrequired

An access token in Infisical

Path Parameters

secretName
string
required

The name of the secret to get.

Query Parameters

workspaceId
string

The ID of the project to get the secret from.

environment
string

The slug of the environment to get the secret from.

secretPath
string
default: /

The path of the secret to get.

version
number

The version of the secret to get.

type
enum<string>
default: shared

The type of the secret to get.

Available options:
shared,
personal
include_imports
enum<string>
default: false

Weather to include imported secrets or not.

Available options:
true,
false

Response

200 - application/json
secret
object
required

Was this page helpful?