Create Message

Create a new message or internal note in an existing ticket. A Message is a reply to the buyer and is queued for delivery to the channel; a Note is internal and never sent.

Channels. A Note can be added to a ticket on any channel. A Message can be added to tickets on email, website and chat channels (website type), eBay, Amazon, Walmart, Etsy, Allegro, Otto, Bol, Fnac, Cdiscount, Real, Newegg, Sears, Tesco, ManoMano, Veepee, Reverb, Backmarket, TikTok Shop, Mirakl, ChannelEngine and the shop platforms (Shopify, Magento, BigCommerce, WooCommerce, PrestaShop, Shopware, Wix). On a ticket on any other channel, such as Facebook, Instagram, WhatsApp, voice, Trustpilot or an internal ticket, it returns error code 4013: reply from the eDesk app.

Mirakl channels and message recipients. Mirakl requires every message to name who it goes to - the customer, the marketplace operator, or both - and this API has no field for that choice. Messages created here are therefore addressed to whatever the Mirakl channel's Default messages recipients setting names, the same fallback auto replies and bulk replies already use.

Configure it in eDesk under Settings > Mailbox > Channels: edit the Mirakl channel, open its marketplace details tab (named after the marketplace, for example "Mirakl Details"), and set Default messages recipients to Customer, Operator or Customer & Operator. Prefer Customer & Operator: on a reply the setting is matched against the people already on the Mirakl thread, so a narrower value can leave a message with nobody to go to.

While the setting is left at "Not selected" a type=Message with send=true on a Mirakl ticket is rejected with error code 4024 rather than accepted and silently left undelivered. type=Note and send=false are unaffected - neither is handed to the marketplace, so neither reads the setting. Use the eDesk UI reply box when a single message needs recipients other than the channel default.

Older Mirakl channels that were connected with an API key rather than OAuth are the one exception: they send over Mirakl's legacy order-message endpoint, which always addresses the customer and has no recipient choice at all. On those channels "Default messages recipients" is not consulted, no 4024 is raised, and every message goes to the customer regardless of what the setting says.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
string

The message's subject; on an email channel, the email's. A Message that is sent (send=true) without one gets "Re: " and the ticket's subject, as eDesk's reply box gives it.

attachments
array of objects | null

Files to attach. On a Message that is sent (send=true), they are refused with error code 4013 where eDesk cannot send files to the customer (Fnac, where eDesk's reply box offers none), rather than the text going out without them; and a file given as a url that gives nothing (eDesk cannot download it, or it is empty) is refused with 4011, rather than sent empty. A note keeps such a file, empty.

attachments
string
required
number
required

The ticket to add the message or note to. A Message on a ticket whose channel the API cannot reply on returns error code 4013; a Note can be added to a ticket on any channel.

string
boolean | null

If true (default), the response will contain the full message object

string
enum
required

Message is a reply to the buyer and is the only type that is delivered to the channel. Note is an internal note, never sent, and can be added to any ticket.

Allowed:
string
enum
Allowed:
boolean | null

If true the message item is queued for delivery to the channel. Ignored for Note, which is never sent. Delivery happens asynchronously, so a 200 here means the message was accepted and queued, not that the channel has received it. As from the eDesk reply box, it is held back for the sending delay of the user it is written by (their eDesk profile setting, none by default); until it goes out, it can be cancelled from the ticket in eDesk. On a Mirakl ticket this is the only combination that reads the channel's "Default messages recipients" setting, and the request is refused with error code 4024 while that setting is empty.

integer | null

The eDesk user the message or note is written by, as GET /users lists them. Defaults to the user the API token belongs to. It must be an active user of your account, otherwise error code 4002 (unknown, deleted or inactive user) or 4004 (a user of another account). Ignored for an Incoming message, which comes from the ticket's contact.

string | null
enum

The status to move the ticket to once the message or note is added, e.g. Closed to reply and close in one call. Applied after the message, so it wins over the move to Pending an Incoming message makes. Scheduled is not accepted here, as it needs a date: update the ticket instead.

Allowed:
Responses

Language
Credentials
Bearer
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json