Approve a draft and send it
approve_draftSends a draft to the contact, with the text as given in "body" when you edited it. The draft keeps the original wording and the sent message keeps what actually left, so the two stay comparable afterwards.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | The text to send instead of the one Iris wrote. Left out, the draft goes out as it stands. | |
| status | No | Where the thread stands once the answer is out. Left out, "answered". "in_progress" for an answer that only holds the contact while someone keeps working on the case (an acknowledgement, a request passed on), "closed" for the answer that settles it. | |
| draft_id | Yes | The id of the draft, as list_drafts gives it. | |
| attachments | No | Files to send along, up to 10 and 7 MiB in total. Each one is named EITHER by "upload_id", a file already pushed to a slot from create_attachment_upload, OR inline by "filename" and "content_base64". Prefer the upload for anything but a few lines of text: a file written out as base64 has to be produced character by character, which a real document overruns long before the 7 MiB cap. |