auto_write
creative

Exports a saved version of a design to files: png, jpg or webp for stills and mp4 for motion designs, one file per layou

Changed on

Exports a saved version of a design to files: png, jpg or webp for stills and mp4 for motion designs, one file per layout. Defaults to the newest version, every layout it has, and png for a still or mp4 plus a jpg cover for a video. A file already exported is returned as it is. Returns one export id per file, each of which can become a social post once ready. A design whose prices, discounts or dates no longer match the store is refused with data_stale; acknowledged_stale with a reason exports it as it is and records who did and why.

post/api/v1/tools/export_design

Request

  • Base URL
    https://app.magistry.io
  • Auth
    • HTTP bearer
    • or OAuth 2
      Authorization codehttps://app.magistry.io/api/oauth/authorize
      Token URLhttps://app.magistry.io/api/oauth/token
      Scopescreative:write

Headers

Idempotency-Key, string

Optional; honoured when sent. A unique string you choose for this request; send the SAME key when retrying and the first answer is returned instead of writing twice (idempotent-replayed: true). The same key with other arguments is 409 idempotency_conflict. If the header and idempotency_key are both sent they must be equal.

Request body

object required
design_id, string required

The design to export.

version, integer

A saved version; the newest when left out.

placements, string[]

Layouts: square 1:1, portrait 4:5, story 9:16, landscape 1.91:1, wide 16:9.

formats, string[]

File formats.

acknowledged_stale, true

Export even though the design no longer matches the store's data. Needs a reason; recorded with who asked.

reason, string

Why it is exported as it is. Only with acknowledged_stale.

idempotency_key, string

Optional. A unique string you choose for this request. Send the SAME key when retrying after a timeout and Magistry returns the original outcome instead of performing the write twice. Reusing a key with different arguments is refused rather than replayed.

Response

Tool result

object required
ok, boolean required
result, unknown required

Changes

    • warning

      added the new method_not_allowed enum value to the error response property for the response status

    • warning

      added the new method_not_allowed enum value to the error response property for the response status

    • warning

      added the new method_not_allowed enum value to the error response property for the response status

    11 more changes in this revision