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.
A closed conversation is archived on Etsy; an open or snoozed one is in Etsy’s inbox. Alura sends Etsy the archive or unarchive only when that has to change, and records the state once Etsy took it. Needs messages:write and the Customer analytics workspace permission. Every state is absolute: repeating a call is safe, and it repairs a state Etsy and Alura disagree on.
A refusal records nothing and the error says why. While Etsy’s answer is unknown the call answers 202 with the change and records nothing; repeat the call later.
Alura’s Messages page writes the same state, and the last change wins. Alura reopens a closed or snoozed conversation itself when a refresh sees a new message from the buyer while it is unread.

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 conversation ID.

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

"1900000001"

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
status
enum<string>
required

open, snoozed (with snoozed_until) or closed.

Available options:
open,
snoozed,
closed
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}$
snoozed_until
string<date-time>

Required with snoozed: when it wakes, in the future and at most a year ahead. Refused with any other status.

Pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$

Response

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

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

The Etsy conversation ID.

shop_id
string
required

The Etsy shop ID, as a string.

state
object
required
changed
boolean
required

false when the conversation already was in this state, Etsy included: nothing was written or sent.

etsy
object
required

Etsy's side: a closed conversation is archived on Etsy, an open or snoozed one is in the inbox.

change
object | null
required

The Etsy write's change; null when nothing was sent.