Skip to content

Read what a designer link was handed out with

GET
/v1/share-links/{id}/designer
curl --request GET \
--url https://api.pixonaut.app/v1/share-links/example/designer \
--header 'Authorization: Bearer <token>'

Operation ID: shareLinks.designer.get

A working designer link’s settings, as POST /v1/templates/{id}/designer-links took them and PATCH /v1/share-links/{id} changes them: what its page shows, where it sends the shopper back to and with what, its language, frame, name, design limit and expiry. Never its token. Any other kind of link, a withdrawn or expired one, or one the caller could not have handed out, is answered as not found.

id
required
string

The link’s settings

Media typeapplication/json
object
blankId

The blank it is printed on; with placementId, or a panelLayout.

string
>= 1 characters
brandId
required

The brand the link’s page is drawn in; null for the workspace’s default, whichever that is when it opens.

string | null
designLimit
required

How many designs a designer link may make; null for none.

object
count
required

How many designs the link may make in its period.

integer
>= 1 <= 10000
period
required

total counts every design the link made; hour, day and week the last 60 minutes, 24 hours or 7 days, rolling.

string
expiresAt
required

When it stops working; null for until withdrawn.

number | null
id
required

The link’s id.

string
initialVariant

The variant the side starts on, by ref: one of variants when it names any.

string
>= 3 characters <= 64 characters
initialView

The view shown first; absent, the side’s first with a photo.

string
>= 1 characters <= 64 characters
layout

How every side’s form lays out its steps: page, every step on one page, or steps, one step at a time. Absent, each side’s form follows its template’s own form.layout, and is a page when the template names none.

string
linkedPlacements

Which of the sides’ placements one design drives, such as a sweater’s sleeves: a preset, or groups of the sides’ placements, a group with a repeat of its own where it repeats apart from the link. The sides of one group print one template. Absent, the groups the blank suggests whose sides print one template; the link keeps the groups it was made with.

object
designSeparately

Whether the shopper may take a placement out of its group and design it on its own. Absent, no.

boolean
groups

Groups of your own in place of a preset, each a list of placements, or { placements, repeat } for a group that repeats apart from the link. A mirror left out is the blank’s suggestion, else none.

Array
Any of:

Placements one design drives, two at least.

Array<object>
>= 2 items
object
mirror

Whether the placement’s print is mirrored left to right.

boolean
placementId
required

The id of one of the blank’s placements.

string
>= 1 characters
preset

each: every placement is designed on its own. suggested: the groups the blank suggests, such as its sleeves. all: one design drives every placement. Absent with no groups, suggested.

string
locale
required

The language the link’s page is shown in, which its url names as ?lang=<locale>; null when it names none, and the page is shown in the workspace’s default language.

string | null
mockups

The store’s own product photos the design is shown on, in place of the blank’s views.

Array<object>
>= 1 items <= 50 items
object
displacementStrength

How far the photo’s folds move the design, above 0 and at most 1; absent or null, not at all.

number | null
label
required

What the menu calls the photo.

string
>= 1 characters <= 120 characters
localizedLabels

The label per customer-facing language, by code: only the languages it has one in. A designer shown in a language left out reads label.

object
da
string
>= 1 characters <= 120 characters
de
string
>= 1 characters <= 120 characters
en
string
>= 1 characters <= 120 characters
es
string
>= 1 characters <= 120 characters
fi
string
>= 1 characters <= 120 characters
fr
string
>= 1 characters <= 120 characters
nb
string
>= 1 characters <= 120 characters
nl
string
>= 1 characters <= 120 characters
sv
string
>= 1 characters <= 120 characters
photoSizePx

The size of the photo the rect is measured in, when it is not the size of the image the url serves; absent, the image’s own.

object
h
required

Its height, in pixels.

number
> 0
w
required

Its width, in pixels.

number
> 0
placementRectPx
required

Where the print sits in the photo, in the photo’s pixels.

object
h
required

Its height, in the photo’s pixels.

number
w
required

Its width, in the photo’s pixels.

number
x
required

