> 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/007_b2c_subscriptions/008__create_b2c_subscription_topic.md).

# Create B2C Subscription Topic

GraphQL endpoint: `/company`

Creates a B2C subscription topic for the company, with per-channel delivery flags (email, SMS, voice). The topic name must be unique within the company.

## Query

```graphql
mutation (
  $name: String!
  $description: String
  $type: B2cSubscriptionTopicType
  $enableEmail: Boolean
  $enableSms: Boolean
  $enableVoice: Boolean
) {
  createB2cSubscriptionTopic (
    name: $name
    description: $description
    type: $type
    enableEmail: $enableEmail
    enableSms: $enableSms
    enableVoice: $enableVoice
  ) {
    id
    name
    description
    type
    enableEmail
    enableSms
    enableVoice
  }
}

```

## Variables

```json
{
  "description": "test description",
  "enableEmail": true,
  "enableSms": false,
  "enableVoice": true,
  "name": "test topic",
  "type": "CRITICAL"
}
```

## Response

```json
{
  "data": {
    "createB2cSubscriptionTopic": {
      "description": "test description",
      "enableEmail": true,
      "enableSms": false,
      "enableVoice": true,
      "id": "00000000-0000-4000-8000-000000000001",
      "name": "test topic",
      "type": "CRITICAL"
    }
  }
}
```
