Skip to content

M13 - Download an attachment

Request

Call Frequency
Maximum usage: Synchronous only - At each message attachment download
Security
Shop-API-Key(Required scopes: ROLE_SHOP_ADMINROLE_PARTNER_OFFER_MESSAGE_READROLE_PARTNER_MESSAGE_READ)
Path
attachment_idstringrequired

The identifier of the attachment to retrieve.

Query
shop_idinteger, (int64)

Use this parameter when your user has access to several shops. If not specified, the shop_id from your default shop will be used.

curl -i -X GET \
  'https://your-instance.mirakl.net/api/inbox/threads/{attachment_id}/download?shop_id=0' \
  -H 'Authorization: YOUR_API_KEY_HERE'

Responses

OK

Bodyapplication/octet-stream
string, (binary)
Response
string