> ## 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.

# createAccount

> Create a new account



**mutation** `createAccount(accountName: String!): Member!`

## Arguments

**`accountName`**: `String!` (required)

## Returns

`Member!`

**`accessRoles`**: `AccessRoles`

Get the access roles assigned to the member

---

**`account`**: `Account!`

---

**`createdAt`**: `DateTime`

The date and time when the member was created

---

**`cubejsToken`**: `String`

The Cube.js token associated with the member

---

**`customerToken`**: `String`

The customer token associated with the member

---

**`email`**: `String!`

The email address of the member

---

**`hideGettingStartedPage`**: `Boolean`

Indicates if the member has hidden the getting started page

---

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

The unique identifier of the member

---

**`memberStatus`**: `MemberStatus!`

The status of the member, e.g. "active" or "inactive"

---

**`serviceApiKey`**: `String`

The service API key associated with the member

---

**`user`**: `User`

---

**`userId`**: `String!`

The id of the user associated with this member

## Examples

```graphql Mutation
mutation CreateAccount($accountName: String!) {
  createAccount(accountName: $accountName) {
    accessRoles {
      accountRole
      nonProductionRole
      productionRole
    }
    account {
      accessMethod
      accountEmailDomain
      accountStatus
      defaultSSORoles {
        accountRole
        nonProductionRole
        productionRole
      }
      displayName
      emailDomains {
        accountId
        domain
        id
      }
    }
    createdAt
    cubejsToken
    customerToken
    email
  }
}
```

```json Variables
{
  "accountName": "string"
}
```

```json Response
{
  "data": {
    "createAccount": {
      "accessRoles": {
        "accountRole": "MEMBER",
        "nonProductionRole": "ADMIN",
        "productionRole": "ADMIN"
      },
      "account": {
        "accessMethod": "AUTHORIZED_DOMAIN",
        "accountEmailDomain": "string",
        "accountStatus": "ACTIVE",
        "defaultSSORoles": {
          "accountRole": "MEMBER",
          "nonProductionRole": "ADMIN",
          "productionRole": "ADMIN"
        },
        "displayName": "string",
        "emailDomains": [
          {
            "accountId": "value",
            "domain": "string",
            "id": "value"
          }
        ]
      },
      "createdAt": "value",
      "cubejsToken": "string",
      "customerToken": "string",
      "email": "string"
    }
  }
}
```


## Related topics

- [Zuora APIs used by Stigg](https://docs.stigg.io/documentation/native-integrations/billing/zuora/zuora-apis-used-by-stigg.md)
- [CreateEnvironment](https://docs.stigg.io/graphql-reference/types/CreateEnvironment.md)
- [createOneEnvironment](https://docs.stigg.io/graphql-reference/mutations/createOneEnvironment.md)
- [CreateEnvironmentOptions](https://docs.stigg.io/graphql-reference/types/CreateEnvironmentOptions.md)
- [Account](https://docs.stigg.io/graphql-reference/types/Account.md)


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