> 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/016_client_secrets/003__create_client_secret.md).

# Create Client Secret

GraphQL endpoint: `/company`

Creates a new client secret for the calling company with an optional description. The plaintext `clientSecret` is returned only in this response and cannot be retrieved later.

## Query

```graphql
mutation ($description: String) {
  createClientSecret(description: $description) {
    id
    clientId
    clientSecret
    description
  }
}

```

## Variables

```json
{
  "description": "production key"
}
```

## Response

```json
{
  "data": {
    "createClientSecret": {
      "clientId": "00000000-0000-4000-8000-000000000001",
      "clientSecret": "fNnvW1UAsRDVuStLHXt2EA",
      "description": "production key",
      "id": "00000000-0000-4000-8000-000000000002"
    }
  }
}
```
