# Doppler

> Read and set secrets in Doppler, manage projects, environments and configs, roll back changes, and follow new projects, configs, secrets and changes.

App · 25 actions. Web page: https://docs.lodol.com/docs/integrations/doppler

## Actions

### Clone config

Copy a branch config and all its secrets to a new branch config.

**Inputs**

- Project (`project`, text, required): The Doppler project.
- Config (`config`, text, required): The config, such as dev or prd.
- New config name (`name`, text, required): The new config's name, starting with the environment, such as dev_copy.

**Outputs**

- `data` (object): The response from Doppler.

**Example output**

```json
{
  "data": {
    "config": {
      "created_at": "example",
      "environment": "example",
      "initial_fetch_at": "example",
      "last_fetch_at": "example",
      "locked": true,
      "name": "example",
      "project": "example",
      "root": true
    }
  }
}
```

### Create config

Create a branch config under an environment's root config. It inherits the root config's secrets.

**Inputs**

- Project (`project`, text, required): The Doppler project.
- Environment (`environment`, text, required): The environment, such as dev.
- Name (`name`, text, required): The branch config's name. Doppler starts it with the environment, so aws in dev becomes dev_aws.

**Outputs**

- `data` (object): The response from Doppler.

**Example output**

```json
{
  "data": {
    "config": {
      "created_at": "example",
      "environment": "example",
      "initial_fetch_at": "example",
      "last_fetch_at": "example",
      "locked": true,
      "name": "example",
      "project": "example",
      "root": true
    }
  }
}
```

### Create environment

Add an environment to a project, with a root config of the same slug.

**Inputs**

- Project (`project`, text, required): The Doppler project.
- Name (`name`, text, required): The environment's name, such as QA.
- Slug (`slug`, text, required): A short identifier, such as qa. Its configs' names start with it.
- Personal configs (`personal_configs`, true/false): Give each team member a personal config in this environment.

**Outputs**

- `data` (object): The response from Doppler.

**Example output**

```json
{
  "data": {
    "environment": {
      "created_at": "example",
      "id": "example",
      "initial_fetch_at": "example",
      "name": "example",
      "project": "example",
      "slug": "example"
    }
  }
}
```

### Create project

Create a project. Doppler gives it Development, Staging and Production environments and configs.

**Inputs**

- Name (`name`, text, required): The project's name. Doppler recommends lowercase words joined by hyphens, such as billing-api.
- Description (`description`, text): What the project is for.

**Outputs**

- `data` (object): The response from Doppler.

**Example output**

```json
{
  "data": {
    "project": {
      "created_at": "example",
      "description": "example",
      "id": "example",
      "name": "example",
      "slug": "example"
    }
  }
}
```

### Delete config

Delete a branch config and its secrets. This can't be undone.

**Inputs**

- Project (`project`, text, required): The Doppler project.
- Config (`config`, text, required): The config, such as dev or prd.

**Outputs**

- `data` (object): The response from Doppler.

**Example output**

```json
{
  "data": {
    "success": true
  }
}
```

### Delete environment

Delete an environment with its configs and their secrets. This can't be undone.

**Inputs**

- Project (`project`, text, required): The Doppler project.
- Environment (`environment`, text, required): The environment, such as dev.

**Outputs**

- `data` (object): The response from Doppler.

**Example output**

```json
{
  "data": {
    "success": true
  }
}
```

### Delete project

Delete a project with all its environments, configs and secrets. This can't be undone.

**Inputs**

- Project (`project`, text, required): The Doppler project.

**Outputs**

- `data` (object): The response from Doppler.

**Example output**

```json
{
  "data": {
    "success": true
  }
}
```

### Delete secret

Delete one secret from a config.

**Inputs**

- Project (`project`, text, required): The Doppler project.
- Config (`config`, text, required): The config, such as dev or prd.
- Secret (`name`, text, required): The secret's name.

**Outputs**

- `data` (object): The response from Doppler.

**Example output**

```json
{
  "data": {}
}
```

### Download secrets

Get a config's secrets as plain name and value pairs, ready to use, with names in the case you choose.

**Inputs**

- Project (`project`, text, required): The Doppler project.
- Config (`config`, text, required): The config, such as dev or prd.
- Secrets (`secret_names`, list): Only these secrets. Leave empty for all of them.
- Name format (`name_transformer`, text): Change the case of every name. Leave empty to keep the names as they are. One of: `camel` (camelCase), `upper-camel` (UpperCamelCase), `lower-snake` (lower_snake_case), `tf-var` (Terraform variables (TF_VAR_name)), `dotnet` (.NET (Name__Key)), `dotnet-env` (.NET environment (Name__Key)), `lower-kebab` (lower-kebab-case).

