Skip to main content
cURL
Cost: Free.
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. Send Idempotency-Key to retry safely. Nothing is sent to the buyer.

Write the draft

How it is saved

Alura first reads the conversation live from Etsy. That proves it is this shop’s (another shop’s answers 404) and records the newest message from the buyer or the shop that the draft answers (source_message_id). When that read fails (extension_offline, etsy_not_logged_in and the other live errors), nothing is saved. A conversation holds one pending draft from the API at a time, so a new one dismisses the earlier one. While the seller is sending a draft of the conversation, a create answers 409 draft_sending. Retry in a moment.

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 returns the first result (with Idempotent-Replayed: true) instead of writing again. The same key with a different request is a 409 conflict; while the first request still runs, 409 idempotency_processing.

Required string length: 1 - 255

Path Parameters

id
string
required

The Etsy conversation ID.

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

"1900000002"

Body

application/json
body
string
required

The reply text, 1-5000 characters. The seller reviews it before anything is sent.

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}$
language
string

The language the draft is written in, as a language tag (en, pt-BR).

Pattern: ^[a-z]{2,3}(-[A-Za-z0-9]{2,8})?$
guide_ids
string<uuid>[]

The guidance entries the draft follows (their IDs); each must be the workspace's.

Maximum array length: 20
Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
article_ids
string<uuid>[]

The articles the draft follows (their IDs); each must be the workspace's.

Maximum array length: 20
Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$

Response

OK

object
string
required
Allowed value: "workspace.message_draft"
id
string
required

The draft ID.

conversation_id
string
required

The Etsy conversation ID.

shop_id
string
required

The Etsy shop ID, as a string.

status
enum<string>
required

pending: waiting for the seller to review and send it; used: the seller sent it; dismissed: dismissed, or replaced by a newer draft; stale: someone (the buyer or the shop) wrote after the message it answers, or its send claim expired.

Available options:
pending,
used,
dismissed,
stale
body
string
required

The reply text the seller reviews before sending.

language
string | null
required

The language the draft is written in, as given when it was created; null when none was given.

author
object
required

Who wrote the draft through the API.

guide_ids
string[]
required

The guidance entries the draft follows.

article_ids
string[]
required

The articles the draft draws on.

source_message_id
string
required

The newest message from the buyer or the shop when the draft was written.

created_at
string
required

ISO 8601, UTC.

updated_at
string
required

ISO 8601, UTC.