auto_write
creative

Has the designer compose a new design from a written brief, in the store's brand, optionally built on images from the st

Changed on

Has the designer compose a new design from a written brief, in the store's brand, optionally built on images from the store's studio library or on products from its catalogue. The designer reads the business's own records (its profile, its products or plans at today's prices, its running and planned promotions) and is told to state only the prices, offers and claims found there or in the brief. Works for any kind of business: a product launch, a sale, an event, a menu, an opening, a hiring post, a testimonial. A duration above 0 makes it a motion design with animated layers. Queued: returns a request id whose state shows when the design exists. Uses credits.

post/api/v1/tools/compose_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
brief, string required

What the design is for and what it should say.

placements, string[]

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

duration_seconds, number

0 for a still image (default); up to 60 for a video.

music, boolean

Videos only: lay an instrumental track made for its length under it (default true). False exports a silent video.

music_mood, string

Videos only: the mood of that track. Left out, the brand kit's music mood.

media_ids, string[]

Images from the store's studio library to build on.

product_ids, string[]

Products from the store's catalogue to feature: the designer gets their names and prices, and their pictures where the studio can show them.

job, 'spotlight' | 'offer' | 'new' | 'proof' | 'how_it_works' | 'before_after' | 'why_us' | 'tip' | 'event' | 'availability' | 'hours' | 'milestone' | 'team' | 'hiring' | 'seasonal'

What the design is for; the designer follows that job's structure. One of: spotlight (spotlight a product or plan), offer (announce an offer), new (something new), proof (customer proof), how_it_works (how it works), before_after (before and after), why_us (why choose us), tip (a tip or an answer), event (an event or a date), availability (in stock or available), hours (opening hours or a closure), milestone (a milestone), team (meet the team), hiring (we're hiring), seasonal (a season or a holiday). Leave it out to let the brief decide.

builds_on, string

A design of this store to make the next design after. The designer is shown its words and how it did once posted, keeps what it leads with and says it in new words; the new design joins its test group. A design that repeats its words is refused.

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