email_drafts_get
# email_drafts_get
Read emails in the Email app (pApp F00003). View list with paging, search, status and labels; one email; delivery history (page size up to 1000) and its export link; or a creation revision. Sends nothing.
## Inputs
| Field | Required here | Contract |
| --- | --- | --- |
| `view` | Yes | one of: `create-context`, `detail`, `history`, `history-export`, `list` |
| `emailId` | Yes | When `view` is `detail`: string; pattern `^[A-Za-z0-9_-]{1,200}$`; Exact email identifier returned by email_drafts_get. |
| `emailId` | Yes | When `view` is `history`: string; pattern `^[A-Za-z0-9_-]{1,200}$`; Exact email identifier returned by email_drafts_get. |
| `page` | No | When `view` is `history`: integer; minimum 1; default `1` |
| `limit` | No | When `view` is `history`: integer; minimum 1; maximum 1000; default `100`; Console page sizes are 100, 300, 500 and 1000. |
| `search` | No | When `view` is `history`: string; max length 200 |
| `emailId` | Yes | When `view` is `history-export`: string; pattern `^[A-Za-z0-9_-]{1,200}$`; Exact email identifier returned by email_drafts_get. |
| `scope` | Yes | When `view` is `history-export`: `page`, `all` |
| `page` | No | When `view` is `history-export`: integer; minimum 1; default `1` |
| `limit` | No | When `view` is `history-export`: integer; minimum 1; maximum 1000; default `100` |
| `timezone` | Yes | When `view` is `history-export`: string; max length 100; IANA timezone for the exported dates. |
| `fileName` | Yes | When `view` is `history-export`: string; min length 1; max length 100 |
| `search` | No | When `view` is `history-export`: string; max length 200 |
| `page` | No | When `view` is `list`: integer; minimum 1; default `1` |
| `limit` | No | When `view` is `list`: integer; minimum 1; maximum 100; default `20` |
| `search` | No | When `view` is `list`: string; max length 200 |
| `status` | No | When `view` is `list`: `DRAFT`, `SCHEDULE`, `PENDING`, `SENT` |
| `labelIds` | No | When `view` is `list`: array; items: string; pattern `^[A-Za-z0-9_-]{1,200}$`; Exact email identifier returned by email_drafts_get.; max items 20 |