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

TNID API documentation Company Ten dlc Authorize 10DLC API key

Authorize 10DLC API key

On this page

GraphQL endpoint: /company

Authorizes another company to use one of the company's own 10DLC API keys. Returns the created authorization record with the shared key and the authorized company.

Query

mutation ($apiKeyId: UUID!, $authorizedCompanyId: UUID!) {
  authorizeTenDlcApiKey(apiKeyId: $apiKeyId, authorizedCompanyId: $authorizedCompanyId) {
    id
    authorizedAt
    apiKey {
      id
      name
      apiKeyId
      apiKeySecret
      apiKeyType
      companyId
    }
    company {
      id
      legalName
      brandName
    }
  }
}

Variables

{
  "apiKeyId": "00000000-0000-4000-8000-000000000002",
  "authorizedCompanyId": "00000000-0000-4000-8000-000000000003"
}

Response

{
  "data": {
    "authorizeTenDlcApiKey": {
      "apiKey": {
        "apiKeyId": "test_key_LL2GSOX4JBN4YO6W",
        "apiKeySecret": "test_secret_NOVJ3OUPYDCAYTOKGJHJ7EGBEXPKPCHO",
        "apiKeyType": "OWNED",
        "companyId": "00000000-0000-4000-8000-000000000001",
        "id": "00000000-0000-4000-8000-000000000002",
        "name": "Shared Key"
      },
      "authorizedAt": "2026-01-15T09:00:00",
      "company": {
        "brandName": "Authorized Brand",
        "id": "00000000-0000-4000-8000-000000000003",
        "legalName": "Authorized Co"
      },
      "id": "00000000-0000-4000-8000-000000000004"
    }
  }
}