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. Attachments are turned on per workspace: elsewhere the upload answers 403 attachments_not_enabled, and so does a send with attachments. The buyer sees nothing until you send the message with attachments: [{"id": "..."}], up to 3 a message.

The file

An attachment goes with one message, within 24 hours (expires_at). Once sent, or after that, upload the file again: a send answers 409 attachment_used or attachment_expired.

The answer

  • 200 with the attachment id once Etsy names the file.
  • 202 with outcome: unknown when the upload’s result was lost. That ID can’t be sent (attachment_unavailable): upload again with a new Idempotency-Key. A retry with the same key answers the same change.
  • 429 live_rate_limited with Retry-After when too many uploads run at once. Nothing was uploaded: retry after the wait with the same Idempotency-Key.
dry_run=true checks the file without uploading it.
The upload goes to Etsy through Chrome with the Alura extension, logged into the shop on Etsy. Extension 0.2.184 or later is needed, else 409 extension_update_required.
REST only: the MCP tool send_my_message takes IDs uploaded here.

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

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

file
file
required

The file: JPEG, PNG, GIF or PDF, at most 10485760 bytes (10 MB). Its type is read from its bytes; its name is what the buyer sees.

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

Response

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

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

The attachment ID, for one send: attachments: [{id}] on POST /v1/workspace/conversations/{id}/messages.

shop_id
string
required

The Etsy shop ID, as a string: only a message in this shop can send it.

content_type
enum<string>
required

The type, read from the file itself.

Available options:
image/jpeg,
image/png,
image/gif,
application/pdf
size_bytes
integer
required

Its size in bytes.

expires_at
string
required

Send it before this time (ISO 8601, UTC, 24 hours after the upload); after it, upload again.