> 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/006__authorize_api_key.md).

# Authorize 10DLC Api Key

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

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

```

## Variables

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

## Response

```json
{
  "data": {
    "authorizeTenDlcApiKey": {
      "apiKey": {
        "apiKeyId": "test_key_QHN6H7U6EJ4UOZBK",
        "apiKeySecret": "test_secret_F2MDQMPD3M42VZBMMETPQNCOGYTXHGYX",
        "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"
    }
  }
}
```
