> ## Documentation Index
> Fetch the complete documentation index at: https://docs.paradime.io/llms.txt
> Use this file to discover all available pages before exploring further.

# createEnvironment

> Creates an environment in the key's workspace. A new agent environment defers to the default Bolt environment. Needs `environments:write`.



**mutation** `createEnvironment(input: CreateEnvironmentInput!): CreateEnvironmentPayload!`

## Arguments

**`input`**: `CreateEnvironmentInput!` (required)

The environment to create.

## Returns

`CreateEnvironmentPayload!`

**`environment`**: `Environment!`

The new environment, or the existing one when the same input was sent before.

## Examples

```graphql Mutation
mutation CreateEnvironment($input: CreateEnvironmentInput!) {
  createEnvironment(input: $input) {
    environment {
      slug
      type
      name
      isDefault
      branch
      dbtVersion
    }
  }
}
```

```json Variables
{
  "input": {
    "type": "SCHEDULER",
    "name": "string"
  }
}
```

```json Response
{
  "data": {
    "createEnvironment": {
      "environment": {
        "slug": "string",
        "type": "SCHEDULER",
        "name": "string",
        "isDefault": true,
        "branch": "string",
        "dbtVersion": "string"
      }
    }
  }
}
```


## Related topics

- [Administration API: Environments](https://docs.paradime.io/developers/graphql-api/admin-api/environments.md)
- [Administration API: Conventions](https://docs.paradime.io/developers/graphql-api/admin-api/conventions.md)
- [Create environments and attach schedules to them](https://docs.paradime.io/changelog/2026-08-12/bolt-environments.md)
- [Agent environment](https://docs.paradime.io/products/settings/connections/dinoai-background-agent-environment/index.md)
- [Admin client: environments](https://docs.paradime.io/developers/python-sdk/modules/admin/environments.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.