Skip to content

Read a design as its customer reviews it

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

Operation ID: designs.review.get

Where the design stands, whether its proof still shows it, and any open request for changes. Never the design’s document or its fulfilment payload.

id
required
string

The design’s review

Media typeapplication/json
object
approveAfter
required

When a scheduled approval falls due, or null.

number | null
canDecide
required

Whether the caller may approve, reject or ask for changes: a secret key, or a proof page link the tenant handed the decision to.

boolean
changeRequest
required

The open request for changes a customer made on the design’s proof page, or null. Open while the design awaits approval at the version it was about; correcting or deciding the design closes it.

object
message
required
string
requestedAt
required
number
hasProof
required

Whether the design has a proof image to show.

boolean
id
required
string
proofIsCurrent
required

Whether the design has a proof and it shows what the design says now. Each correction renders a proof of its own; a design corrected before that was so has only its first proof. A customer decides the design from its proof page only when this is true.

boolean
rejectionReason
required

Why the design was rejected, as the shop said, for its customer to read; null when it is not rejected, or was rejected without a reason.

string | null
revision
required
integer
status
required
string

Examples

Exampleexample

Example

{
"approveAfter": 1792022400000,
"canDecide": true,
"changeRequest": {
"message": "Please change the name to Alexandra L.",
"requestedAt": 1791766800000
},
"hasProof": true,
"id": "6f1c8a2b-3d4e-4f5a-8b6c-7d8e9f0a1b2c",
"proofIsCurrent": true,
"rejectionReason": null,
"revision": 2,
"status": "committed"
}
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, secret_key_required, feature_disabled, forbidden

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: rate_limited

Media typeapplication/json
object
error
required
string

Examples

Examplerate_limited

rate_limited

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