> 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_ten_dlc/019__register_and_submit_campaign.md).

# Register And Submit 10DLC Campaign

GraphQL endpoint: `/company`

Register a new 10DLC campaign and submit it for approval. This action submits the campaign directly to TCR for approval. Once the campaign is submitted its status is `PENDING`, and once approved by TCR it changes to `ACTIVE`.

A campaign's status is one of `DRAFT`, `PENDING`, `ACTIVE`, `ERROR`, `EXPIRED` or `SUSPENDED`. Note that these are the campaign's own statuses — a brand's are different, and `PENDING_REVIEW` is one of those.

## Query

```graphql
mutation($input: TenDlcRegisterCampaignInput!) {
  registerAndSubmitTenDlcCampaign(input: $input) {
    campaignId
    companyId
    brandId
    usecase
    status
    description
    messageFlow
    autoRenewal
  }
}

```

## Variables

```json
{
  "input": {
    "description": "Test marketing campaign for product launches and promotions",
    "internalBrandId": "00000000-0000-4000-8000-000000000003",
    "messageFlow": "Users opt-in by texting JOIN to our number. They receive updates about new products.",
    "nnid": "test-nnid-001",
    "resellerId": "CSP12345",
    "sample1": "Welcome! Reply STOP to unsubscribe, HELP for assistance.",
    "subscriberHelp": true,
    "subscriberOptin": true,
    "subscriberOptout": true,
    "tenDlcApiKeyId": "00000000-0000-4000-8000-000000000002",
    "termsAndConditions": true,
    "usecase": "MARKETING"
  }
}
```

## Response

```json
{
  "data": {
    "registerAndSubmitTenDlcCampaign": {
      "autoRenewal": true,
      "brandId": "B7J6FNJ",
      "campaignId": "C160379",
      "companyId": "00000000-0000-4000-8000-000000000001",
      "description": "Test marketing campaign for product launches and promotions",
      "messageFlow": "Users opt-in by texting JOIN to our number. They receive updates about new products.",
      "status": "ACTIVE",
      "usecase": "MARKETING"
    }
  }
}
```
