> For the complete documentation index, see [llms.txt](https://docs.tnid.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tnid.com/api-reference/002_company/002_email/001__create_company_email.md).

# Create Company Email

GraphQL endpoint: `/company`

Create a new email address for the company. The email will be added to the company's profile with the specified types and visibility settings.

## Query

```graphql
mutation (
  $email: String!
  $types: [CompanyEmailType!]
  $visibility: [CompanyVisibilityType!]
) {
  createCompanyEmail (
    email: $email
    types: $types
    visibility: $visibility
  ) {
    id
    email
    types
    visibility
  }
}

```

## Variables

```json
{
  "email": "test1@email.com",
  "types": [
    "SUPPORT"
  ],
  "visibility": [
    "PARTNER",
    "CUSTOMER"
  ]
}
```

## Response

```json
{
  "data": {
    "createCompanyEmail": {
      "email": "test1@email.com",
      "id": "00000000-0000-4000-8000-000000000001",
      "types": [
        "SUPPORT"
      ],
      "visibility": [
        "PARTNER",
        "CUSTOMER"
      ]
    }
  }
}
```
