List Drafts
get_agentmail_inbox_draftsLists unsent drafts in one inbox. Returns count, limit, next_page_token and drafts; page with next_page_token. Each draft carries draft_id, labels, to, cc, bcc, subject, preview, attachments, in_reply_to, send_status, send_at and updated_at. List items carry preview only — text and html come from get_agentmail_inbox_draft. Drafts are not sent until post_agentmail_inbox_draft_send. The account-wide view is get_agentmail_drafts.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| after | No | Timestamp after which to filter by. | |
| limit | No | Limit of number of items returned. | |
| before | No | Timestamp before which to filter by. | |
| labels | No | Labels to filter by. | |
| inbox_id | Yes | The ID of the inbox. | |
| ascending | No | Sort in ascending temporal order. | |
| page_token | No | Page token for pagination. | |
| Authorization | Yes | Bearer authentication |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||