Retrieve a draft
One draft with its body, also after it was sent (status sent, email_id set).
/inboxes/{inbox_id}/drafts/{draft_id}AuthorizationJeton Bearer · headerrequisA BillionSend API key (bs_…).
inbox_idstringrequisThe inbox ID or its email address, such as support@example.com
draft_idstring<uuid>requisDraft
objectstringrequisinbox_draftidstring<uuid>requistypestringrequisstandalonereplytostring[] | nullrequisccstring[]requisbccstring[]requissubjectstring | nullrequishtmlstring | nullrequistextstring | nullrequisthread_idstring<uuid> | nullrequisreply_to_email_idstring<uuid> | nullrequisemail_idstring<uuid> | nullrequiscreated_atstringrequisupdated_atstringrequisattachmentsobject[]requisThe draft's files, by position; empty once it is sent, rejected or expired
Afficher les propriétésMasquer les propriétés
objectidstringrequisfilenamestringrequiscontent_typestringrequissizeintegerrequisstatusstringrequisdraftpending_approvalsentrejectedexpiredapproval_reasonsstring[]requisforwardbooleanrequisdecided_bystring | nullrequisdecided_atstring | nullrequisexpires_atstring | nullrequissend_atstring | nullrequisBillionSend extension: when the scheduled send goes out; null when not scheduled
send_errorstring | nullrequisBillionSend extension: the error name of the last scheduled send that was refused (e.g. invalid_api_key, inbox_send_cap_reached, not_found); null otherwise
Missing, malformed, unknown or revoked API key
statusCodenumberrequisnamestringrequismessagestringrequisRestricted API key, the inbox's or the shared domain's rules, or held mail
statusCodenumberrequisnamestringrequismessagestringrequisNot found
statusCodenumberrequisnamestringrequismessagestringrequisIdempotency conflict, or a draft already sent
statusCodenumberrequisnamestringrequismessagestringrequisValidation error
statusCodenumberrequisnamestringrequismessagestringrequisThe inbox's daily send limit, or the team's daily limit for mail from the shared domain, or the rate limit (rate_limit_exceeded, with Retry-After)
statusCodenumberrequisnamestringrequismessagestringrequis