> ## Documentation Index
> Fetch the complete documentation index at: https://developers.redo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# supportComposerDraftSave

> Save your composer draft on a ticket's thread, as the help desk composer's autosave does. Nothing is sent. `expectedRevision` guards only against other API saves: a teammate's open composer autosaves over the thread's draft without checking it. On an email thread the draft goes to whom a reply would, without the quoted email. Returns null if the store has no such ticket. Throws SUPPORT_DRAFT_REVISION_STALE for a stale or missing `expectedRevision` or a teammate's draft, ACTION_REJECTED when the draft is scheduled to send, INVALID_UPLOAD, ATTACHMENTS_NOT_SUPPORTED or ATTACHMENTS_TOO_LARGE for files it can't hold, RICH_CONTENT_NOT_SUPPORTED for `richContent` the thread can't take, and TEAM_MEMBER_REQUIRED for a credential acting for no team member.

**Required scopes:** [`support_messages_send`](https://developers.redo.com/docs/api-reference/v3/reference/scopes#scope-support_messages_send)

## Arguments

**input** `[SupportComposerDraftSaveInput!](/docs/api-reference/v3/reference/support/support-composer-draft-save-input)` *required*

The draft.

**fields**

**attachments** `[\[SupportAttachmentInput!\]](/docs/api-reference/v3/reference/support/support-attachment-input)`

Files to add to the draft, as the composer's attach button adds them. Files to send, each uploaded with `supportAttachmentUploadCreate`; at most 10 per message, an API limit (the composer has none). Email providers cap the whole message (10 MB custom email, 20 MB Outlook, 25 MB Gmail), which ATTACHMENTS\_TOO\_LARGE reports. Replies on Instagram DM, Instagram comments, TikTok take none, and on Facebook, Facebook comments one JPEG, PNG or GIF image, as the composer offers (ATTACHMENTS\_NOT\_SUPPORTED). An upload that is missing, expired, already sent or not the declared type is INVALID\_UPLOAD.

**fields**

**contentType** `String!` *required*

The file's MIME type, such as application/pdf or image/png. A PNG, JPEG, GIF or PDF must be declared as what it is.

**filename** `String!` *required*

The file's name as the customer sees it, 1 to 255 characters, with no control characters.

**uploadId** `String!` *required*

The uploadId `supportAttachmentUploadCreate` returned.

**body** `String`

Plain text: 1 to 10,000 characters, and not only whitespace. Pass this or bodyHtml.

**bodyHtml** `String`

The body as HTML, in place of `body`, as the help desk composer writes it: at most 100,000 characters. It may use only what the composer's editor writes: the elements \<p>, \<div>, \<span>, \<br>, \<hr>, \<strong>, \<b>, \<em>, \<i>, \<u>, \<s>, \<sub>, \<sup>, \<small>, \<blockquote>, \<pre>, \<h1>, \<h2>, \<h3>, \<h4>, \<h5>, \<h6>, \<ul>, \<ol>, \<li>, \<a>, \<img>, \<table>, \<thead>, \<tbody>, \<tr>, \<td>, \<th>; the attributes class, style, title on any element; href, target, rel on \<a>; src, alt, width, height on \<img>; data-list on \<li>; data-variable on \<span>; colspan, rowspan on \<td>; colspan, rowspan on \<th>; URLs using http, https, mailto (http, https on \<img>), absolute only; the CSS properties background-color, border, border-bottom, border-collapse, border-left, border-right, border-top, color, font-family, font-size, font-style, font-weight, height, line-height, margin, margin-bottom, margin-left, margin-right, margin-top, max-height, max-width, padding, padding-bottom, padding-left, padding-right, padding-top, text-align, text-decoration, vertical-align, width, with no url() or other function that loads or runs anything; classes matching ^ql-\[\w-]+\$. Anything else is refused with BAD\_USER\_INPUT naming it; HTML comments, a doctype and empty attributes are removed. The plain text is derived from the HTML and must fit body's limit. Email threads only; another channel is BAD\_USER\_INPUT.

**email** `[SupportComposerDraftEmailInput](/docs/api-reference/v3/reference/support/support-composer-draft-email-input)`

For email threads only; on any other thread it is BAD\_USER\_INPUT.

**fields**

**bcc** `[String!]`

Addresses to blind copy. At most 20 across cc and bcc, each once, ignoring case. The store's own inboxes are left off.

**cc** `[String!]`

Addresses to copy. At most 20 across cc and bcc, each once, ignoring case. The store's own inboxes are left off.

**replyAll** `Boolean`

Also to everyone on the email the draft answers, like Reply all. Defaults to false.

**signature** `Boolean`

Append the store's team member email signature to the draft's HTML, as the composer does, as `supportTicketReply`'s `email.signature` does. Defaults to false.

**expectedRevision** `String`

The `revision` of your draft from SupportTicket.composerDrafts, to replace it; the draft keeps the email it answers. Leave it out to start a draft: on an email thread it answers the customer's last email. A draft saved, sent or discarded since, a teammate's draft, or a new draft where one already answers that email, is SUPPORT\_DRAFT\_REVISION\_STALE (409), and nothing is written.

**removeAttachmentIds** `[ID!]`

Files on the draft `expectedRevision` names to take off it, as the composer's remove does: ids from its `attachments`. One that isn't on that draft is BAD\_USER\_INPUT.

**richContent** `[SupportRichContentInput](/docs/api-reference/v3/reference/support/support-rich-content-input)`

An Apple Messages element the draft holds, as the composer's elements menu adds one, with the draft's body as its question. Only an Apple Messages thread takes one, and a saved element can't be drafted: it is resolved when it is sent. Either is RICH\_CONTENT\_NOT\_SUPPORTED. Leave it out to save the draft without one.

**fields**

**appExtensionRequest** `[SupportRichContentAppExtensionRequestInput](/docs/api-reference/v3/reference/support/support-rich-content-app-extension-request-input)`

An App Extension request.

**applePayRequest** `[SupportRichContentApplePayRequestInput](/docs/api-reference/v3/reference/support/support-rich-content-apple-pay-request-input)`

An Apple Pay request.

**form** `[SupportRichContentFormInput](/docs/api-reference/v3/reference/support/support-rich-content-form-input)`

A Form.

**listPicker** `[SupportRichContentListPickerInput](/docs/api-reference/v3/reference/support/support-rich-content-list-picker-input)`

A List Picker.

**quickReply** `[SupportRichContentQuickReplyInput](/docs/api-reference/v3/reference/support/support-rich-content-quick-reply-input)`

A Quick Reply.

**savedElement** `[SupportRichContentSavedElementInput](/docs/api-reference/v3/reference/support/support-rich-content-saved-element-input)`

An element from the brand's saved library.

**signInRequest** `[SupportRichContentSignInRequestInput](/docs/api-reference/v3/reference/support/support-rich-content-sign-in-request-input)`

A sign-in request.

**timePicker** `[SupportRichContentTimePickerInput](/docs/api-reference/v3/reference/support/support-rich-content-time-picker-input)`

A Time Picker.

**threadId** `ID!` *required*

One of the ticket's threads, on a channel that takes replies (not voice).

**ticketId** `ID!` *required*

The id of the ticket.

## Returns

**supportComposerDraftSave** `[SupportComposerDraft](/docs/api-reference/v3/reference/support/support-composer-draft)`

An unsent reply in the help desk composer on one of a ticket's threads, as the composer autosaves it. A thread has one per email it answers (one on a thread that isn't email), and every teammate sees it, as in the help desk. Only its sender can replace or discard it through the API. The help desk's autosave doesn't check a revision: a composer left open on the thread can save over a draft the API saved, and becomes its sender. Read composerDrafts again before you save over a draft.

