> ## Documentation Index
> Fetch the complete documentation index at: https://docs.gobl.org/llms.txt
> Use this file to discover all available pages before exploring further.

# Key

Text identifier to be used instead of a code for a more verbose but readable identifier.

## Schema ID

`https://gobl.org/draft-0/cbc/key`

## Validation Rules

| Field              | Test                                                                                       | Validation Code / Message                                           |
| ------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------- |
| <small>Key</small> | <ul class="gobl-test"><li>Length between 1 and 64</li></ul>                                | `GOBL-CBC-KEY-01`<br />Key must be between 1 and 64 characters long |
| <small>Key</small> | <ul class="gobl-test"><li>Matches ^(?:\[a-z]\|\[a-z0-9]\[a-z0-9-+]\*\[a-z0-9])\$</li></ul> | `GOBL-CBC-KEY-02`<br />Key must match the required pattern          |
