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

# provisionSandbox

> Provision a sandbox environment



**mutation** `provisionSandbox(input: ProvisionSandboxInput!): Environment!`

## Arguments

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

## Returns

`Environment!`

**`account`**: `Account`

---

**`apiKeys`**: `[ApiKey!]!`

**Arguments:**

- `filter`: `ApiKeyFilter` = {} — Specify to filter the records returned.
- `sorting`: `[ApiKeySort!]` = [] — Specify to sort results.

---

**`color`**: `String`

The color associated with the environment, used for UI representation

---

**`createdAt`**: `DateTime`

Timestamp of when the record was created

---

**`description`**: `String`

The description of the environment

---

**`displayName`**: `String!`

The display name of the environment

---

**`hardenClientAccessEnabled`**: `Boolean!`

Whether hardened client access is enabled for the environment

---

**`id`**: `UUID!`

Unique identifier for the entity

---

**`isSandbox`**: `Boolean!`

Whether the environment is a sandbox environment

---

**`permanentDeletionDate`**: `DateTime`

The date when the environment will be permanently deleted, if applicable

---

**`provisionStatus`**: `EnvironmentProvisionStatus`

The provisioning status of the environment, e.g. "PROVISIONED" or "PROVISIONING"

---

**`signingToken`**: `String!`

The signing token for the environment, used for secure communication

---

**`slug`**: `String!`

The slug of the environment, used in URLs

---

**`type`**: `EnvironmentType!`

The type of the environment, e.g. "DEVELOPMENT", "PRODUCTION", or "SANDBOX"

## Examples

```graphql Mutation
mutation ProvisionSandbox($input: ProvisionSandboxInput!) {
  provisionSandbox(input: $input) {
    account {
      accessMethod
      accountEmailDomain
      accountStatus
      defaultSSORoles {
        accountRole
        nonProductionRole
        productionRole
      }
      displayName
      emailDomains {
        accountId
        domain
        id
      }
    }
    apiKeys {
      createdAt
      description
      displayName
      environmentId
      expireAt
      id
    }
    color
    createdAt
    description
    displayName
  }
}
```

```json Variables
{
  "input": {
    "billingModel": "CREDIT_BASED",
    "displayName": "string"
  }
}
```

```json Response
{
  "data": {
    "provisionSandbox": {
      "account": {
        "accessMethod": "AUTHORIZED_DOMAIN",
        "accountEmailDomain": "string",
        "accountStatus": "ACTIVE",
        "defaultSSORoles": {
          "accountRole": "MEMBER",
          "nonProductionRole": "ADMIN",
          "productionRole": "ADMIN"
        },
        "displayName": "string",
        "emailDomains": [
          {
            "accountId": "value",
            "domain": "string",
            "id": "value"
          }
        ]
      },
      "apiKeys": [
        {
          "createdAt": "value",
          "description": "string",
          "displayName": "string",
          "environmentId": "value",
          "expireAt": "value",
          "id": "value"
        }
      ],
      "color": "string",
      "createdAt": "value",
      "description": "string",
      "displayName": "string"
    }
  }
}
```


## Related topics

- [ProvisionSandboxInput](https://docs.stigg.io/graphql-reference/types/ProvisionSandboxInput.md)
- [Provision enterprise subscriptions](https://docs.stigg.io/guides/i-want-to/provision-enterprise-subscriptions.md)
- [CLI reference](https://docs.stigg.io/api-and-sdks/cli-reference.md)
- [Provision customer](https://docs.stigg.io/api-reference/customers/provision-customer.md)
- [Provision subscription](https://docs.stigg.io/api-reference/subscriptions/provision-subscription.md)


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