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

TNID API documentation Company Ten dlc Get 10DLC campaign with telephone numbers

Get 10DLC campaign with telephone numbers

On this page

GraphQL endpoint: /company

Get a single 10DLC Campaign the company has access to, together with the telephone numbers associated with the campaign.

The company has access to their own campaigns as well as any other campaigns from companies that have authorized 10DLC actions to the company.

Query

query($id: ID!) {
  tenDlcCampaignWithTelephoneNumbers(id: $id) {
    campaign {
      id
      campaignId
      companyId
      brandId
      usecase
      status
      description
      messageFlow
      autoRenewal
      ownershipType
    }
    telephoneNumbers {
      id
      number
      campaignId
      internalCampaignId
      osrWorkflowStatus
      tmobileWorkflowStatus
      insertedAt
      updatedAt
    }
  }
}

Variables

{
  "id": "00000000-0000-4000-8000-000000000002"
}

Response

{
  "data": {
    "tenDlcCampaignWithTelephoneNumbers": {
      "campaign": {
        "autoRenewal": true,
        "brandId": "BTEST123",
        "campaignId": "CUAG5GA",
        "companyId": "00000000-0000-4000-8000-000000000001",
        "description": "Test marketing campaign for product launches and promotions",
        "id": "00000000-0000-4000-8000-000000000002",
        "messageFlow": "Users opt-in by texting JOIN. They receive updates about products.",
        "ownershipType": "DIRECT",
        "status": "ACTIVE",
        "usecase": "MARKETING"
      },
      "telephoneNumbers": [
        {
          "campaignId": "CUAG5GA",
          "id": "00000000-0000-4000-8000-000000000003",
          "insertedAt": "2026-01-15T09:00:00.000000",
          "internalCampaignId": "00000000-0000-4000-8000-000000000002",
          "number": "14155550001",
          "osrWorkflowStatus": "DRAFT",
          "tmobileWorkflowStatus": "DRAFT",
          "updatedAt": "2026-01-15T09:00:00.000000"
        },
        {
          "campaignId": "CUAG5GA",
          "id": "00000000-0000-4000-8000-000000000004",
          "insertedAt": "2026-01-15T09:00:01.000000",
          "internalCampaignId": "00000000-0000-4000-8000-000000000002",
          "number": "14155550002",
          "osrWorkflowStatus": "DRAFT",
          "tmobileWorkflowStatus": "DRAFT",
          "updatedAt": "2026-01-15T09:00:01.000000"
        }
      ]
    }
  }
}