Skip to content

Fetch a design's proof image

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

Operation ID: designs.proof.get

The design’s proof, as the customer was shown it, read with the credentials that read the design: the proof of its newest revision that has one. A commit from a proof gives revision 1 that proof, and each correction and restore renders a proof of the revision it writes, so a corrected design’s proof shows what it says now. v, the design’s proofId, names the image’s bytes in the URL itself, so the answer is cached immutable; a v naming any other proof (a URL made by hand, or for another design) is refused proof_changed rather than served under the wrong name. Without v, the proof’s id is the answer’s etag. Once the proof’s file is gone (a rejected design’s proof is released), the answer is proof_not_found. width serves it no larger than the box it is drawn in; each resize asked for with a key or through a link spends the tenant’s render budget, and is refused rate_limited once it is spent.

id
required
string
v

The design’s proofId, which names bytes that never change. When it matches, the answer is cached immutable; when it names any other proof, it is refused proof_changed.

string

The design’s proofId, which names bytes that never change. When it matches, the answer is cached immutable; when it names any other proof, it is refused proof_changed.

width

The width in pixels the image is drawn at. The long edge served is derived from the image’s own ratio, never larger than the stored image, and clamped to the sizes the api serves.

string
/^\d+$/

The width in pixels the image is drawn at. The long edge served is derived from the image’s own ratio, never larger than the stored image, and clamped to the sizes the api serves.

fit

cover when the image is cropped to fill its box: width is then its short edge.

string
Allowed values: cover

cover when the image is cropped to fill its box: width is then its short edge.

The proof image

Media typeimage/jpeg
string
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.

Not modified: the If-None-Match etag, the proof’s id, still holds

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, forbidden, feature_disabled, workspace_suspended

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, proof_not_found, proof_changed

Media typeapplication/json
object
error
required
string

Examples

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