From the photo’s left edge, in its pixels.

number
y
required

From the photo’s top edge, in its pixels.

number
shadingStrength

How strongly the photo’s light and shade carry onto the design, from 0 (flat) to 1; absent, the default.

number
url
required

The photo’s address, http or https.

string format: uri
<= 2048 characters
viewId

The store’s own name for the way the product is photographed: photos sharing one are one view.

string
>= 1 characters <= 64 characters
warp

How the design wraps round the product in the photo, a mug or a bottle; absent or null, flat.

object
curvature
required

How far round the product the rect reaches, above 0 and at most 1.

number
edgeFalloff

How dark the design turns toward the product’s silhouette, 0 to 1.

number
kind
required

The one kind of wrap: an upright round product.

string
name
required

The workspace’s name for the link.

string | null
panelLayout

The name of a panel layout of the link’s blankId, in place of placementId: the page draws one design across the layout’s canvas, and each placement it lays out gets its print cut from it, so art runs across the seams. Not with sides or printSizes.

string
>= 1 characters <= 200 characters
placementFrame
required

Whether a designer link’s page draws the placement frame around the shopper’s picture at rest; false for every other link.

boolean
placementId

The blank’s placement it is printed in; with blankId.

string
>= 1 characters
printAreaFrame
required

Whether a designer link’s page draws the print area’s frame; false for every other link.

boolean
printSizes

The sizes the shopper picks from, for a print within its area.

Array<object>
>= 1 items <= 50 items

One size in the size menu.

object
heightMm
required

The print’s height, in mm.

number
> 0
label
required

What the menu calls the size.

string
>= 1 characters <= 120 characters
localizedLabels

The label per customer-facing language, by code: only the languages it has one in. A designer shown in a language left out reads label.

object
da
string
>= 1 characters <= 120 characters
de
string
>= 1 characters <= 120 characters
en
string
>= 1 characters <= 120 characters
es
string
>= 1 characters <= 120 characters
fi
string
>= 1 characters <= 120 characters
fr
string
>= 1 characters <= 120 characters
nb
string
>= 1 characters <= 120 characters
nl
string
>= 1 characters <= 120 characters
sv
string
>= 1 characters <= 120 characters
widthMm
required

The print’s width, in mm.

number
> 0
repeat

Whether every side’s design is laid as a repeat of its template, which layouts the shopper may pick, what it starts as, and whether they may change it or turn it off; a linked group with a repeat of its own takes that instead. Absent, each design is placed once and a request through the link naming a repeat is refused. Not with panelLayout.

object
modes
required

The layouts the shopper may pick, one at least, each once.

Array<string>
>= 1 items
shopperMayChange
required

Whether the shopper may pick another of modes and another size. Otherwise every design prints as start.

boolean
shopperMayTurnOff
required

Whether the shopper may place the design once instead (repeat: null). Only with shopperMayChange.

boolean
start
required

What the design starts as: a repeat in one of modes, or null for placed once, which needs shopperMayTurnOff. A request through the link that names no repeat is made with it.

object
mode
required

How the tiles are laid: grid lines them up, brick moves every other row along by half a tile, halfDrop moves every other column down by half a tile, and scatter strews them at random places, turns and sizes, arranged by seed.

string
seed
required

Which arrangement a scatter draws: another seed is another arrangement of the same tile. Read by scatter only.

integer
<= 9007199254740991
size
required

The tile’s width in percent of the print area’s width, above 0 and at most 100; the tile keeps the template’s shape. A tile that would print under 10 mm on a side is drawn at 10 mm.

number
> 0 <= 100
returnUrl
required

Where its page sends the shopper back to; null for none.

string | null
selectedMockupIndex

The photo that starts selected, by its place in mockups.

integer
selectedPrintSizeIndex

The size that starts selected, by its place in printSizes.

integer
sides

Several sides of one item, a front and a back, each its own template and placement, designed one after the other; then the one-side fields go on each side instead.

Array<object>
>= 2 items <= 10 items
object
blankId

