List a draft’s attachments
GET
/drafts/{id}/attachmentsLists the files on a draft, confirmed or not.
Needs the permissionattachments:list
Path parameters
idstringrequired- The draft.
Returns
A list of files, each with:
idstring- The file.
filenamestring- Its name.
mimeTypestring- Its type, as it was given.
sizenumber- Its size in bytes.
uploadedboolean- False until the upload is confirmed.
Errors
401invalid_key- The key is wrong, expired or revoked. With no Authorization header at all, the code is
missing_credentials. 403missing_scope- The key doesn’t have
attachments:list. TheX-Required-Scopeheader names what’s missing. 429rate_limited- More than 120 requests a minute from this key. Wait for
Retry-Afterseconds.