**fields**

**attachments** `[\[MessageAttachment!\]!](/docs/api-reference/v3/reference/support/message-attachment)` *required*

The files on the draft, as the composer shows them under it. An email's inline images are listed too.

**fields**

**contentId** `String`

The id an email's HTML uses to show this image, as `cid:` followed by it. Null unless `inline` is true.

**description** `String`

The file's name, as shown in the help desk. Null when none was saved; the help desk then shows it as Attachment.

**id** `ID!` *required*

The id of this attachment.

**inline** `Boolean!` *required*

Whether this is an image an email's HTML shows in its body, referenced as `cid:` followed by `contentId`. False for a regular file.

**mimeType** `String`

The file's MIME type, such as image/png. Null when it wasn't recorded.

**url** `String!` *required*

Download link. A file the store keeps private gets a signed link that works for about one hour after the read; read the message again for a fresh one. Any other file's link doesn't expire.

**bcc** `[String!]!` *required*

Who an email draft blind copies. Empty on other channels.

**body** `String!` *required*

The draft's words as plain text.

**bodyHtml** `String`

The draft as the composer's editor holds it, on an email thread. Null on other channels.

**cc** `[String!]!` *required*

Who an email draft copies. Empty on other channels.

**createdAt** `[DateTime!](/docs/api-reference/v3/reference/common/date-time)` *required*

