GET/inboxes/{inbox_id}/drafts

List drafts in an inbox

Lists unsent drafts in an inbox, ordered by most recently updated. Use after or before with a Draft ID from the current page to navigate results; do not supply both cursors together.

4 parameters
inbox_idstringrequired
The UUID of the inbox whose drafts to list; an email address is not accepted.
limitintegeroptional
The number of drafts to return. Must be between 1 and 100.
afterstringoptional
A Draft ID cursor from the current page; returns drafts after that cursor. Must identify an unsent draft in this inbox.
beforestringoptional
A Draft ID cursor from the current page; returns drafts before that cursor. Must identify an unsent draft in this inbox.

1 status code
200Returns the drafts on the page, most recently updated first, with an object type and a `has_more` indicator.
objectstringrequired
Type of the response object.
has_morebooleanrequired
Indicates if there are more results available.
dataarray<object>required
The unsent drafts on this page, most recently updated first.

Error handling

The inbox_id path parameter must be a UUID. limit must be between 1 and 100, and after and before are mutually exclusive; either cursor must be a UUID identifying an unsent draft in this inbox from the current page.