TSGGLOBAL Support sign in
Skip to page content
Browse TNID API docs

TNID API documentation Company Ten dlc Save 10DLC campaign as draft

Save 10DLC campaign as draft

On this page

GraphQL endpoint: /company

Save a new 10DLC campaign as a draft. Draft means it is not yet submitted for approval. This is useful if you want to start preparing a campaign before submitting it for approval.

Query

mutation($input: TenDlcRegisterCampaignInput!) {
  saveTenDlcCampaignAsDraft(input: $input) {
    id
    campaignId
    companyId
    brandId
    internalBrandId
    usecase
    status
    description
    messageFlow
  }
}

Variables

{
  "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",
    "tenDlcApiKeyId": "00000000-0000-4000-8000-000000000004",
    "usecase": "MARKETING"
  }
}

Response

{
  "data": {
    "saveTenDlcCampaignAsDraft": {
      "brandId": "BMJ7SVX",
      "campaignId": null,
      "companyId": "00000000-0000-4000-8000-000000000001",
      "description": "Test marketing campaign for product launches and promotions",
      "id": "00000000-0000-4000-8000-000000000002",
      "internalBrandId": "00000000-0000-4000-8000-000000000003",
      "messageFlow": "Users opt-in by texting JOIN to our number. They receive updates about new products.",
      "status": "DRAFT",
      "usecase": "MARKETING"
    }
  }
}