The blank it is printed on; with placementId, or a panelLayout.

string
>= 1 characters
initialVariant

The variant the side starts on, by ref: one of variants when it names any.

string
>= 3 characters <= 64 characters
initialView

The view shown first; absent, the side’s first with a photo.

string
>= 1 characters <= 64 characters
key
required

The side’s own short name, such as front: lowercase letters, digits, - and _, unique within the link.

string
/^[a-z0-9_-]{1,32}$/
label
required

What the side’s step is called, such as Front.

string
>= 1 characters <= 120 characters
localizedLabels

The label per customer-facing language, by code: only the languages it has one in. A designer shown in a language left out reads label.

object
da
string
>= 1 characters <= 120 characters
de
string
>= 1 characters <= 120 characters
en
string
>= 1 characters <= 120 characters
es
string
>= 1 characters <= 120 characters
fi
string
>= 1 characters <= 120 characters
fr
string
>= 1 characters <= 120 characters
nb
string
>= 1 characters <= 120 characters
nl
string
>= 1 characters <= 120 characters
sv
string
>= 1 characters <= 120 characters
mockups

The store’s own product photos the design is shown on, in place of the blank’s views.

Array<object>
>= 1 items <= 50 items
object
displacementStrength

How far the photo’s folds move the design, above 0 and at most 1; absent or null, not at all.

number | null
label
required

What the menu calls the photo.

string
>= 1 characters <= 120 characters
localizedLabels

The label per customer-facing language, by code: only the languages it has one in. A designer shown in a language left out reads label.

object
da
string
>= 1 characters <= 120 characters
de
string
>= 1 characters <= 120 characters
en
string
>= 1 characters <= 120 characters
es
string
>= 1 characters <= 120 characters
fi
string
>= 1 characters <= 120 characters
fr
string
>= 1 characters <= 120 characters
nb
string
>= 1 characters <= 120 characters
nl
string
>= 1 characters <= 120 characters
sv
string
>= 1 characters <= 120 characters
photoSizePx

The size of the photo the rect is measured in, when it is not the size of the image the url serves; absent, the image’s own.

object
h
required

Its height, in pixels.

number
> 0
w
required

Its width, in pixels.

number
> 0
placementRectPx
required

Where the print sits in the photo, in the photo’s pixels.

object
h
required

Its height, in the photo’s pixels.

number
w
required

Its width, in the photo’s pixels.

number
x
required

From the photo’s left edge, in its pixels.

number
y
required

From the photo’s top edge, in its pixels.

number
shadingStrength

How strongly the photo’s light and shade carry onto the design, from 0 (flat) to 1; absent, the default.

number
url
required

The photo’s address, http or https.

string format: uri
<= 2048 characters
viewId

The store’s own name for the way the product is photographed: photos sharing one are one view.

string
>= 1 characters <= 64 characters
warp

How the design wraps round the product in the photo, a mug or a bottle; absent or null, flat.

object
curvature
required

How far round the product the rect reaches, above 0 and at most 1.

number
edgeFalloff

How dark the design turns toward the product’s silhouette, 0 to 1.

number
kind
required

The one kind of wrap: an upright round product.

string
placementId

The blank’s placement it is printed in; with blankId.

string
>= 1 characters
printSizes

The sizes the shopper picks from, for a print within its area.

Array<object>
>= 1 items <= 50 items

One size in the size menu.

object
heightMm
required

The print’s height, in mm.

number
> 0
label
required

What the menu calls the size.

string
>= 1 characters <= 120 characters
localizedLabels

The label per customer-facing language, by code: only the languages it has one in. A designer shown in a language left out reads label.

object
da
string
>= 1 characters <= 120 characters
de
string
>= 1 characters <= 120 characters
en
string
>= 1 characters <= 120 characters
es
string
>= 1 characters <= 120 characters
fi
string
>= 1 characters <= 120 characters
fr
string
>= 1 characters <= 120 characters
nb
string
>= 1 characters <= 120 characters
nl
string
>= 1 characters <= 120 characters
sv
string
>= 1 characters <= 120 characters
widthMm
required

