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

# Inbox

Inbox is used to store data about a connection with a service that is responsible for automatically receiving copies of GOBL envelopes or other document formats.

## Schema ID

`https://gobl.org/draft-0/org/inbox`

## Properties

| Title | Property | Type | Description |
| - | - | - | - |
| UUID | `uuid` | string | Universally Unique Identifier. |
| Label | `label` | string | Label for the inbox. |
| Key | `key` | [cbc.Key](https://docs.gobl.org/draft-0/cbc/key.md) | Type of inbox being defined if required for clarification between multiple inboxes. |
| Scheme | `scheme` | [cbc.Code](https://docs.gobl.org/draft-0/cbc/code.md) | Scheme ID of the code used to identify the inbox. This is context specific and usually an ISO 6523 code or CEF (Connecting Europe Facility) code. |
| Code | `code` | [cbc.Code](https://docs.gobl.org/draft-0/cbc/code.md) | Code or ID that identifies the Inbox. Mutually exclusive with URL and Email. |
| URL | `url` | string | URL of the inbox that includes the protocol, server, and path. May be used instead of the Code to identify the inbox. Mutually exclusive with Code and Email. |
| Email | `email` | string | Email address for the inbox. Mutually exclusive with Code and URL. |

## Validation Rules

| Field | Test | Validation Code / Message |
| - | - | - |
| Inbox | <ul><li>One of code, url, email required</li></ul> | `GOBL-ORG-INBOX-01` Inbox requires a code, url, or email |
| Inbox | <ul><li>Url exclusive</li></ul> | `GOBL-ORG-INBOX-02` Inbox url must be blank when code or email is provided |
| Inbox | <ul><li>Email exclusive</li></ul> | `GOBL-ORG-INBOX-03` Inbox email must be blank when code or url is provided |
| `url` | <ul><li>Url</li></ul> | `GOBL-ORG-INBOX-04` Inbox url must be valid |
| `email` | <ul><li>Email-format</li></ul> | `GOBL-ORG-INBOX-05` Inbox email must be valid |


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