Skip to main content

Get environment variable

GET 

/v2/acts/:actorId/versions/:versionNumber/env-vars/:envVarName

Gets a EnvVar object that contains all the details about a specific environment variable of an Actor.

If isSecret is set to true, then value will never be returned.

Request

Path Parameters

    actorId string required

    Actor ID or a tilde-separated owner's username and Actor name.


    Example: janedoe~my-actor
    versionNumber string required

    Actor version


    Example: 0.1
    envVarName string required

    The name of the environment variable


    Example: MY_ENV_VAR

Status 200

Response Headers
    {
    "data": {
    "name": "MY_ENV_VAR",
    "value": "my-value",
    "isSecret": false
    }
    }