**Outputs**

- `data` (object): The response from Doppler.

**Example output**

```json
{
  "data": {}
}
```

### Get config

Get a config's environment, lock state and when it was last read.

**Inputs**

- Project (`project`, text, required): The Doppler project.
- Config (`config`, text, required): The config, such as dev or prd.

**Outputs**

- `data` (object): The response from Doppler.

**Example output**

```json
{
  "data": {
    "config": {
      "created_at": "example",
      "environment": "example",
      "initial_fetch_at": "example",
      "last_fetch_at": "example",
      "locked": true,
      "name": "example",
      "project": "example",
      "root": true
    }
  }
}
```

### Get project

Get a project's name and description.

**Inputs**

- Project (`project`, text, required): The Doppler project.

**Outputs**

- `data` (object): The response from Doppler.

**Example output**

```json
{
  "data": {
    "project": {
      "created_at": "example",
      "description": "example",
      "id": "example",
      "name": "example",
      "slug": "example"
    }
  }
}
```

### Get secret

Get one secret's raw value, computed value (with references filled in) and note.

**Inputs**

- Project (`project`, text, required): The Doppler project.
- Config (`config`, text, required): The config, such as dev or prd.
- Secret (`name`, text, required): The secret's name, such as STRIPE_KEY.

**Outputs**

- `data` (object): The response from Doppler.

**Example output**

```json
{
  "data": {
    "name": "example",
    "value": {
      "computed": "example",
      "note": "example",
      "raw": "example"
    }
  }
}
```

### Get token details

See the connected token's name, type and workplace.

**Inputs**: None.

**Outputs**

- `data` (object): The response from Doppler.

**Example output**

```json
{
  "data": {
    "created_at": "example",
    "last_seen_at": "example",
    "name": "example",
    "slug": "example",
    "token_preview": "example",
    "type": "example",
    "workplace": {
      "name": "example",
      "slug": "example"
    }
  }
}
```

### List activity logs

List the workplace's activity, newest first: changes to projects, environments, configs and members.

**Inputs**

- Page (`page`, number): Which page of activity logs to read, starting at 1. At least 1.
- Per page (`per_page`, number): How many activity logs to return on a page. Doppler's default is 20. From 1 to 100.

**Outputs**

- `data` (object): The response from Doppler.

**Example output**

```json
{
  "data": {
    "logs": [
      {
        "config": "example",
        "created_at": "example",
        "environment": "example",
        "html": "example",
        "id": "example",
        "project": "example",
        "text": "example",
        "user": {
          "email": "example",
          "name": "example",
          "profile_image_url": "example",
          "username": "example"
        }
      }
    ],
    "page": 1
  }
}
```

### List config logs

List a config's change history, newest first: who changed which secrets and when.

**Inputs**

- Project (`project`, text, required): The Doppler project.
- Config (`config`, text, required): The config, such as dev or prd.
- Page (`page`, number): Which page of logs to read, starting at 1. At least 1.
- Per page (`per_page`, number): How many logs to return on a page. Doppler's default is 20. From 1 to 100.

**Outputs**

- `data` (object): The response from Doppler.

**Example output**

```json
{
  "data": {
    "logs": [
      {
        "config": "example",
        "created_at": "example",
        "diff": [
          {
            "added": "example",
            "name": "example",
            "removed": "example"
          }
        ],
        "environment": "example",
        "html": "example",
        "id": "example",
        "project": "example",
        "rollback": true,
        "text": "example",
        "user": {
          "email": "example",
          "name": "example",
          "profile_image_url": "example",
          "username": "example"
        }
      }
    ],
    "page": 1
  }
}
```

### List configs

List a project's configs, optionally in one environment.

**Inputs**

- Project (`project`, text, required): The Doppler project.
- Environment (`environment`, text): The environment, such as dev.
- Page (`page`, number): Which page of configs to read, starting at 1. At least 1.
- Per page (`per_page`, number): How many configs to return on a page. Doppler's default is 20. From 1 to 100.

**Outputs**

- `data` (object): The response from Doppler.

**Example output**

```json
{
  "data": {
    "configs": [
      {
        "created_at": "example",
        "environment": "example",
        "initial_fetch_at": "example",
        "last_fetch_at": "example",
        "locked": true,
        "name": "example",
        "project": "example",
        "root": true
      }
    ],
    "page": 1
  }
}
```

### List environments

List a project's environments.

**Inputs**

- Project (`project`, text, required): The Doppler project.

**Outputs**

- `data` (object): The response from Doppler.

**Example output**

```json
{
  "data": {
    "environments": [
      {
        "created_at": "example",
        "id": "example",
        "initial_fetch_at": "example",
        "name": "example",
        "project": "example",
        "slug": "example"
      }
    ],
    "page": 1
  }
}
```

