# CreatedLabel

The CreatedLabel type of the TypeScript SDK, which labels.create take or answer.

```ts
type CreatedLabel = {
  color: string | null
  id: number
  name: string
  uidValidity: number
}
```

## Fields

| Field | Type | Description |
| --- | --- | --- |
| `color` | `string` \| `null` | Hex color code for the label badge/chip, or null |
| `id` | `number` | Assigned label ID |
| `name` | `string` | Created label name |
| `uidValidity` | `number` | Initial UIDVALIDITY epoch for the label |

## Used by

| Method | What it does |
| --- | --- |
| [`labels.create`](/docs/sdks/typescript/labels/create) | Create a new custom label |