The print’s width, in mm.

number
> 0
selectedMockupIndex

The photo that starts selected, by its place in mockups.

integer
selectedPrintSizeIndex

The size that starts selected, by its place in printSizes.

integer
templateId

The template’s base id; the link’s own when absent.

string
>= 1 characters
variantRow

The size the side sells, as a value of each option its blank’s print areas change with ({"Size": "XL"}): its proofs and designs are made at that size, and a request naming another is refused. Only on a blank whose print areas change with its size; absent, the shopper’s request names the size.

object
key
additional properties
string
>= 1 characters <= 80 characters
variants

The blank’s variants offered, by ref; empty or absent, all.

Array<string>
<= 50 items
views

The blank’s views the side is shown in; empty or absent, all.

Array<string>
<= 50 items
state
required

What it carries back to returnUrl; null for none.

string | null
templateId
required

The template the link opens, by base id; a side naming none.

string
variantRow

The size the side sells, as a value of each option its blank’s print areas change with ({"Size": "XL"}): its proofs and designs are made at that size, and a request naming another is refused. Only on a blank whose print areas change with its size; absent, the shopper’s request names the size.

object
key
additional properties
string
>= 1 characters <= 80 characters
variants

The blank’s variants offered, by ref; empty or absent, all.

Array<string>
<= 50 items
views

The blank’s views the side is shown in; empty or absent, all.

Array<string>
<= 50 items

Examples

Exampleexample

Example

{
"brandId": null,
"designLimit": {
"count": 50,
"period": "day"
},
"expiresAt": null,
"id": "shl_9a8b7c6d5e4f3a2b1c0d9e8f",
"locale": "sv",
"name": "Spring market stand",
"placementFrame": false,
"printAreaFrame": false,
"printSizes": [
{
"heightMm": 297,
"label": "A3",
"widthMm": 420
},
{
"heightMm": 420,
"label": "A2",
"widthMm": 594
}
],
"returnUrl": "https://shop.example/cart",
"selectedPrintSizeIndex": 0,
"state": null,
"templateId": "graduation-sign"
}
X-Request-Id
required
string

Every response names the request it answers in X-Request-Id: the id the request was sent with in that header, when it is well formed, else one the API gave it. Quote it when reporting a refusal or a failure: the API’s log lines for that request carry it.

Refused: unauthorized

Media typeapplication/json
object
error
required
string

Examples

Exampleunauthorized

unauthorized

{
"error": "unauthorized"
}
X-Request-Id
required
string

Every response names the request it answers in X-Request-Id: the id the request was sent with in that header, when it is well formed, else one the API gave it. Quote it when reporting a refusal or a failure: the API’s log lines for that request carry it.

Refused: origin_forbidden, feature_disabled

Media typeapplication/json
object
error
required
string
feature

The feature the tenant does not have. Always sent with feature_disabled.

string

Examples

feature_disabled

{
"error": "feature_disabled",
"feature": "api"
}
X-Request-Id
required
string

Every response names the request it answers in X-Request-Id: the id the request was sent with in that header, when it is well formed, else one the API gave it. Quote it when reporting a refusal or a failure: the API’s log lines for that request carry it.

Refused: not_found

Media typeapplication/json
object
error
required
string

Examples

Examplenot_found

not_found

{
"error": "not_found"
}
X-Request-Id
required
string

Every response names the request it answers in X-Request-Id: the id the request was sent with in that header, when it is well formed, else one the API gave it. Quote it when reporting a refusal or a failure: the API’s log lines for that request carry it.

Refused: db_error. A request that failed unexpectedly answers as text instead.

object
error
required
string

Examples

Exampledb_error

db_error

{
"error": "db_error"
}
X-Request-Id
required
string

Every response names the request it answers in X-Request-Id: the id the request was sent with in that header, when it is well formed, else one the API gave it. Quote it when reporting a refusal or a failure: the API’s log lines for that request carry it.

Questions? Write to [email protected].

Status · Terms of service · Privacy policy · Subprocessors