### List projects

List the workplace's projects.

**Inputs**

- Tags (`tags`, list): Only projects with every one of these tag slugs, such as backend.
- Page (`page`, number): Which page of projects to read, starting at 1. At least 1.
- Per page (`per_page`, number): How many projects to return on a page. Doppler's default is 20. From 1 to 100.

**Outputs**

- `data` (object): The response from Doppler.

**Example output**

```json
{
  "data": {
    "page": 1,
    "projects": [
      {
        "created_at": "example",
        "description": "example",
        "id": "example",
        "name": "example",
        "slug": "example"
      }
    ]
  }
}
```

### List secrets

Get a config's secrets, each with its raw value, computed value and note, by name.

**Inputs**

- Project (`project`, text, required): The Doppler project.
- Config (`config`, text, required): The config, such as dev or prd.
- Secrets (`secret_names`, list): Only these secrets. Leave empty for all of them.
- Include Doppler's own secrets (`include_managed_secrets`, true/false): Include the secrets Doppler adds itself, such as DOPPLER_PROJECT. Leave empty to include them.

**Outputs**

- `data` (object): The response from Doppler.

**Example output**

```json
{
  "data": {
    "secrets": {}
  }
}
```

### Lock config

Stop a config from being renamed or deleted.

**Inputs**

- Project (`project`, text, required): The Doppler project.
- Config (`config`, text, required): The config, such as dev or prd.

**Outputs**

- `data` (object): The response from Doppler.

**Example output**

```json
{
  "data": {
    "config": {
      "created_at": "example",
      "environment": "example",
      "initial_fetch_at": "example",
      "last_fetch_at": "example",
      "locked": true,
      "name": "example",
      "project": "example",
      "root": true
    }
  }
}
```

### Rename config

Rename a branch config.

**Inputs**

- Project (`project`, text, required): The Doppler project.
- Config (`config`, text, required): The config, such as dev or prd.
- New name (`name`, text, required): The config's new name. It must still start with its environment, such as dev_.

**Outputs**

- `data` (object): The response from Doppler.

**Example output**

```json
{
  "data": {
    "config": {
      "created_at": "example",
      "environment": "example",
      "initial_fetch_at": "example",
      "last_fetch_at": "example",
      "locked": true,
      "name": "example",
      "project": "example",
      "root": true
    }
  }
}
```

### Roll back config change

Undo one change to a config's secrets, as recorded in its change history.

**Inputs**

- Project (`project`, text, required): The Doppler project.
- Config (`config`, text, required): The config, such as dev or prd.
- Change (`log`, text, required): The change to undo.

**Outputs**

- `data` (object): The response from Doppler.

**Example output**

```json
{
  "data": {
    "log": {
      "config": "example",
      "created_at": "example",
      "diff": [
        {
          "added": "example",
          "name": "example",
          "removed": "example"
        }
      ],
      "environment": "example",
      "html": "example",
      "id": "example",
      "project": "example",
      "rollback": true,
      "text": "example",
      "user": {
        "email": "example",
        "name": "example",
        "profile_image_url": "example",
        "username": "example"
      }
    }
  }
}
```

### Set secrets

Add or change secrets in a config. Secrets not named stay as they are.

**Inputs**

- Project (`project`, text, required): The Doppler project.
- Config (`config`, text, required): The config, such as dev or prd.
- Secrets (`secret_values`, object, required): The secrets to save, as name and value pairs, such as STRIPE_KEY.

**Outputs**

- `data` (object): The response from Doppler.

**Example output**

```json
{
  "data": {
    "secrets": {}
  }
}
```

### Unlock config

Let a locked config be renamed or deleted again.

**Inputs**

- Project (`project`, text, required): The Doppler project.
- Config (`config`, text, required): The config, such as dev or prd.

**Outputs**

- `data` (object): The response from Doppler.

**Example output**

```json
{
  "data": {
    "config": {
      "created_at": "example",
      "environment": "example",
      "initial_fetch_at": "example",
      "last_fetch_at": "example",
      "locked": true,
      "name": "example",
      "project": "example",
      "root": true
    }
  }
}
```

### Update project

Rename a project or change its description.

**Inputs**

- Project (`project`, text, required): The Doppler project.
- Name (`name`, text, required): The project's name: its new one, or its current one to keep it.
- Description (`description`, text): What the project is for.

**Outputs**

- `data` (object): The response from Doppler.

**Example output**

```json
{
  "data": {
    "project": {
      "created_at": "example",
      "description": "example",
      "id": "example",
      "name": "example",
      "slug": "example"
    }
  }
}
```
