> ## 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.

# Header

Header defines the metadata of the body.

## Schema ID

`https://gobl.org/draft-0/head/header`

## Properties

| Title | Property | Type | Description |
| - | - | - | - |
| UUID | `uuid` | string | Unique UUIDv1 identifier for the envelope. |
| Digest | `dig` | [dsig.Digest](https://docs.gobl.org/draft-0/dsig/digest.md) | Digest of the canonical JSON body. |
| Stamps | `stamps` | array of [head.Stamp](https://docs.gobl.org/draft-0/head/stamp.md) | Seals of approval from other organisations that can only be added to non-draft envelopes. |
| Links | `links` | array of [head.Link](https://docs.gobl.org/draft-0/head/link.md) | URLs to other resources related to this envelope. Unlike stamps, links can be added even in the draft state. |
| Tags | `tags` | array of string | Set of labels that describe but have no influence on the data. |
| Meta | `meta` | [cbc.Meta](https://docs.gobl.org/draft-0/cbc/meta.md) | Additional semi-structured information about this envelope. |
| Notes | `notes` | string | Any information that may be relevant to other humans about this envelope. |
| From | `from` | [cbc.URI](https://docs.gobl.org/draft-0/cbc/uri.md) | URI-form transport address of the envelope's issuer, e.g. "gobl:invoices.example.com" or "iso6523-actorid-upis::9920:b123123123". |
| To | `to` | [cbc.URI](https://docs.gobl.org/draft-0/cbc/uri.md) | URI-form transport address of the envelope's intended receiver. |
| Ignore | `ignore` | array of string | Fully-qualified validation fault codes to suppress when validating this envelope, e.g. "GOBL-EU-EN16931-ORG-ITEM-01". Intended for format-conversion cases where a specific, known fault is acceptable. Covered by the envelope signature when sealed. Any code may be listed, including structural envelope and header codes, so use deliberately. |

## Validation Rules

| Field | Test | Validation Code / Message |
| - | - | - |
| `uuid` | <ul><li>Present</li><li>Has timestamp</li></ul> | `GOBL-HEAD-HEADER-01` Header must contain a UUID v1 or v7 with timestamp |
| `dig` | <ul><li>Present</li></ul> | `GOBL-HEAD-HEADER-02` Header must have a digest |
| `stamps` | <ul><li>No duplicate stamps</li></ul> | `GOBL-HEAD-HEADER-03` Duplicate stamp providers are not allowed |
| `links` | <ul><li>No duplicate links</li></ul> | `GOBL-HEAD-HEADER-04` Duplicate link keys are not allowed |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.