List drafts
cooper_list_draftsUse this when you need drafts on one inbox or across the account. Read-only; requires auth and message_read. Inputs: inbox_id (optional; omit for every inbox this key can see), labels (optional; every listed label must match), limit (optional, 1 to 100, default 50), page_token (optional). An inbox-scoped key only sees its inbox. Returns {object:"list", data, next_page_token}. A bad limit is HTTP 400 invalid_limit. A bad page_token is HTTP 400 invalid_page_token.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Page size from 1 to 100. Default 50. | |
| labels | No | Labels that must all be present, including scheduled. | |
| inbox_id | No | Inbox id, username, or email. Omit to list drafts for every inbox this key can see. | |
| page_token | No | Cursor from next_page_token. |