Skip to main content
cURL
Cost: 1 API credit per write.
Needs the seller’s Chrome open somewhere, with the Alura extension and signed in to Etsy for this shop. The script or agent can run on another computer. An offline extension answers extension_offline; the live status can name a more specific connection problem. Errors cost no API credits. See Chrome extension.
Needs the messages:write scope and the Customer analytics workspace permission. If sending is turned off for the workspace, it answers 403 send_not_enabled, and nothing is read or sent.
A message can’t be taken back. The buyer gets it as soon as Etsy takes it.

A new conversation, or the order’s own

Alura reads the order on Etsy first. An order Etsy doesn’t show in this shop answers 404. A first message is text only: attachments go into an existing conversation. Send the text first, then the files with the same route. If the buyer writes between the read and the send, the call answers 409 conversation_changed and sends nothing. Read the order’s conversation and send again with a new Idempotency-Key.

The answer

After sending, Alura reads the order’s conversation back from Etsy:
  • 200 with outcome: sent and the conversation_id once Etsy shows the message.
  • 202 with the change, outcome: unknown, when Etsy doesn’t show it yet, or its answer was lost. The message may have reached the buyer, so check the order on Etsy. Alura never sends it again: a retry with the same Idempotency-Key answers that change.
A refusal before the message left, such as the Alura extension being offline, answers its error and sends nothing.

What it needs

Chrome open with the Alura extension, logged into the shop on Etsy. extension_offline, etsy_not_logged_in or etsy_shop_mismatch say which is missing. Starting a conversation needs extension 0.2.188 or later: an older one answers 409 extension_update_required. A shop takes 20 Etsy writes a minute and 500 a day: over that, 429 live_rate_limited. Idempotency-Key is required. It is charged only once Etsy shows the message: a refusal or an unknown outcome costs nothing, and dry_run=true reads the order and shows the exact message for free.

Authorizations

Authorization
string
header
required

An API key: Authorization: Bearer alura_sk_....

Headers

Idempotency-Key
string

Makes a retry safe: the same key with the same request within 24 hours answers from the first write (with Idempotent-Replayed: true) and never writes to Etsy twice; a write that failed with nothing written (Retry-After set) is tried again under it. The same key with a different request is a 409 conflict; while the first request still runs, 409 idempotency_processing (or the same 202). Required for relative changes such as adjust_price, and to add a listing file, image or video, or to change the alt text of an image (each uploads to Etsy, so a blind retry would upload again); a dry_run=true needs none.

Required string length: 1 - 255

Path Parameters

id
string
required

The Etsy order (receipt) ID.

Pattern: ^[1-9][0-9]{0,14}$
Example:

"3456789012"

Query Parameters

dry_run
boolean

true: plan the write and send nothing: what it would change, the Etsy calls it would make, and nothing reserved, charged or recorded. Free; counts toward the per-minute write limit.

Body

application/json
body
string
required

The message, 1-5000 characters; line breaks are kept.

shop_id
string

The Etsy shop ID of one of the workspace's connected shops; optional when the workspace has one.

Pattern: ^[0-9]{1,20}$
attachments
object[]

Files to send with the message, up to 3, each uploaded first (POST /v1/workspace/conversations/attachments) for this shop, within 24 hours. Only into an order's existing conversation: an order's first message is text (400 otherwise). Only where attachments are enabled for the workspace (else 403 attachments_not_enabled).

Required array length: 1 - 3 elements

Response

OK: the write landed on Etsy (or, with dry_run=true, what it would do).

object
string
required
Allowed value: "workspace.order_message_send"
order_id
string
required

The Etsy order (receipt) ID.

shop_id
string
required

The Etsy shop ID, as a string.

conversation_id
string | null
required

The Etsy conversation the message is in. null only when Etsy's answer to a first message named none: GET /v1/workspace/orders/{id}/conversation finds it.

created_conversation
boolean
required

Whether this message started the order's conversation (the buyer had never written about the order); false when it went into the existing one.

outcome
string
required

sent: Etsy took the message and the order's conversation, read back from Etsy, shows it. Anything less is the 202 answer with the change, outcome: unknown: the message may have reached the buyer, so check the order's conversation on Etsy; it is never sent again.

Allowed value: "sent"
change
object
required

The write's change.