When the draft was first saved.

**id** `ID!` *required*

The id of this draft. Replies and AI drafts share its id space.

**inReplyTo** `[Message](/docs/api-reference/v3/reference/support/message)`

The customer email the draft answers, on an email thread. Null on other channels, or when the message is hidden from the API.

**fields**

**aiFeedback** `[MessageAiFeedback](/docs/api-reference/v3/reference/support/message-ai-feedback)`

The team's rating of this message. Null unless `authorType` is AI\_AGENT and someone has rated it.

**Requires:** [`support_tickets_read`](https://developers.redo.com/docs/api-reference/v3/reference/scopes#scope-support_tickets_read)

**fields**

**comment** `String`

What the team said about the response. Null when they left none.

**ratedAt** `[DateTime!](/docs/api-reference/v3/reference/common/date-time)` *required*

When the message was last rated.

**rating** `[MessageAiFeedbackRating!](/docs/api-reference/v3/reference/support/message-ai-feedback-rating)` *required*

Whether the response was good or bad.

**aiLookups** `[SupportAiLookupTrace](/docs/api-reference/v3/reference/support/support-ai-lookup-trace)`

What the AI looked up (orders, products, knowledge, links) before this message, as the help desk shows it above the message: each lookup on the thread attaches to the first message after it that the customer didn't write. Null when nothing was looked up before it. A request reads its messages 100 at a time, for 10 points each time.

**Requires:** [`support_tickets_read`](https://developers.redo.com/docs/api-reference/v3/reference/scopes#scope-support_tickets_read)

**fields**

**steps** `[\[SupportAiLookupStep!\]!](/docs/api-reference/v3/reference/support/support-ai-lookup-step)` *required*

Each lookup, oldest first: at most the 200 newest before the message.

**attachments** `[\[MessageAttachment!\]](/docs/api-reference/v3/reference/support/message-attachment)`

The message's files, oldest first, as the help desk shows them, an email's inline images included. A removed file is left out, and so is one whose link can't be made right now. Empty when the message has none. Null, with an error, when they can't be read. A request reads its messages' files 100 messages at a time, for 10 points each time.

**Requires:** [`support_tickets_read`](https://developers.redo.com/docs/api-reference/v3/reference/scopes#scope-support_tickets_read)

**fields**

**contentId** `String`

The id an email's HTML uses to show this image, as `cid:` followed by it. Null unless `inline` is true.

**description** `String`

The file's name, as shown in the help desk. Null when none was saved; the help desk then shows it as Attachment.

**id** `ID!` *required*

The id of this attachment.

**inline** `Boolean!` *required*

Whether this is an image an email's HTML shows in its body, referenced as `cid:` followed by `contentId`. False for a regular file.

**mimeType** `String`

The file's MIME type, such as image/png. Null when it wasn't recorded.

**url** `String!` *required*

Download link. A file the store keeps private gets a signed link that works for about one hour after the read; read the message again for a fresh one. Any other file's link doesn't expire.

**authorType** `[MessageAuthorType!](/docs/api-reference/v3/reference/support/message-author-type)` *required*

Who wrote the message.

**channel** `[MessageChannel!](/docs/api-reference/v3/reference/support/message-channel)` *required*

The channel the message is on.

**content** `String`

The message as plain text. Null for a message with no text, such as an image.

**customer** `[Customer](/docs/api-reference/v3/reference/customers/customer)`

The customer who wrote it. Null unless `authorType` is CUSTOMER, and null when their record was deleted.

**Requires:** [`customers_read`](https://developers.redo.com/docs/api-reference/v3/reference/scopes#scope-customers_read)

**fields**

**createdAt** `[DateTime!](/docs/api-reference/v3/reference/common/date-time)` *required*

When the customer record was created.

**customFields** `[JSON](/docs/api-reference/v3/reference/common/json)`

Merchant-defined custom field values, keyed by each field's name. Null when the customer has no custom fields set.

**email** `String`

The customer's primary email address.

**events** `[CustomerEventConnection](/docs/api-reference/v3/pagination)`

What this shopper did, newest first: the events the help desk's ticket timeline shows for them, of every type unless `types` narrows it. Each read costs 10 points plus the page size; each `events` field in a query reserves 10 reads, and the request is refunded the ones it didn't make. A request can read the events of at most 10 customers, and past that this field errors with TOO\_MANY\_CUSTOMER\_EVENT\_READS. One customer read again with the same arguments is read once.

**Requires:** [`customers_read`](https://developers.redo.com/docs/api-reference/v3/reference/scopes#scope-customers_read)

**fields**

**Arguments**

**after** `String`

Read events older than this cursor, from `pageInfo.endCursor`.

**before** `String`

Read events newer than this cursor, from `pageInfo.startCursor`.

**first** `Int`

Page size reading older events (default 25, max 100).

**last** `Int`

Page size reading newer events (default 25, max 100).

**occurredAfter** `[DateTime](/docs/api-reference/v3/reference/common/date-time)`

Only events at or after this instant.

**occurredBefore** `[DateTime](/docs/api-reference/v3/reference/common/date-time)`

Only events before this instant.

**types** `[\[CustomerEventType!\]](/docs/api-reference/v3/reference/events/customer-event-type)`

Only events of these types. Omitted: every type, as the help desk's ticket timeline shows them. An empty list fails with INVALID\_FILTER.

**firstName** `String`

The customer's first name.

**id** `ID!` *required*

The id of this customer.

**lastName** `String`

The customer's last name.

**legacyId** `String!` *required*

The customer's legacy identifier (the source Mongo ObjectId), accepted anywhere an `id` is.

**location** `[CustomerLocation](/docs/api-reference/v3/reference/customers/customer-location)`

The customer's current location, if known.

**phoneNumber** `String`

The customer's primary phone number.

**subscriptionCharges** `[CustomerSubscriptionCharges](/docs/api-reference/v3/reference/customers/customer-subscription-charges)`

What the customer has paid on their subscriptions in the store's subscription provider (Recharge), found by their email, as the help desk ticket sidebar's total spent and total charges show it. Nothing paid when the customer has no email or the store has no Recharge integration. Unlike the sidebar, which shows them only beside a subscription, these are read for any customer Recharge knows, with or without a subscription. Null, with an error, when Recharge can't be read for this customer. Counts toward the same 10 customers a request as `subscriptions`; past that the field is null with BAD\_USER\_INPUT. Each customer costs 10 points.

**Requires:** [`subscriptions_read`](https://developers.redo.com/docs/api-reference/v3/reference/scopes#scope-subscriptions_read)

**subscriptions** `[\[CustomerSubscription!\]](/docs/api-reference/v3/reference/customers/customer-subscription)`

The customer's subscriptions in the store's subscription provider (Recharge), found by their email, as the help desk ticket sidebar lists them: active first, then expired, then canceled. Empty when the customer has no email or the store has no Recharge integration. Null, with an error, when Recharge can't be read for this customer; the sidebar shows none then. A request reads them for at most 10 customers, as each costs Recharge calls the store's sidebar and customer portal share; past that the field is null with BAD\_USER\_INPUT. Each customer costs 10 points.

**Requires:** [`subscriptions_read`](https://developers.redo.com/docs/api-reference/v3/reference/scopes#scope-subscriptions_read)

**supportTickets** `[SupportTicketConnection!](/docs/api-reference/v3/pagination)` *required*

The help desk tickets this customer is the primary contact on any thread of, newest first. Every ticket whose `customer` is this customer is here.

**Requires:** [`support_tickets_read`](https://developers.redo.com/docs/api-reference/v3/reference/scopes#scope-support_tickets_read)

**fields**

**Arguments**

**after** `String`

Forward pagination cursor — returns tickets after it.

**before** `String`

Backward pagination cursor — returns tickets before it.

**first** `Int`

Forward pagination: returns the first N tickets (max 100, default 25). Use with `after`; mutually exclusive with `last`/`before`.

**last** `Int`

Backward pagination: returns the last N tickets (max 100, default 25). Use with `before`; mutually exclusive with `first`/`after`.

**suppressions** `[\[CustomerSuppression!\]!](/docs/api-reference/v3/reference/customers/customer-suppression)` *required*

Active team and global marketing suppressions on this customer's email addresses and phone numbers.

**tags** `[CustomerTagConnection!](/docs/api-reference/v3/pagination)` *required*

The tags on this customer, from the store's customer tag catalog, A–Z by name.

**Requires:** [`customers_read`](https://developers.redo.com/docs/api-reference/v3/reference/scopes#scope-customers_read)

**fields**

**Arguments**

**after** `String`

Forward pagination cursor — returns tags after it.

**before** `String`

Backward pagination cursor — returns tags before it.

**first** `Int`

Forward pagination: returns the first N tags (max 100, default 25). Use with `after`; mutually exclusive with `last`/`before`.

**last** `Int`

Backward pagination: returns the last N tags (max 100, default 25). Use with `before`; mutually exclusive with `first`/`after`.

**updatedAt** `[DateTime!](/docs/api-reference/v3/reference/common/date-time)` *required*

When the customer record was last updated.

**id** `ID!` *required*

The id of this message.

**inReplyTo** `[Message](/docs/api-reference/v3/reference/support/message)`

The message this one replies to. Null when it isn't a reply, or that message is hidden.

**Requires:** [`support_tickets_read`](https://developers.redo.com/docs/api-reference/v3/reference/scopes#scope-support_tickets_read)

**sentAt** `[DateTime!](/docs/api-reference/v3/reference/common/date-time)` *required*

When the message was sent or received.

**teamMember** `[TeamMember](/docs/api-reference/v3/reference/common/team-member)`

The team member who wrote it. Null unless `authorType` is TEAM\_MEMBER, and null when they've left the team.

**Requires:** [`support_tickets_read`](https://developers.redo.com/docs/api-reference/v3/reference/scopes#scope-support_tickets_read)

**fields**

**email** `String`

Email address. Null when the user has none.

**id** `ID!` *required*

m\_us\_… id, the same id the app and MCP tools use.

**name** `String`

Display name. Null when the user hasn't set one.

**supportNotificationPreferences** `[SupportNotificationPreferences](/docs/api-reference/v3/reference/support/support-notification-preferences)`

Which help desk notifications the team member gets: what the help desk's notifier reads for them, with defaults for what they never saved. The same settings as the Notifications tab of their profile. Null when the user can't be read. A request reads its team members 100 at a time, for 10 points each time.

**Requires:** [`support_config_read`](https://developers.redo.com/docs/api-reference/v3/reference/scopes#scope-support_config_read)

**supportShiftStatus** `[SupportShiftStatus!](/docs/api-reference/v3/reference/support/support-shift-status)` *required*

The agent's live shift status, worked out when the request runs.

**Requires:** [`support_config_read`](https://developers.redo.com/docs/api-reference/v3/reference/scopes#scope-support_config_read)

**supportWorkSchedule** `[SupportWorkSchedule!](/docs/api-reference/v3/reference/support/support-work-schedule)` *required*

The agent's support working hours. An agent with no saved schedule returns enabled false.

**Requires:** [`team_members_manage`](https://developers.redo.com/docs/api-reference/v3/reference/scopes#scope-team_members_manage)

**thread** `[MessageThread](/docs/api-reference/v3/reference/support/message-thread)`

The thread the message is on. Null when the thread is on a channel the API doesn't expose.

**Requires:** [`support_tickets_read`](https://developers.redo.com/docs/api-reference/v3/reference/scopes#scope-support_tickets_read)

**fields**

**channel** `[MessageChannel!](/docs/api-reference/v3/reference/support/message-channel)` *required*

The channel the thread is on.

**createdAt** `[DateTime!](/docs/api-reference/v3/reference/common/date-time)` *required*

When the thread started.

**id** `ID!` *required*

The id of this thread.

**messages** `[MessageConnection!](/docs/api-reference/v3/pagination)` *required*

Every message on the thread, oldest first, including internal notes. A thread can span several tickets, so this can hold messages no one ticket has.

**Requires:** [`support_tickets_read`](https://developers.redo.com/docs/api-reference/v3/reference/scopes#scope-support_tickets_read)

**fields**

**Arguments**

**after** `String`

Forward pagination cursor — returns messages after it.

**before** `String`

Backward pagination cursor — returns messages before it.

**first** `Int`

Forward pagination: returns the first N messages (max 100, default 25). Use with `after`; mutually exclusive with `last`/`before`.

**last** `Int`

Backward pagination: returns the last N messages (max 100, default 25). Use with `before`; mutually exclusive with `first`/`after`.

**replyAll** `Boolean!` *required*

Whether an email draft replies to everyone on the email it answers, as Reply all does. False on other channels.

**revision** `String!` *required*

Pass this as supportComposerDraftSave's `expectedRevision` to replace the draft. Opaque: it changes on every save.

**scheduledSendAt** `[DateTime](/docs/api-reference/v3/reference/common/date-time)`

When a SCHEDULED draft sends. Null otherwise.

**sendError** `String`

Why a FAILED draft's send failed. Null otherwise.

**sender** `[TeamMember](/docs/api-reference/v3/reference/common/team-member)`

The team member whose draft it is: who saved it last. Null when they are no longer on the team.

**fields**

**email** `String`

Email address. Null when the user has none.

**id** `ID!` *required*

m\_us\_… id, the same id the app and MCP tools use.

**name** `String`

Display name. Null when the user hasn't set one.

**supportNotificationPreferences** `[SupportNotificationPreferences](/docs/api-reference/v3/reference/support/support-notification-preferences)`

Which help desk notifications the team member gets: what the help desk's notifier reads for them, with defaults for what they never saved. The same settings as the Notifications tab of their profile. Null when the user can't be read. A request reads its team members 100 at a time, for 10 points each time.

**Requires:** [`support_config_read`](https://developers.redo.com/docs/api-reference/v3/reference/scopes#scope-support_config_read)

**fields**

**playSoundOnDesktop** `Boolean!` *required*

Whether a browser notification plays a sound.

**preferences** `[\[SupportNotificationPreference!\]!](/docs/api-reference/v3/reference/support/support-notification-preference)` *required*

One entry for every platform and event, including ones the team member never changed, which read as their defaults.

**supportShiftStatus** `[SupportShiftStatus!](/docs/api-reference/v3/reference/support/support-shift-status)` *required*

The agent's live shift status, worked out when the request runs.

**Requires:** [`support_config_read`](https://developers.redo.com/docs/api-reference/v3/reference/scopes#scope-support_config_read)

**fields**

**manualOverride** `[SupportShiftOverride](/docs/api-reference/v3/reference/support/support-shift-override)`

The agent's manual on/off toggle. Null when they follow their schedule.

**nextChange** `[SupportShiftChange!](/docs/api-reference/v3/reference/support/support-shift-change)` *required*

The next time the schedule alone flips onShift. Ignores any manual override. Always in the future, or the next local midnight when nothing changes within 14 days.

**onShift** `Boolean!` *required*

True when auto-assignment can give the agent tickets now.

**reason** `[SupportShiftStatusReason!](/docs/api-reference/v3/reference/support/support-shift-status-reason)` *required*

Which layer decided onShift.

**supportWorkSchedule** `[SupportWorkSchedule!](/docs/api-reference/v3/reference/support/support-work-schedule)` *required*

The agent's support working hours. An agent with no saved schedule returns enabled false.

**Requires:** [`team_members_manage`](https://developers.redo.com/docs/api-reference/v3/reference/scopes#scope-team_members_manage)

**fields**

**assignableChannels** `[\[SupportChannel!\]](/docs/api-reference/v3/reference/support/support-channel)`

Channels the agent takes auto-assigned tickets on. Null means every channel.

**dateOverrides** `[\[SupportWorkScheduleDateOverride!\]!](/docs/api-reference/v3/reference/support/support-work-schedule-date-override)` *required*

Dates whose hours replace that day's weekly hours, earliest first.

**enabled** `Boolean!` *required*

Whether the schedule is on. When false, the agent counts as on shift at all times.

**timeZone** `String!` *required*

IANA time zone the hours are in, such as America/New\_York. The store's time zone when the agent has never saved a schedule.

**weeklyHours** `[\[SupportWorkScheduleDay!\]!](/docs/api-reference/v3/reference/support/support-work-schedule-day)` *required*

Recurring hours. Always seven entries, Monday through Sunday.

**status** `[SupportComposerDraftStatus!](/docs/api-reference/v3/reference/support/support-composer-draft-status)` *required*

Whether it is being written, scheduled, sending or failed.

**thread** `[MessageThread](/docs/api-reference/v3/reference/support/message-thread)`

The thread the draft is on. Null when the thread is on a channel the API doesn't expose.

**fields**

**channel** `[MessageChannel!](/docs/api-reference/v3/reference/support/message-channel)` *required*

The channel the thread is on.

**createdAt** `[DateTime!](/docs/api-reference/v3/reference/common/date-time)` *required*

When the thread started.

**id** `ID!` *required*

The id of this thread.

**messages** `[MessageConnection!](/docs/api-reference/v3/pagination)` *required*

Every message on the thread, oldest first, including internal notes. A thread can span several tickets, so this can hold messages no one ticket has.

**Requires:** [`support_tickets_read`](https://developers.redo.com/docs/api-reference/v3/reference/scopes#scope-support_tickets_read)

**fields**

**Arguments**

**after** `String`

Forward pagination cursor — returns messages after it.

**before** `String`

Backward pagination cursor — returns messages before it.

**first** `Int`

Forward pagination: returns the first N messages (max 100, default 25). Use with `after`; mutually exclusive with `last`/`before`.

**last** `Int`

Backward pagination: returns the last N messages (max 100, default 25). Use with `before`; mutually exclusive with `first`/`after`.

**Fields**

**edges** `[\[MessageEdge!\]!](/docs/api-reference/v3/pagination)` *required*

The list of edges (each a node plus its pagination `cursor`).

**nodes** `[\[Message!\]!](/docs/api-reference/v3/reference/support/message)` *required*

The nodes in this page, without the edge/cursor wrapper — a convenience over `edges`.

**pageInfo** `[PageInfo!](/docs/api-reference/v3/pagination)` *required*

Pagination metadata for the current page.

**to** `[String!]!` *required*

Who an email draft goes to. Empty on other channels.

**updatedAt** `[DateTime!](/docs/api-reference/v3/reference/common/date-time)` *required*

When the draft was last saved.

## Errors

Besides the [errors any request can return](https://developers.redo.com/docs/api-reference/v3/errors.md), this operation fails with these codes in `extensions.code`.

| Code | HTTP status | Meaning | Retry |
| - | - | - | - |
| `TEAM_MEMBER_REQUIRED` | `403` | The write is a team member's own, such as a composer draft, and the credential acts for no team member. Nothing was written. | Call with a credential that acts for a team member: the public MCP's or a merchant-app session's. |
| `BAD_USER_INPUT` | `400` | An argument is invalid, or names something the store doesn't have. The message says which. Nothing was written. | Fix the input the message names, then send it again. |
| `INVALID_UPLOAD` | `400` | An uploadId has no file: it was never uploaded, expired, or was already used. Or the file isn't the one described, such as a PDF declared as an image. Nothing was sent. | Start a new upload, PUT the file, and send again with its uploadId and the file's real content type. |
| `ATTACHMENTS_NOT_SUPPORTED` | `422` | The thread's channel can't carry the attachments, as in the help desk composer: Instagram and TikTok replies take no files, and Facebook replies take one image. Nothing was sent. | Send without the attachments, or reply on another thread. |
| `SUPPORT_DRAFT_REVISION_STALE` | `409` | The composer draft isn't at expectedRevision: it was saved, sent or discarded since, a teammate holds it, or the thread already has a draft for that email. The message says which. Nothing was written. | Read SupportTicket.composerDrafts again, reapply your change, and save with the draft's current revision. A teammate's draft can only be replaced by them. |
| `RICH_CONTENT_NOT_SUPPORTED` | `422` | The rich content can't go on this thread, as the help desk composer offers it only where it can: the thread isn't Apple Messages, the customer's device can't show the element, or the business can't send it (a saved element it doesn't have, or a request it isn't set up for). The message says which. Nothing was sent. | Send without richContent, send an element the message allows, or reply on an Apple Messages thread. |
| `ATTACHMENTS_TOO_LARGE` | `422` | The attachments and body together are larger than the email provider accepts, as the composer refuses them. The message names the limit. Nothing was sent. | Send fewer or smaller files. |
| `ACTION_REJECTED` | `422` | The record can't take the action now, or the platform it belongs to refused it. The message says why, in words a merchant can act on. | Act on the message, such as reconnecting the store's account, then send it again. A platform rate limit clears on its own after a few minutes. |
| `TRY_AGAIN` | `503` | The change couldn't start for a passing reason, and nothing was written or sent. | Send the same request again after a short wait, with the same idempotencyKey if it has one. |
| `INTERNAL_SERVER_ERROR` | `500` | Something failed on Redo's side. The change may or may not have been made. | Read the record to see whether the change was made before sending it again. A send with an idempotencyKey is safe to retry with the same key. |

## Example

```graphql theme={null}
mutation {
  supportComposerDraftSave(input: { ... }, ticketId: "...") {
    bcc
    body
    bodyHtml
    cc
    createdAt
    id
    replyAll
    revision
    # ...
  }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.