Skip to content

List the tenant's share links

GET
/v1/share-links
curl --request GET \
--url 'https://api.pixonaut.app/v1/share-links?page=1&pageSize=50&kind=designer&createdBy=me&carriesVisit=true&neverExpires=true&sort=created' \
--header 'Authorization: Bearer <token>'

Operation ID: shareLinks.list

Links that still work, of the kinds the caller may hand out (to a connected store’s integration key, every link its store handed out, designer links included), newest first or by expiry, 100 a page at most, narrowed by kind, subject, who handed them out, whether they carry a visit, when they stop working, and text. Never the token itself. counts says what each kind, each source and the visit filter would answer, each under every other filter, in the same read.

page

The page to read, from 1; the first when left out.

integer
default: 1 >= 1 <= 100000

The page to read, from 1; the first when left out.

pageSize
integer
default: 50 >= 1 <= 100
pageOf
string
>= 1 characters <= 200 characters
name

Only the link holding this name, case aside: with pageSize=1, whether a name is free.

string
>= 1 characters

Only the link holding this name, case aside: with pageSize=1, whether a name is free.

subjectId

Only the links about this template, design or order.

string
>= 1 characters

Only the links about this template, design or order.

kind

Only links of this kind.

string
Allowed values: designer proof-page order-status printshop address-capture correction

Only links of this kind.

source

Only links handed out by members, by a key (any secret key or connected store), by the key or store of this id, or auto: sent with an order to a custom printshop.

string
>= 1 characters

Only links handed out by members, by a key (any secret key or connected store), by the key or store of this id, or auto: sent with an order to a custom printshop.

createdBy

Only the links the caller handed out.

string
Allowed values: me

Only the links the caller handed out.

carriesVisit

true, only links carrying one shopper’s visit (state); false, only those that do not.

string
Allowed values: true false

true, only links carrying one shopper’s visit (state); false, only those that do not.

expiresWithin

Only links that stop working within this many days.

integer
>= 1 <= 365

Only links that stop working within this many days.

neverExpires

true, only links that never expire; false, only those that do.

string
Allowed values: true false

true, only links that never expire; false, only those that do.

q

Only links whose name, subject’s name, link id, or member or key that handed it out holds this text, case aside.

string
>= 1 characters <= 200 characters

Only links whose name, subject’s name, link id, or member or key that handed it out holds this text, case aside.

sort

created (the default), newest first; expires, the soonest to stop working first, those that never do last.

string
Allowed values: created expires

created (the default), newest first; expires, the soonest to stop working first, those that never do last.

A page of links

Media typeapplication/json
object
counts
required

What each filter’s choices would answer, in this one read.

object
carriesVisit
required

How many links in view carry one shopper’s visit, under every filter but carriesVisit.

integer
kinds
required

Each kind the caller may manage, under every other filter.

Array<object>
object
count
required
integer
kind
required
string
sources
required

Members and printshop orders, then each key or store with links in view, under every filter but source.

Array
One of:
object
count
required
integer
source
required
string
Allowed values: member
links
required
Array<object>
object
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
createdAt
required
number
createdBy
required

The member who handed it out; null when no member did.

object
name
required
string | null
userId
required
string
createdByKey
required

The secret key or connected store that handed the link out.

object
id
required
string
kind
required

sk for a secret key, ik for a connected store; null once the key is gone.

string | null
name
required

The key’s label, or the store’s; null once the key is gone.

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
reopensAt
required

At the limit, when the link makes designs again; null below it, and for a total limit.

number | null
used
required

The designs the limit counts now: one per side approved, in the rolling window.

integer
designs
required

How many designs a designer link made, one per side approved; null for any other kind.

integer | null
expiresAt
required

When the link stops working; null for one that never does.

number | null
id
required
string
kind
required
string
lastOpenedAt
required

When its page last opened, to the hour; null for never.

number | null
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
mayDecide
required
boolean
name
required

The workspace’s name for the link.

string | null
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
printAreaFrame
required

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

boolean
returnUrl
required
string | null
source
required

Who handed it out: member; key, a secret key or connected store (createdByKey, null for a key the deployment configures); auto, sent with an order to a custom printshop.

string
subject
required

What the link is about; null once it no longer exists.

object
label
required

The subject’s name: a template’s name; for a design, the name of its template; for an order, its external reference, null when it has none.

string | null
meta
required
One of:
object
blank
required

The blank its sides are printed on; null for none.

object
id
required
string
name
required
string | null
carriesVisit
required

Whether the link carries one shopper’s visit (state).

boolean
returnHost
required

The host its page sends a shopper back to; null for none.

string | null
sides
required

One entry per side, one for a link with one.

Array<object>
object
key
required
string | null
label
required
string | null
printSizes
required

The sizes its menu offers; empty for none.

Array<object>
object
heightMm
required
number
label
required
string
widthMm
required
number
type
required
string
Allowed values: template
warning
required

What keeps the page from opening for now: template_paused (it opens again once the template is live), printshop_disconnected; null for nothing.

string | null
subjectId
required
string
url
required

A designer link’s address, which it keeps: it sits on a store’s page until withdrawn. It carries ?lang=<locale> when the link names a locale. Null for every other kind, whose address is shown once, and for a designer link made before addresses were kept until it is regenerated.

string | null
page
required
number
pageSize
required
number
total
required
number

Examples

Exampleexample

Example

{
"counts": {
"carriesVisit": 12,
"kinds": [
{
"count": 12,
"kind": "designer"
},
{
"count": 1,
"kind": "proof-page"
}
],
"sources": [
{
"count": 1,
"source": "member"
},
{
"count": 0,
"source": "auto"
},
{
"count": 12,
"key": {
"id": "key_5e4f3a2b1c0d",
"kind": "ik",
"name": "WooCommerce · Corner shop (shop.example)"
},
"source": "key"
}
]
},
"links": [
{
"brandId": null,
"createdAt": 1760000000000,
"createdBy": {
"name": "Alexandra Lind",
"userId": "9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d"
},
"createdByKey": null,
"designLimit": null,
"designs": null,
"expiresAt": 1761209600000,
"id": "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d",
"kind": "proof-page",
"lastOpenedAt": 1760400000000,
"locale": null,
"mayDecide": true,
"name": "Proof for Anna",
"placementFrame": false,
"printAreaFrame": false,
"returnUrl": null,
"source": "member",
"subject": {
"label": "Print of T-shirt print, front",
"meta": {
"status": "committed",
"type": "design"
},
"warning": null
},
"subjectId": "c4d5e6f7-a8b9-4c0d-9e1f-2a3b4c5d6e7f",
"url": null
}
],
"page": 1,
"pageSize": 50,
"total": 1
}
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: invalid_query

Media typeapplication/json
object
error
required
string

Examples

Exampleinvalid_query

invalid_query

{
"error": "invalid_query"
}
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